/** * 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 #include namespace Aws { namespace MainframeModernization { namespace Model { /** */ class CreateApplicationRequest : public MainframeModernizationRequest { public: AWS_MAINFRAMEMODERNIZATION_API CreateApplicationRequest(); // 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 "CreateApplication"; } AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override; /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier the service generates to ensure the * idempotency of the request to create an application. The service generates the * clientToken when the API call is triggered. The token expires after one hour, so * if you retry the API within this timeframe with the same clientToken, you will * get the same response. The service also handles deleting the clientToken after * it expires.

*/ inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline const Definition& GetDefinition() const{ return m_definition; } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline void SetDefinition(const Definition& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline void SetDefinition(Definition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline CreateApplicationRequest& WithDefinition(const Definition& value) { SetDefinition(value); return *this;} /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline CreateApplicationRequest& WithDefinition(Definition&& value) { SetDefinition(std::move(value)); return *this;} /** *

The description of the application.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the application.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the application.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the application.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the application.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the application.

*/ inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the application.

*/ inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the application.

*/ inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of the target platform for this application.

*/ inline const EngineType& GetEngineType() const{ return m_engineType; } /** *

The type of the target platform for this application.

*/ inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; } /** *

The type of the target platform for this application.

*/ inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; } /** *

The type of the target platform for this application.

*/ inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); } /** *

The type of the target platform for this application.

*/ inline CreateApplicationRequest& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;} /** *

The type of the target platform for this application.

*/ inline CreateApplicationRequest& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;} /** *

The identifier of a customer managed key.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier of a customer managed key.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier of a customer managed key.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier of a customer managed key.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier of a customer managed key.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier of a customer managed key.

*/ inline CreateApplicationRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier of a customer managed key.

*/ inline CreateApplicationRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier of a customer managed key.

*/ inline CreateApplicationRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The unique identifier of the application.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The unique identifier of the application.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The unique identifier of the application.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The unique identifier of the application.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The unique identifier of the application.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The unique identifier of the application.

*/ inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The unique identifier of the application.

*/ inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The unique identifier of the application.

*/ inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline CreateApplicationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline CreateApplicationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that identifies a role that the application * uses to access Amazon Web Services resources that are not part of the * application or are in a different Amazon Web Services account.

*/ inline CreateApplicationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

A list of tags to apply to the application.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of tags to apply to the application.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to apply to the application.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to apply to the application.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags to apply to the application.

*/ inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Definition m_definition; bool m_definitionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; EngineType m_engineType; bool m_engineTypeHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws