/** * 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 MigrationHubRefactorSpaces { namespace Model { /** */ class CreateApplicationRequest : public MigrationHubRefactorSpacesRequest { public: AWS_MIGRATIONHUBREFACTORSPACES_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_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override; /** *

A wrapper object holding the API Gateway endpoint type and stage name for the * proxy.

*/ inline const ApiGatewayProxyInput& GetApiGatewayProxy() const{ return m_apiGatewayProxy; } /** *

A wrapper object holding the API Gateway endpoint type and stage name for the * proxy.

*/ inline bool ApiGatewayProxyHasBeenSet() const { return m_apiGatewayProxyHasBeenSet; } /** *

A wrapper object holding the API Gateway endpoint type and stage name for the * proxy.

*/ inline void SetApiGatewayProxy(const ApiGatewayProxyInput& value) { m_apiGatewayProxyHasBeenSet = true; m_apiGatewayProxy = value; } /** *

A wrapper object holding the API Gateway endpoint type and stage name for the * proxy.

*/ inline void SetApiGatewayProxy(ApiGatewayProxyInput&& value) { m_apiGatewayProxyHasBeenSet = true; m_apiGatewayProxy = std::move(value); } /** *

A wrapper object holding the API Gateway endpoint type and stage name for the * proxy.

*/ inline CreateApplicationRequest& WithApiGatewayProxy(const ApiGatewayProxyInput& value) { SetApiGatewayProxy(value); return *this;} /** *

A wrapper object holding the API Gateway endpoint type and stage name for the * proxy.

*/ inline CreateApplicationRequest& WithApiGatewayProxy(ApiGatewayProxyInput&& value) { SetApiGatewayProxy(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

The unique identifier of the environment.

*/ inline const Aws::String& GetEnvironmentIdentifier() const{ return m_environmentIdentifier; } /** *

The unique identifier of the environment.

*/ inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; } /** *

The unique identifier of the environment.

*/ inline void SetEnvironmentIdentifier(const Aws::String& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = value; } /** *

The unique identifier of the environment.

*/ inline void SetEnvironmentIdentifier(Aws::String&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::move(value); } /** *

The unique identifier of the environment.

*/ inline void SetEnvironmentIdentifier(const char* value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier.assign(value); } /** *

The unique identifier of the environment.

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

The unique identifier of the environment.

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

The unique identifier of the environment.

*/ inline CreateApplicationRequest& WithEnvironmentIdentifier(const char* value) { SetEnvironmentIdentifier(value); return *this;} /** *

The name to use for the application.

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

The name to use for the application.

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

The name to use for the application.

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

The name to use for the application.

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

The name to use for the application.

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

The name to use for the application.

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

The name to use for the application.

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

The name to use for the application.

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

The proxy type of the proxy created within the application.

*/ inline const ProxyType& GetProxyType() const{ return m_proxyType; } /** *

The proxy type of the proxy created within the application.

*/ inline bool ProxyTypeHasBeenSet() const { return m_proxyTypeHasBeenSet; } /** *

The proxy type of the proxy created within the application.

*/ inline void SetProxyType(const ProxyType& value) { m_proxyTypeHasBeenSet = true; m_proxyType = value; } /** *

The proxy type of the proxy created within the application.

*/ inline void SetProxyType(ProxyType&& value) { m_proxyTypeHasBeenSet = true; m_proxyType = std::move(value); } /** *

The proxy type of the proxy created within the application.

*/ inline CreateApplicationRequest& WithProxyType(const ProxyType& value) { SetProxyType(value); return *this;} /** *

The proxy type of the proxy created within the application.

*/ inline CreateApplicationRequest& WithProxyType(ProxyType&& value) { SetProxyType(std::move(value)); return *this;} /** *

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The tags to assign to the application. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

The ID of the virtual private cloud (VPC).

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the virtual private cloud (VPC).

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the virtual private cloud (VPC).

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the virtual private cloud (VPC).

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the virtual private cloud (VPC).

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the virtual private cloud (VPC).

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

The ID of the virtual private cloud (VPC).

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

The ID of the virtual private cloud (VPC).

*/ inline CreateApplicationRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: ApiGatewayProxyInput m_apiGatewayProxy; bool m_apiGatewayProxyHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_environmentIdentifier; bool m_environmentIdentifierHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ProxyType m_proxyType; bool m_proxyTypeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws