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

com.amazonaws.services.resiliencehub.model.RemoveDraftAppVersionResourceMappingsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Resilience Hub module holds the client classes that are used for communicating with AWS Resilience Hub Service

The newest version!
/*
 * 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.resiliencehub.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. For more * information about ARNs, see * Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. *

*/ private String appArn; /** *

* The names of the registered applications you want to remove from the resource mappings. *

*/ private java.util.List appRegistryAppNames; /** *

* The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource * mappings. *

* *

* This parameter accepts values in "eks-cluster/namespace" format. *

*
*/ private java.util.List eksSourceNames; /** *

* The names of the CloudFormation stacks you want to remove from the resource mappings. *

*/ private java.util.List logicalStackNames; /** *

* The names of the resource groups you want to remove from the resource mappings. *

*/ private java.util.List resourceGroupNames; /** *

* The names of the resources you want to remove from the resource mappings. *

*/ private java.util.List resourceNames; /** *

* The names of the Terraform sources you want to remove from the resource mappings. *

*/ private java.util.List terraformSourceNames; /** *

* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. For more * information about ARNs, see * Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. *

* * @param appArn * Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. For * more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference guide. */ public void setAppArn(String appArn) { this.appArn = appArn; } /** *

* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. For more * information about ARNs, see * Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. *

* * @return Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference guide. */ public String getAppArn() { return this.appArn; } /** *

* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. For more * information about ARNs, see * Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. *

* * @param appArn * Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: * partition:resiliencehub:region:account:app/app-id. For * more information about ARNs, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference guide. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withAppArn(String appArn) { setAppArn(appArn); return this; } /** *

* The names of the registered applications you want to remove from the resource mappings. *

* * @return The names of the registered applications you want to remove from the resource mappings. */ public java.util.List getAppRegistryAppNames() { return appRegistryAppNames; } /** *

* The names of the registered applications you want to remove from the resource mappings. *

* * @param appRegistryAppNames * The names of the registered applications you want to remove from the resource mappings. */ public void setAppRegistryAppNames(java.util.Collection appRegistryAppNames) { if (appRegistryAppNames == null) { this.appRegistryAppNames = null; return; } this.appRegistryAppNames = new java.util.ArrayList(appRegistryAppNames); } /** *

* The names of the registered applications you want to remove from the resource mappings. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAppRegistryAppNames(java.util.Collection)} or {@link #withAppRegistryAppNames(java.util.Collection)} * if you want to override the existing values. *

* * @param appRegistryAppNames * The names of the registered applications you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withAppRegistryAppNames(String... appRegistryAppNames) { if (this.appRegistryAppNames == null) { setAppRegistryAppNames(new java.util.ArrayList(appRegistryAppNames.length)); } for (String ele : appRegistryAppNames) { this.appRegistryAppNames.add(ele); } return this; } /** *

* The names of the registered applications you want to remove from the resource mappings. *

* * @param appRegistryAppNames * The names of the registered applications you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withAppRegistryAppNames(java.util.Collection appRegistryAppNames) { setAppRegistryAppNames(appRegistryAppNames); return this; } /** *

* The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource * mappings. *

* *

* This parameter accepts values in "eks-cluster/namespace" format. *

*
* * @return The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the * resource mappings.

*

* This parameter accepts values in "eks-cluster/namespace" format. *

*/ public java.util.List getEksSourceNames() { return eksSourceNames; } /** *

* The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource * mappings. *

* *

* This parameter accepts values in "eks-cluster/namespace" format. *

*
* * @param eksSourceNames * The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the * resource mappings.

*

* This parameter accepts values in "eks-cluster/namespace" format. *

*/ public void setEksSourceNames(java.util.Collection eksSourceNames) { if (eksSourceNames == null) { this.eksSourceNames = null; return; } this.eksSourceNames = new java.util.ArrayList(eksSourceNames); } /** *

* The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource * mappings. *

* *

* This parameter accepts values in "eks-cluster/namespace" format. *

*
*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEksSourceNames(java.util.Collection)} or {@link #withEksSourceNames(java.util.Collection)} if you want * to override the existing values. *

* * @param eksSourceNames * The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the * resource mappings.

*

* This parameter accepts values in "eks-cluster/namespace" format. *

* @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withEksSourceNames(String... eksSourceNames) { if (this.eksSourceNames == null) { setEksSourceNames(new java.util.ArrayList(eksSourceNames.length)); } for (String ele : eksSourceNames) { this.eksSourceNames.add(ele); } return this; } /** *

* The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource * mappings. *

* *

* This parameter accepts values in "eks-cluster/namespace" format. *

*
* * @param eksSourceNames * The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the * resource mappings.

*

* This parameter accepts values in "eks-cluster/namespace" format. *

* @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withEksSourceNames(java.util.Collection eksSourceNames) { setEksSourceNames(eksSourceNames); return this; } /** *

* The names of the CloudFormation stacks you want to remove from the resource mappings. *

* * @return The names of the CloudFormation stacks you want to remove from the resource mappings. */ public java.util.List getLogicalStackNames() { return logicalStackNames; } /** *

* The names of the CloudFormation stacks you want to remove from the resource mappings. *

* * @param logicalStackNames * The names of the CloudFormation stacks you want to remove from the resource mappings. */ public void setLogicalStackNames(java.util.Collection logicalStackNames) { if (logicalStackNames == null) { this.logicalStackNames = null; return; } this.logicalStackNames = new java.util.ArrayList(logicalStackNames); } /** *

* The names of the CloudFormation stacks you want to remove from the resource mappings. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogicalStackNames(java.util.Collection)} or {@link #withLogicalStackNames(java.util.Collection)} if * you want to override the existing values. *

* * @param logicalStackNames * The names of the CloudFormation stacks you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withLogicalStackNames(String... logicalStackNames) { if (this.logicalStackNames == null) { setLogicalStackNames(new java.util.ArrayList(logicalStackNames.length)); } for (String ele : logicalStackNames) { this.logicalStackNames.add(ele); } return this; } /** *

* The names of the CloudFormation stacks you want to remove from the resource mappings. *

* * @param logicalStackNames * The names of the CloudFormation stacks you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withLogicalStackNames(java.util.Collection logicalStackNames) { setLogicalStackNames(logicalStackNames); return this; } /** *

* The names of the resource groups you want to remove from the resource mappings. *

* * @return The names of the resource groups you want to remove from the resource mappings. */ public java.util.List getResourceGroupNames() { return resourceGroupNames; } /** *

* The names of the resource groups you want to remove from the resource mappings. *

* * @param resourceGroupNames * The names of the resource groups you want to remove from the resource mappings. */ public void setResourceGroupNames(java.util.Collection resourceGroupNames) { if (resourceGroupNames == null) { this.resourceGroupNames = null; return; } this.resourceGroupNames = new java.util.ArrayList(resourceGroupNames); } /** *

* The names of the resource groups you want to remove from the resource mappings. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceGroupNames(java.util.Collection)} or {@link #withResourceGroupNames(java.util.Collection)} if * you want to override the existing values. *

* * @param resourceGroupNames * The names of the resource groups you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withResourceGroupNames(String... resourceGroupNames) { if (this.resourceGroupNames == null) { setResourceGroupNames(new java.util.ArrayList(resourceGroupNames.length)); } for (String ele : resourceGroupNames) { this.resourceGroupNames.add(ele); } return this; } /** *

* The names of the resource groups you want to remove from the resource mappings. *

* * @param resourceGroupNames * The names of the resource groups you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withResourceGroupNames(java.util.Collection resourceGroupNames) { setResourceGroupNames(resourceGroupNames); return this; } /** *

* The names of the resources you want to remove from the resource mappings. *

* * @return The names of the resources you want to remove from the resource mappings. */ public java.util.List getResourceNames() { return resourceNames; } /** *

* The names of the resources you want to remove from the resource mappings. *

* * @param resourceNames * The names of the resources you want to remove from the resource mappings. */ public void setResourceNames(java.util.Collection resourceNames) { if (resourceNames == null) { this.resourceNames = null; return; } this.resourceNames = new java.util.ArrayList(resourceNames); } /** *

* The names of the resources you want to remove from the resource mappings. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceNames(java.util.Collection)} or {@link #withResourceNames(java.util.Collection)} if you want * to override the existing values. *

* * @param resourceNames * The names of the resources you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withResourceNames(String... resourceNames) { if (this.resourceNames == null) { setResourceNames(new java.util.ArrayList(resourceNames.length)); } for (String ele : resourceNames) { this.resourceNames.add(ele); } return this; } /** *

* The names of the resources you want to remove from the resource mappings. *

* * @param resourceNames * The names of the resources you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withResourceNames(java.util.Collection resourceNames) { setResourceNames(resourceNames); return this; } /** *

* The names of the Terraform sources you want to remove from the resource mappings. *

* * @return The names of the Terraform sources you want to remove from the resource mappings. */ public java.util.List getTerraformSourceNames() { return terraformSourceNames; } /** *

* The names of the Terraform sources you want to remove from the resource mappings. *

* * @param terraformSourceNames * The names of the Terraform sources you want to remove from the resource mappings. */ public void setTerraformSourceNames(java.util.Collection terraformSourceNames) { if (terraformSourceNames == null) { this.terraformSourceNames = null; return; } this.terraformSourceNames = new java.util.ArrayList(terraformSourceNames); } /** *

* The names of the Terraform sources you want to remove from the resource mappings. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTerraformSourceNames(java.util.Collection)} or {@link #withTerraformSourceNames(java.util.Collection)} * if you want to override the existing values. *

* * @param terraformSourceNames * The names of the Terraform sources you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withTerraformSourceNames(String... terraformSourceNames) { if (this.terraformSourceNames == null) { setTerraformSourceNames(new java.util.ArrayList(terraformSourceNames.length)); } for (String ele : terraformSourceNames) { this.terraformSourceNames.add(ele); } return this; } /** *

* The names of the Terraform sources you want to remove from the resource mappings. *

* * @param terraformSourceNames * The names of the Terraform sources you want to remove from the resource mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoveDraftAppVersionResourceMappingsRequest withTerraformSourceNames(java.util.Collection terraformSourceNames) { setTerraformSourceNames(terraformSourceNames); 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 (getAppArn() != null) sb.append("AppArn: ").append(getAppArn()).append(","); if (getAppRegistryAppNames() != null) sb.append("AppRegistryAppNames: ").append(getAppRegistryAppNames()).append(","); if (getEksSourceNames() != null) sb.append("EksSourceNames: ").append(getEksSourceNames()).append(","); if (getLogicalStackNames() != null) sb.append("LogicalStackNames: ").append(getLogicalStackNames()).append(","); if (getResourceGroupNames() != null) sb.append("ResourceGroupNames: ").append(getResourceGroupNames()).append(","); if (getResourceNames() != null) sb.append("ResourceNames: ").append(getResourceNames()).append(","); if (getTerraformSourceNames() != null) sb.append("TerraformSourceNames: ").append(getTerraformSourceNames()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RemoveDraftAppVersionResourceMappingsRequest == false) return false; RemoveDraftAppVersionResourceMappingsRequest other = (RemoveDraftAppVersionResourceMappingsRequest) obj; if (other.getAppArn() == null ^ this.getAppArn() == null) return false; if (other.getAppArn() != null && other.getAppArn().equals(this.getAppArn()) == false) return false; if (other.getAppRegistryAppNames() == null ^ this.getAppRegistryAppNames() == null) return false; if (other.getAppRegistryAppNames() != null && other.getAppRegistryAppNames().equals(this.getAppRegistryAppNames()) == false) return false; if (other.getEksSourceNames() == null ^ this.getEksSourceNames() == null) return false; if (other.getEksSourceNames() != null && other.getEksSourceNames().equals(this.getEksSourceNames()) == false) return false; if (other.getLogicalStackNames() == null ^ this.getLogicalStackNames() == null) return false; if (other.getLogicalStackNames() != null && other.getLogicalStackNames().equals(this.getLogicalStackNames()) == false) return false; if (other.getResourceGroupNames() == null ^ this.getResourceGroupNames() == null) return false; if (other.getResourceGroupNames() != null && other.getResourceGroupNames().equals(this.getResourceGroupNames()) == false) return false; if (other.getResourceNames() == null ^ this.getResourceNames() == null) return false; if (other.getResourceNames() != null && other.getResourceNames().equals(this.getResourceNames()) == false) return false; if (other.getTerraformSourceNames() == null ^ this.getTerraformSourceNames() == null) return false; if (other.getTerraformSourceNames() != null && other.getTerraformSourceNames().equals(this.getTerraformSourceNames()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppArn() == null) ? 0 : getAppArn().hashCode()); hashCode = prime * hashCode + ((getAppRegistryAppNames() == null) ? 0 : getAppRegistryAppNames().hashCode()); hashCode = prime * hashCode + ((getEksSourceNames() == null) ? 0 : getEksSourceNames().hashCode()); hashCode = prime * hashCode + ((getLogicalStackNames() == null) ? 0 : getLogicalStackNames().hashCode()); hashCode = prime * hashCode + ((getResourceGroupNames() == null) ? 0 : getResourceGroupNames().hashCode()); hashCode = prime * hashCode + ((getResourceNames() == null) ? 0 : getResourceNames().hashCode()); hashCode = prime * hashCode + ((getTerraformSourceNames() == null) ? 0 : getTerraformSourceNames().hashCode()); return hashCode; } @Override public RemoveDraftAppVersionResourceMappingsRequest clone() { return (RemoveDraftAppVersionResourceMappingsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy