/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Route53RecoveryReadiness { namespace Model { class CreateResourceSetResult { public: AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetResult(); AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetResult(const Aws::AmazonWebServiceResult& result); AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) for the resource set.

*/ inline const Aws::String& GetResourceSetArn() const{ return m_resourceSetArn; } /** *

The Amazon Resource Name (ARN) for the resource set.

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

The Amazon Resource Name (ARN) for the resource set.

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

The Amazon Resource Name (ARN) for the resource set.

*/ inline void SetResourceSetArn(const char* value) { m_resourceSetArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the resource set.

*/ inline CreateResourceSetResult& WithResourceSetArn(const Aws::String& value) { SetResourceSetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the resource set.

*/ inline CreateResourceSetResult& WithResourceSetArn(Aws::String&& value) { SetResourceSetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the resource set.

*/ inline CreateResourceSetResult& WithResourceSetArn(const char* value) { SetResourceSetArn(value); return *this;} /** *

The name of the resource set.

*/ inline const Aws::String& GetResourceSetName() const{ return m_resourceSetName; } /** *

The name of the resource set.

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

The name of the resource set.

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

The name of the resource set.

*/ inline void SetResourceSetName(const char* value) { m_resourceSetName.assign(value); } /** *

The name of the resource set.

*/ inline CreateResourceSetResult& WithResourceSetName(const Aws::String& value) { SetResourceSetName(value); return *this;} /** *

The name of the resource set.

*/ inline CreateResourceSetResult& WithResourceSetName(Aws::String&& value) { SetResourceSetName(std::move(value)); return *this;} /** *

The name of the resource set.

*/ inline CreateResourceSetResult& WithResourceSetName(const char* value) { SetResourceSetName(value); return *this;} /** *

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

*/ inline const Aws::String& GetResourceSetType() const{ return m_resourceSetType; } /** *

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

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

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

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

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

*/ inline void SetResourceSetType(const char* value) { m_resourceSetType.assign(value); } /** *

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

*/ inline CreateResourceSetResult& WithResourceSetType(const Aws::String& value) { SetResourceSetType(value); return *this;} /** *

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

*/ inline CreateResourceSetResult& WithResourceSetType(Aws::String&& value) { SetResourceSetType(std::move(value)); return *this;} /** *

The resource type of the resources in the resource set. Enter one of the * following values for resource type:

AWS::ApiGateway::Stage, * AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, * AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, * AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, * AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, * AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, * AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, * AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, * AWS::Route53RecoveryReadiness::DNSTargetResource

*/ inline CreateResourceSetResult& WithResourceSetType(const char* value) { SetResourceSetType(value); return *this;} /** *

A list of resource objects.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

A list of resource objects.

*/ inline void SetResources(const Aws::Vector& value) { m_resources = value; } /** *

A list of resource objects.

*/ inline void SetResources(Aws::Vector&& value) { m_resources = std::move(value); } /** *

A list of resource objects.

*/ inline CreateResourceSetResult& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

A list of resource objects.

*/ inline CreateResourceSetResult& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

A list of resource objects.

*/ inline CreateResourceSetResult& AddResources(const Resource& value) { m_resources.push_back(value); return *this; } /** *

A list of resource objects.

*/ inline CreateResourceSetResult& AddResources(Resource&& value) { m_resources.push_back(std::move(value)); return *this; } inline const Aws::Map& GetTags() const{ return m_tags; } inline void SetTags(const Aws::Map& value) { m_tags = value; } inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } inline CreateResourceSetResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} inline CreateResourceSetResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} inline CreateResourceSetResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } inline CreateResourceSetResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } inline CreateResourceSetResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } inline CreateResourceSetResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } inline CreateResourceSetResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } inline CreateResourceSetResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } inline CreateResourceSetResult& 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 CreateResourceSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateResourceSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateResourceSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_resourceSetArn; Aws::String m_resourceSetName; Aws::String m_resourceSetType; Aws::Vector m_resources; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace Route53RecoveryReadiness } // namespace Aws