All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.route53recoveryreadiness.model.GetResourceSetResult Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetResourceSetResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* 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 resources; private java.util.Map tags; /** *

* 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 GetResourceSetResult 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 GetResourceSetResult 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 GetResourceSetResult withResourceSetType(String resourceSetType) { setResourceSetType(resourceSetType); return this; } /** *

* A list of resource objects. *

* * @return A list of resource objects. */ public java.util.List getResources() { return resources; } /** *

* A list of resource objects. *

* * @param resources * A list of resource objects. */ public void setResources(java.util.Collection resources) { if (resources == null) { this.resources = null; return; } this.resources = new java.util.ArrayList(resources); } /** *

* 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 GetResourceSetResult withResources(Resource... resources) { if (this.resources == null) { setResources(new java.util.ArrayList(resources.length)); } for (Resource ele : resources) { this.resources.add(ele); } return this; } /** *

* 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 GetResourceSetResult withResources(java.util.Collection resources) { setResources(resources); return this; } /** * @return */ public java.util.Map getTags() { return tags; } /** * @param tags */ public void setTags(java.util.Map tags) { this.tags = tags; } /** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public GetResourceSetResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see GetResourceSetResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public GetResourceSetResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public GetResourceSetResult clearTagsEntries() { this.tags = null; return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceSetArn() != null) sb.append("ResourceSetArn: ").append(getResourceSetArn()).append(","); if (getResourceSetName() != null) sb.append("ResourceSetName: ").append(getResourceSetName()).append(","); if (getResourceSetType() != null) sb.append("ResourceSetType: ").append(getResourceSetType()).append(","); if (getResources() != null) sb.append("Resources: ").append(getResources()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetResourceSetResult == false) return false; GetResourceSetResult other = (GetResourceSetResult) obj; if (other.getResourceSetArn() == null ^ this.getResourceSetArn() == null) return false; if (other.getResourceSetArn() != null && other.getResourceSetArn().equals(this.getResourceSetArn()) == false) return false; if (other.getResourceSetName() == null ^ this.getResourceSetName() == null) return false; if (other.getResourceSetName() != null && other.getResourceSetName().equals(this.getResourceSetName()) == false) return false; if (other.getResourceSetType() == null ^ this.getResourceSetType() == null) return false; if (other.getResourceSetType() != null && other.getResourceSetType().equals(this.getResourceSetType()) == false) return false; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceSetArn() == null) ? 0 : getResourceSetArn().hashCode()); hashCode = prime * hashCode + ((getResourceSetName() == null) ? 0 : getResourceSetName().hashCode()); hashCode = prime * hashCode + ((getResourceSetType() == null) ? 0 : getResourceSetType().hashCode()); hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public GetResourceSetResult clone() { try { return (GetResourceSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy