/* * 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 ImportResourcesToDraftAppVersionRequest 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 input sources of the Amazon Elastic Kubernetes Service resources you need to import. *
*/ private java.util.List* The import strategy you would like to set to import resources into Resilience Hub application. *
*/ private String importStrategy; /** ** The Amazon Resource Names (ARNs) for the resources. *
*/ private java.util.List* A list of terraform file s3 URLs you need to import. *
*/ 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 ImportResourcesToDraftAppVersionRequest withAppArn(String appArn) {
setAppArn(appArn);
return this;
}
/**
* * The input sources of the Amazon Elastic Kubernetes Service resources you need to import. *
* * @return The input sources of the Amazon Elastic Kubernetes Service resources you need to import. */ public java.util.List* The input sources of the Amazon Elastic Kubernetes Service resources you need to import. *
* * @param eksSources * The input sources of the Amazon Elastic Kubernetes Service resources you need to import. */ public void setEksSources(java.util.Collection* The input sources of the Amazon Elastic Kubernetes Service resources you need to import. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEksSources(java.util.Collection)} or {@link #withEksSources(java.util.Collection)} if you want to * override the existing values. *
* * @param eksSources * The input sources of the Amazon Elastic Kubernetes Service resources you need to import. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportResourcesToDraftAppVersionRequest withEksSources(EksSource... eksSources) { if (this.eksSources == null) { setEksSources(new java.util.ArrayList* The input sources of the Amazon Elastic Kubernetes Service resources you need to import. *
* * @param eksSources * The input sources of the Amazon Elastic Kubernetes Service resources you need to import. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportResourcesToDraftAppVersionRequest withEksSources(java.util.Collection* The import strategy you would like to set to import resources into Resilience Hub application. *
* * @param importStrategy * The import strategy you would like to set to import resources into Resilience Hub application. * @see ResourceImportStrategyType */ public void setImportStrategy(String importStrategy) { this.importStrategy = importStrategy; } /** ** The import strategy you would like to set to import resources into Resilience Hub application. *
* * @return The import strategy you would like to set to import resources into Resilience Hub application. * @see ResourceImportStrategyType */ public String getImportStrategy() { return this.importStrategy; } /** ** The import strategy you would like to set to import resources into Resilience Hub application. *
* * @param importStrategy * The import strategy you would like to set to import resources into Resilience Hub application. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceImportStrategyType */ public ImportResourcesToDraftAppVersionRequest withImportStrategy(String importStrategy) { setImportStrategy(importStrategy); return this; } /** ** The import strategy you would like to set to import resources into Resilience Hub application. *
* * @param importStrategy * The import strategy you would like to set to import resources into Resilience Hub application. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceImportStrategyType */ public ImportResourcesToDraftAppVersionRequest withImportStrategy(ResourceImportStrategyType importStrategy) { this.importStrategy = importStrategy.toString(); return this; } /** ** The Amazon Resource Names (ARNs) for the resources. *
* * @return The Amazon Resource Names (ARNs) for the resources. */ public java.util.List* The Amazon Resource Names (ARNs) for the resources. *
* * @param sourceArns * The Amazon Resource Names (ARNs) for the resources. */ public void setSourceArns(java.util.Collection* The Amazon Resource Names (ARNs) for the resources. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSourceArns(java.util.Collection)} or {@link #withSourceArns(java.util.Collection)} if you want to * override the existing values. *
* * @param sourceArns * The Amazon Resource Names (ARNs) for the resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportResourcesToDraftAppVersionRequest withSourceArns(String... sourceArns) { if (this.sourceArns == null) { setSourceArns(new java.util.ArrayList* The Amazon Resource Names (ARNs) for the resources. *
* * @param sourceArns * The Amazon Resource Names (ARNs) for the resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportResourcesToDraftAppVersionRequest withSourceArns(java.util.Collection* A list of terraform file s3 URLs you need to import. *
* * @return A list of terraform file s3 URLs you need to import. */ public java.util.List* A list of terraform file s3 URLs you need to import. *
* * @param terraformSources * A list of terraform file s3 URLs you need to import. */ public void setTerraformSources(java.util.Collection* A list of terraform file s3 URLs you need to import. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTerraformSources(java.util.Collection)} or {@link #withTerraformSources(java.util.Collection)} if you * want to override the existing values. *
* * @param terraformSources * A list of terraform file s3 URLs you need to import. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportResourcesToDraftAppVersionRequest withTerraformSources(TerraformSource... terraformSources) { if (this.terraformSources == null) { setTerraformSources(new java.util.ArrayList* A list of terraform file s3 URLs you need to import. *
* * @param terraformSources * A list of terraform file s3 URLs you need to import. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportResourcesToDraftAppVersionRequest withTerraformSources(java.util.Collection