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

The ID of the application.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The ID of the application.

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

The ID of the application.

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

The ID of the application.

*/ inline void SetApplicationId(const char* value) { m_applicationId.assign(value); } /** *

The ID of the application.

*/ inline GetServiceResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The ID of the application.

*/ inline GetServiceResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The ID of the application.

*/ inline GetServiceResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Web Services account ID of the service creator.

*/ inline const Aws::String& GetCreatedByAccountId() const{ return m_createdByAccountId; } /** *

The Amazon Web Services account ID of the service creator.

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

The Amazon Web Services account ID of the service creator.

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

The Amazon Web Services account ID of the service creator.

*/ inline void SetCreatedByAccountId(const char* value) { m_createdByAccountId.assign(value); } /** *

The Amazon Web Services account ID of the service creator.

*/ inline GetServiceResult& WithCreatedByAccountId(const Aws::String& value) { SetCreatedByAccountId(value); return *this;} /** *

The Amazon Web Services account ID of the service creator.

*/ inline GetServiceResult& WithCreatedByAccountId(Aws::String&& value) { SetCreatedByAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the service creator.

*/ inline GetServiceResult& WithCreatedByAccountId(const char* value) { SetCreatedByAccountId(value); return *this;} /** *

The timestamp of when the service is created.

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

The timestamp of when the service is created.

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

The timestamp of when the service is created.

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

The timestamp of when the service is created.

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

The timestamp of when the service is created.

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

The description of the service.

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

The description of the service.

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

The description of the service.

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

The description of the service.

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

The description of the service.

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

The description of the service.

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

The description of the service.

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

The endpoint type of the service.

*/ inline const ServiceEndpointType& GetEndpointType() const{ return m_endpointType; } /** *

The endpoint type of the service.

*/ inline void SetEndpointType(const ServiceEndpointType& value) { m_endpointType = value; } /** *

The endpoint type of the service.

*/ inline void SetEndpointType(ServiceEndpointType&& value) { m_endpointType = std::move(value); } /** *

The endpoint type of the service.

*/ inline GetServiceResult& WithEndpointType(const ServiceEndpointType& value) { SetEndpointType(value); return *this;} /** *

The endpoint type of the service.

*/ inline GetServiceResult& WithEndpointType(ServiceEndpointType&& value) { SetEndpointType(std::move(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 GetServiceResult& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The unique identifier of the environment.

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

The unique identifier of the environment.

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

Any error associated with the service resource.

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

Any error associated with the service resource.

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

Any error associated with the service resource.

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

Any error associated with the service resource.

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

Any error associated with the service resource.

*/ inline GetServiceResult& WithError(ErrorResponse&& value) { SetError(std::move(value)); return *this;} /** *

The configuration for the Lambda endpoint type.

The Arn is the * Amazon Resource Name (ARN) of the Lambda function associated with this service. *

*/ inline const LambdaEndpointConfig& GetLambdaEndpoint() const{ return m_lambdaEndpoint; } /** *

The configuration for the Lambda endpoint type.

The Arn is the * Amazon Resource Name (ARN) of the Lambda function associated with this service. *

*/ inline void SetLambdaEndpoint(const LambdaEndpointConfig& value) { m_lambdaEndpoint = value; } /** *

The configuration for the Lambda endpoint type.

The Arn is the * Amazon Resource Name (ARN) of the Lambda function associated with this service. *

*/ inline void SetLambdaEndpoint(LambdaEndpointConfig&& value) { m_lambdaEndpoint = std::move(value); } /** *

The configuration for the Lambda endpoint type.

The Arn is the * Amazon Resource Name (ARN) of the Lambda function associated with this service. *

*/ inline GetServiceResult& WithLambdaEndpoint(const LambdaEndpointConfig& value) { SetLambdaEndpoint(value); return *this;} /** *

The configuration for the Lambda endpoint type.

The Arn is the * Amazon Resource Name (ARN) of the Lambda function associated with this service. *

*/ inline GetServiceResult& WithLambdaEndpoint(LambdaEndpointConfig&& value) { SetLambdaEndpoint(std::move(value)); return *this;} /** *

A timestamp that indicates when the service was last updated.

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

A timestamp that indicates when the service was last updated.

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

A timestamp that indicates when the service was last updated.

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

A timestamp that indicates when the service was last updated.

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

A timestamp that indicates when the service was last updated.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The Amazon Web Services account ID of the service owner.

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

The Amazon Web Services account ID of the service owner.

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

The Amazon Web Services account ID of the service owner.

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

The Amazon Web Services account ID of the service owner.

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

The Amazon Web Services account ID of the service owner.

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

The Amazon Web Services account ID of the service owner.

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

The Amazon Web Services account ID of the service owner.

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

The unique identifier of the service.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The unique identifier of the service.

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

The unique identifier of the service.

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

The unique identifier of the service.

*/ inline void SetServiceId(const char* value) { m_serviceId.assign(value); } /** *

The unique identifier of the service.

*/ inline GetServiceResult& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The unique identifier of the service.

*/ inline GetServiceResult& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The unique identifier of the service.

*/ inline GetServiceResult& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

The current state of the service.

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

The current state of the service.

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

The current state of the service.

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

The current state of the service.

*/ inline GetServiceResult& WithState(const ServiceState& value) { SetState(value); return *this;} /** *

The current state of the service.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The configuration for the URL endpoint type.

The Url isthe URL * of the endpoint type.

The HealthUrl is the health check URL of the * endpoint type.

*/ inline const UrlEndpointConfig& GetUrlEndpoint() const{ return m_urlEndpoint; } /** *

The configuration for the URL endpoint type.

The Url isthe URL * of the endpoint type.

The HealthUrl is the health check URL of the * endpoint type.

*/ inline void SetUrlEndpoint(const UrlEndpointConfig& value) { m_urlEndpoint = value; } /** *

The configuration for the URL endpoint type.

The Url isthe URL * of the endpoint type.

The HealthUrl is the health check URL of the * endpoint type.

*/ inline void SetUrlEndpoint(UrlEndpointConfig&& value) { m_urlEndpoint = std::move(value); } /** *

The configuration for the URL endpoint type.

The Url isthe URL * of the endpoint type.

The HealthUrl is the health check URL of the * endpoint type.

*/ inline GetServiceResult& WithUrlEndpoint(const UrlEndpointConfig& value) { SetUrlEndpoint(value); return *this;} /** *

The configuration for the URL endpoint type.

The Url isthe URL * of the endpoint type.

The HealthUrl is the health check URL of the * endpoint type.

*/ inline GetServiceResult& WithUrlEndpoint(UrlEndpointConfig&& value) { SetUrlEndpoint(std::move(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 void SetVpcId(const Aws::String& value) { m_vpcId = value; } /** *

The ID of the virtual private cloud (VPC).

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

The ID of the virtual private cloud (VPC).

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

The ID of the virtual private cloud (VPC).

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

The ID of the virtual private cloud (VPC).

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

The ID of the virtual private cloud (VPC).

*/ inline GetServiceResult& WithVpcId(const char* value) { SetVpcId(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 GetServiceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServiceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServiceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_applicationId; Aws::String m_arn; Aws::String m_createdByAccountId; Aws::Utils::DateTime m_createdTime; Aws::String m_description; ServiceEndpointType m_endpointType; Aws::String m_environmentId; ErrorResponse m_error; LambdaEndpointConfig m_lambdaEndpoint; Aws::Utils::DateTime m_lastUpdatedTime; Aws::String m_name; Aws::String m_ownerAccountId; Aws::String m_serviceId; ServiceState m_state; Aws::Map m_tags; UrlEndpointConfig m_urlEndpoint; Aws::String m_vpcId; Aws::String m_requestId; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws