/* * 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.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 { /** *
* The 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 AWS General Reference guide.
*
* The names of the registered applications you want to remove from the resource mappings. *
*/ private java.util.List* 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. *
** The names of the CloudFormation stacks you want to remove from the resource mappings. *
*/ private java.util.List* The names of the resource groups you want to remove from the resource mappings. *
*/ private java.util.List* The names of the resources you want to remove from the resource mappings. *
*/ private java.util.List* The names of the Terraform sources you want to remove from the resource mappings. *
*/ private java.util.List
* The 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 AWS General Reference guide.
*
partition
:resiliencehub:region
:account
:app/app-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public void setAppArn(String appArn) {
this.appArn = appArn;
}
/**
*
* The 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 AWS General Reference guide.
*
partition
:resiliencehub:region
:account
:app/app-id
.
* For more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public String getAppArn() {
return this.appArn;
}
/**
*
* The 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 AWS General Reference guide.
*
partition
:resiliencehub:region
:account
:app/app-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS 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* 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* 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* 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* 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. *
** This parameter accepts values in "eks-cluster/namespace" format. *
*/ public java.util.List* 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. *
** This parameter accepts values in "eks-cluster/namespace" format. *
*/ public void setEksSourceNames(java.util.Collection* 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* 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. *
** 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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