/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace OpsWorks { namespace Model { /** */ class CreateDeploymentRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API CreateDeploymentRequest(); // 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 "CreateDeployment"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The stack ID.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The stack ID.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The stack ID.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The stack ID.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The stack ID.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The stack ID.

*/ inline CreateDeploymentRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The stack ID.

*/ inline CreateDeploymentRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The stack ID.

*/ inline CreateDeploymentRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline CreateDeploymentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline CreateDeploymentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The app ID. This parameter is required for app deployments, but not for other * deployment commands.

*/ inline CreateDeploymentRequest& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The instance IDs for the deployment targets.

*/ inline const Aws::Vector& GetInstanceIds() const{ return m_instanceIds; } /** *

The instance IDs for the deployment targets.

*/ inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; } /** *

The instance IDs for the deployment targets.

*/ inline void SetInstanceIds(const Aws::Vector& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; } /** *

The instance IDs for the deployment targets.

*/ inline void SetInstanceIds(Aws::Vector&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); } /** *

The instance IDs for the deployment targets.

*/ inline CreateDeploymentRequest& WithInstanceIds(const Aws::Vector& value) { SetInstanceIds(value); return *this;} /** *

The instance IDs for the deployment targets.

*/ inline CreateDeploymentRequest& WithInstanceIds(Aws::Vector&& value) { SetInstanceIds(std::move(value)); return *this;} /** *

The instance IDs for the deployment targets.

*/ inline CreateDeploymentRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; } /** *

The instance IDs for the deployment targets.

*/ inline CreateDeploymentRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; } /** *

The instance IDs for the deployment targets.

*/ inline CreateDeploymentRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; } /** *

The layer IDs for the deployment targets.

*/ inline const Aws::Vector& GetLayerIds() const{ return m_layerIds; } /** *

The layer IDs for the deployment targets.

*/ inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; } /** *

The layer IDs for the deployment targets.

*/ inline void SetLayerIds(const Aws::Vector& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; } /** *

The layer IDs for the deployment targets.

*/ inline void SetLayerIds(Aws::Vector&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); } /** *

The layer IDs for the deployment targets.

*/ inline CreateDeploymentRequest& WithLayerIds(const Aws::Vector& value) { SetLayerIds(value); return *this;} /** *

The layer IDs for the deployment targets.

*/ inline CreateDeploymentRequest& WithLayerIds(Aws::Vector&& value) { SetLayerIds(std::move(value)); return *this;} /** *

The layer IDs for the deployment targets.

*/ inline CreateDeploymentRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } /** *

The layer IDs for the deployment targets.

*/ inline CreateDeploymentRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; } /** *

The layer IDs for the deployment targets.

*/ inline CreateDeploymentRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } /** *

A DeploymentCommand object that specifies the deployment command * and any associated arguments.

*/ inline const DeploymentCommand& GetCommand() const{ return m_command; } /** *

A DeploymentCommand object that specifies the deployment command * and any associated arguments.

*/ inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; } /** *

A DeploymentCommand object that specifies the deployment command * and any associated arguments.

*/ inline void SetCommand(const DeploymentCommand& value) { m_commandHasBeenSet = true; m_command = value; } /** *

A DeploymentCommand object that specifies the deployment command * and any associated arguments.

*/ inline void SetCommand(DeploymentCommand&& value) { m_commandHasBeenSet = true; m_command = std::move(value); } /** *

A DeploymentCommand object that specifies the deployment command * and any associated arguments.

*/ inline CreateDeploymentRequest& WithCommand(const DeploymentCommand& value) { SetCommand(value); return *this;} /** *

A DeploymentCommand object that specifies the deployment command * and any associated arguments.

*/ inline CreateDeploymentRequest& WithCommand(DeploymentCommand&& value) { SetCommand(std::move(value)); return *this;} /** *

A user-defined comment.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

A user-defined comment.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A user-defined comment.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A user-defined comment.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A user-defined comment.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

A user-defined comment.

*/ inline CreateDeploymentRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

A user-defined comment.

*/ inline CreateDeploymentRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

A user-defined comment.

*/ inline CreateDeploymentRequest& WithComment(const char* value) { SetComment(value); return *this;} /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline const Aws::String& GetCustomJson() const{ return m_customJson; } /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; } /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; } /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = std::move(value); } /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); } /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline CreateDeploymentRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;} /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline CreateDeploymentRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(std::move(value)); return *this;} /** *

A string that contains user-defined, custom JSON. You can use this parameter * to override some corresponding default stack configuration JSON values. The * string should be in the following format:

"{\"key1\": \"value1\", * \"key2\": \"value2\",...}"

For more information about custom * JSON, see Use * Custom JSON to Modify the Stack Configuration Attributes and Overriding * Attributes With Custom JSON.

*/ inline CreateDeploymentRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;} private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::Vector m_instanceIds; bool m_instanceIdsHasBeenSet = false; Aws::Vector m_layerIds; bool m_layerIdsHasBeenSet = false; DeploymentCommand m_command; bool m_commandHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::String m_customJson; bool m_customJsonHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws