/** * 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 { namespace Route53RecoveryReadiness { namespace Model { /** *

Name of a resource set.

See Also:

AWS * API Reference

*/ class UpdateResourceSetRequest : public Route53RecoveryReadinessRequest { public: AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetRequest(); // 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 "UpdateResourceSet"; } AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override; /** *

Name of a resource set.

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

Name of a resource set.

*/ inline bool ResourceSetNameHasBeenSet() const { return m_resourceSetNameHasBeenSet; } /** *

Name of a resource set.

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

Name of a resource set.

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

Name of a resource set.

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

Name of a resource set.

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

Name of a resource set.

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

Name of a resource set.

*/ inline UpdateResourceSetRequest& 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 bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; } /** *

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_resourceSetTypeHasBeenSet = true; 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_resourceSetTypeHasBeenSet = true; 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_resourceSetTypeHasBeenSet = true; 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 UpdateResourceSetRequest& 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 UpdateResourceSetRequest& 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 UpdateResourceSetRequest& 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 bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

A list of resource objects.

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

A list of resource objects.

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

A list of resource objects.

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

A list of resource objects.

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

A list of resource objects.

*/ inline UpdateResourceSetRequest& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

A list of resource objects.

*/ inline UpdateResourceSetRequest& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } private: Aws::String m_resourceSetName; bool m_resourceSetNameHasBeenSet = false; Aws::String m_resourceSetType; bool m_resourceSetTypeHasBeenSet = false; Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryReadiness } // namespace Aws