/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class CreateContainerServiceDeploymentRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateContainerServiceDeploymentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateContainerServiceDeployment"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the container service for which to create the deployment.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the container service for which to create the deployment.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the container service for which to create the deployment.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the container service for which to create the deployment.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the container service for which to create the deployment.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the container service for which to create the deployment.

*/ inline CreateContainerServiceDeploymentRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the container service for which to create the deployment.

*/ inline CreateContainerServiceDeploymentRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the container service for which to create the deployment.

*/ inline CreateContainerServiceDeploymentRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline const Aws::Map& GetContainers() const{ return m_containers; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline void SetContainers(const Aws::Map& value) { m_containersHasBeenSet = true; m_containers = value; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline void SetContainers(Aws::Map&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& WithContainers(const Aws::Map& value) { SetContainers(value); return *this;} /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& WithContainers(Aws::Map&& value) { SetContainers(std::move(value)); return *this;} /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& AddContainers(const Aws::String& key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(key, value); return *this; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& AddContainers(Aws::String&& key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(std::move(key), value); return *this; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& AddContainers(const Aws::String& key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(key, std::move(value)); return *this; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& AddContainers(Aws::String&& key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(std::move(key), std::move(value)); return *this; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& AddContainers(const char* key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(key, std::move(value)); return *this; } /** *

An object that describes the settings of the containers that will be launched * on the container service.

*/ inline CreateContainerServiceDeploymentRequest& AddContainers(const char* key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(key, value); return *this; } /** *

An object that describes the settings of the public endpoint for the * container service.

*/ inline const EndpointRequest& GetPublicEndpoint() const{ return m_publicEndpoint; } /** *

An object that describes the settings of the public endpoint for the * container service.

*/ inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; } /** *

An object that describes the settings of the public endpoint for the * container service.

*/ inline void SetPublicEndpoint(const EndpointRequest& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = value; } /** *

An object that describes the settings of the public endpoint for the * container service.

*/ inline void SetPublicEndpoint(EndpointRequest&& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = std::move(value); } /** *

An object that describes the settings of the public endpoint for the * container service.

*/ inline CreateContainerServiceDeploymentRequest& WithPublicEndpoint(const EndpointRequest& value) { SetPublicEndpoint(value); return *this;} /** *

An object that describes the settings of the public endpoint for the * container service.

*/ inline CreateContainerServiceDeploymentRequest& WithPublicEndpoint(EndpointRequest&& value) { SetPublicEndpoint(std::move(value)); return *this;} private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::Map m_containers; bool m_containersHasBeenSet = false; EndpointRequest m_publicEndpoint; bool m_publicEndpointHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws