/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MigrationHubRefactorSpaces { namespace Model { class CreateEnvironmentResult { public: AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult(); AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult(const Aws::AmazonWebServiceResult& result); AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline CreateEnvironmentResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline CreateEnvironmentResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the environment.

*/ inline CreateEnvironmentResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

A timestamp that indicates when the environment is created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

A timestamp that indicates when the environment is created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTime = value; } /** *

A timestamp that indicates when the environment is created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTime = std::move(value); } /** *

A timestamp that indicates when the environment is created.

*/ inline CreateEnvironmentResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

A timestamp that indicates when the environment is created.

*/ inline CreateEnvironmentResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

The unique identifier of the environment.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The unique identifier of the environment.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentId = value; } /** *

The unique identifier of the environment.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentId = std::move(value); } /** *

The unique identifier of the environment.

*/ inline void SetEnvironmentId(const char* value) { m_environmentId.assign(value); } /** *

The unique identifier of the environment.

*/ inline CreateEnvironmentResult& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The unique identifier of the environment.

*/ inline CreateEnvironmentResult& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The unique identifier of the environment.

*/ inline CreateEnvironmentResult& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

A timestamp that indicates when the environment was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

A timestamp that indicates when the environment was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTime = value; } /** *

A timestamp that indicates when the environment was last updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTime = std::move(value); } /** *

A timestamp that indicates when the environment was last updated.

*/ inline CreateEnvironmentResult& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

A timestamp that indicates when the environment was last updated.

*/ inline CreateEnvironmentResult& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

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

The name of the environment.

*/ inline CreateEnvironmentResult& 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 void SetNetworkFabricType(const NetworkFabricType& value) { m_networkFabricType = value; } /** *

The network fabric type of the environment.

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

The network fabric type of the environment.

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

The network fabric type of the environment.

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

The Amazon Web Services account ID of environment owner.

*/ inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; } /** *

The Amazon Web Services account ID of environment owner.

*/ inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountId = value; } /** *

The Amazon Web Services account ID of environment owner.

*/ inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountId = std::move(value); } /** *

The Amazon Web Services account ID of environment owner.

*/ inline void SetOwnerAccountId(const char* value) { m_ownerAccountId.assign(value); } /** *

The Amazon Web Services account ID of environment owner.

*/ inline CreateEnvironmentResult& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;} /** *

The Amazon Web Services account ID of environment owner.

*/ inline CreateEnvironmentResult& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of environment owner.

*/ inline CreateEnvironmentResult& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;} /** *

The current state of the environment.

*/ inline const EnvironmentState& GetState() const{ return m_state; } /** *

The current state of the environment.

*/ inline void SetState(const EnvironmentState& value) { m_state = value; } /** *

The current state of the environment.

*/ inline void SetState(EnvironmentState&& value) { m_state = std::move(value); } /** *

The current state of the environment.

*/ inline CreateEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;} /** *

The current state of the environment.

*/ inline CreateEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;} /** *

The tags assigned to the created 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 assigned to the created 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_tags = value; } /** *

The tags assigned to the created 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_tags = std::move(value); } /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline CreateEnvironmentResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateEnvironmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateEnvironmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateEnvironmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_createdTime; Aws::String m_description; Aws::String m_environmentId; Aws::Utils::DateTime m_lastUpdatedTime; Aws::String m_name; NetworkFabricType m_networkFabricType; Aws::String m_ownerAccountId; EnvironmentState m_state; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws