/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MigrationHubRefactorSpaces { namespace Model { /** *

The summary information for environments as a response to * ListEnvironments.

See Also:

AWS * API Reference

*/ class EnvironmentSummary { public: AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary(); AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue); AWS_MIGRATIONHUBREFACTORSPACES_API EnvironmentSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the environment.

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

The Amazon Resource Name (ARN) of the environment.

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

The Amazon Resource Name (ARN) of the environment.

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

The Amazon Resource Name (ARN) of the environment.

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

The Amazon Resource Name (ARN) of the environment.

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

The Amazon Resource Name (ARN) of the environment.

*/ inline EnvironmentSummary& 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 bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

A timestamp that indicates when the environment is created.

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

A timestamp that indicates when the environment is created.

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

A timestamp that indicates when the environment is created.

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

A timestamp that indicates when the environment is created.

*/ inline EnvironmentSummary& 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 bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

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

A description of the environment.

*/ inline EnvironmentSummary& 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 bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The unique identifier of the environment.

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

The unique identifier of the environment.

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

The unique identifier of the environment.

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

The unique identifier of the environment.

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

The unique identifier of the environment.

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

The unique identifier of the environment.

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

Any error associated with the environment resource.

*/ inline const ErrorResponse& GetError() const{ return m_error; } /** *

Any error associated with the environment resource.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

Any error associated with the environment resource.

*/ inline void SetError(const ErrorResponse& value) { m_errorHasBeenSet = true; m_error = value; } /** *

Any error associated with the environment resource.

*/ inline void SetError(ErrorResponse&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

Any error associated with the environment resource.

*/ inline EnvironmentSummary& WithError(const ErrorResponse& value) { SetError(value); return *this;} /** *

Any error associated with the environment resource.

*/ inline EnvironmentSummary& WithError(ErrorResponse&& value) { SetError(std::move(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 bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

A timestamp that indicates when the environment was last updated.

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

A timestamp that indicates when the environment was last updated.

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

A timestamp that indicates when the environment was last updated.

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

A timestamp that indicates when the environment was last updated.

*/ inline EnvironmentSummary& 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 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 EnvironmentSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the environment.

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

The name of the environment.

*/ inline EnvironmentSummary& 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 EnvironmentSummary& WithNetworkFabricType(const NetworkFabricType& value) { SetNetworkFabricType(value); return *this;} /** *

The network fabric type of the environment.

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

The Amazon Web Services account ID of the environment owner.

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

The Amazon Web Services account ID of the environment owner.

*/ inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID of the environment owner.

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

The Amazon Web Services account ID of the environment owner.

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

The Amazon Web Services account ID of the environment owner.

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

The Amazon Web Services account ID of the environment owner.

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

The Amazon Web Services account ID of the environment owner.

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

The Amazon Web Services account ID of the environment owner.

*/ inline EnvironmentSummary& 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 bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the environment.

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

The current state of the environment.

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

The current state of the environment.

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

The current state of the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The tags assigned to the environment.

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

The ID of the Transit Gateway set up by the environment.

*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *

The ID of the Transit Gateway set up by the environment.

*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *

The ID of the Transit Gateway set up by the environment.

*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *

The ID of the Transit Gateway set up by the environment.

*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *

The ID of the Transit Gateway set up by the environment.

*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *

The ID of the Transit Gateway set up by the environment.

*/ inline EnvironmentSummary& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *

The ID of the Transit Gateway set up by the environment.

*/ inline EnvironmentSummary& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *

The ID of the Transit Gateway set up by the environment.

*/ inline EnvironmentSummary& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; ErrorResponse m_error; bool m_errorHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; NetworkFabricType m_networkFabricType; bool m_networkFabricTypeHasBeenSet = false; Aws::String m_ownerAccountId; bool m_ownerAccountIdHasBeenSet = false; EnvironmentState m_state; bool m_stateHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws