/** * 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 MigrationHubRefactorSpaces { namespace Model { /** */ class CreateEnvironmentRequest : public MigrationHubRefactorSpacesRequest { public: AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentRequest(); // 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 "CreateEnvironment"; } AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override; /** *

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 CreateEnvironmentRequest& 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 CreateEnvironmentRequest& 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 CreateEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The description of the environment.

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

The description of the environment.

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

The description of the environment.

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

The description of the environment.

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

The description of the environment.

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

The description of the environment.

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

The description of the environment.

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

The description of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The network fabric type of the environment.

*/ inline const NetworkFabricType& GetNetworkFabricType() const{ return m_networkFabricType; } /** *

The network fabric type of the environment.

*/ inline bool NetworkFabricTypeHasBeenSet() const { return m_networkFabricTypeHasBeenSet; } /** *

The network fabric type of the environment.

*/ inline void SetNetworkFabricType(const NetworkFabricType& value) { m_networkFabricTypeHasBeenSet = true; m_networkFabricType = value; } /** *

The network fabric type of the environment.

*/ inline void SetNetworkFabricType(NetworkFabricType&& value) { m_networkFabricTypeHasBeenSet = true; m_networkFabricType = std::move(value); } /** *

The network fabric type of the environment.

*/ inline CreateEnvironmentRequest& WithNetworkFabricType(const NetworkFabricType& value) { SetNetworkFabricType(value); return *this;} /** *

The network fabric type of the environment.

*/ inline CreateEnvironmentRequest& WithNetworkFabricType(NetworkFabricType&& value) { SetNetworkFabricType(std::move(value)); return *this;} /** *

The tags to assign to the environment. 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 environment. 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 environment. 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 environment. 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

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

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

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

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

*/ inline CreateEnvironmentRequest& 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

*/ inline CreateEnvironmentRequest& 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

*/ inline CreateEnvironmentRequest& 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

*/ inline CreateEnvironmentRequest& 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

*/ inline CreateEnvironmentRequest& 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

*/ inline CreateEnvironmentRequest& 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 environment. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair.

*/ inline CreateEnvironmentRequest& 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; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; NetworkFabricType m_networkFabricType; bool m_networkFabricTypeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws