/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53recoveryreadiness.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A collection of resources of the same type. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourceSetOutput implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) for the resource set. *
*/ private String resourceSetArn; /** ** The name of the resource set. *
*/ private String resourceSetName; /** ** 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 *
*/ private String resourceSetType; /** ** A list of resource objects. *
*/ private java.util.List* The Amazon Resource Name (ARN) for the resource set. *
* * @param resourceSetArn * The Amazon Resource Name (ARN) for the resource set. */ public void setResourceSetArn(String resourceSetArn) { this.resourceSetArn = resourceSetArn; } /** ** The Amazon Resource Name (ARN) for the resource set. *
* * @return The Amazon Resource Name (ARN) for the resource set. */ public String getResourceSetArn() { return this.resourceSetArn; } /** ** The Amazon Resource Name (ARN) for the resource set. *
* * @param resourceSetArn * The Amazon Resource Name (ARN) for the resource set. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSetOutput withResourceSetArn(String resourceSetArn) { setResourceSetArn(resourceSetArn); return this; } /** ** The name of the resource set. *
* * @param resourceSetName * The name of the resource set. */ public void setResourceSetName(String resourceSetName) { this.resourceSetName = resourceSetName; } /** ** The name of the resource set. *
* * @return The name of the resource set. */ public String getResourceSetName() { return this.resourceSetName; } /** ** The name of the resource set. *
* * @param resourceSetName * The name of the resource set. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSetOutput withResourceSetName(String resourceSetName) { setResourceSetName(resourceSetName); 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 *
* * @param 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 */ public void setResourceSetType(String resourceSetType) { this.resourceSetType = 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 *
* * @return 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 */ public String getResourceSetType() { return this.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 *
* * @param 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 * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSetOutput withResourceSetType(String resourceSetType) { setResourceSetType(resourceSetType); return this; } /** *
* A list of resource objects. *
* * @return A list of resource objects. */ public java.util.List* A list of resource objects. *
* * @param resources * A list of resource objects. */ public void setResources(java.util.Collection* A list of resource objects. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to * override the existing values. *
* * @param resources * A list of resource objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSetOutput withResources(Resource... resources) { if (this.resources == null) { setResources(new java.util.ArrayList* A list of resource objects. *
* * @param resources * A list of resource objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSetOutput withResources(java.util.Collection