/* * 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 CreateRecommendationTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the AWS General Reference guide.
*
* The name of the Amazon S3 bucket that will contain the recommendation template. *
*/ private String bucketName; /** ** Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. * You should not reuse the same client token for other API requests. *
*/ private String clientToken; /** ** The format for the recommendation template. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The name for the recommendation template. *
*/ private String name; /** ** Identifiers for the recommendations used to create a recommendation template. *
*/ private java.util.List* An array of strings that specify the recommendation template type or types. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag * consists of a key/value pair. *
*/ private java.util.Map
* The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the AWS General Reference guide.
*
partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more
* information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public void setAssessmentArn(String assessmentArn) {
this.assessmentArn = assessmentArn;
}
/**
*
* The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the AWS General Reference guide.
*
partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more
* information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public String getAssessmentArn() {
return this.assessmentArn;
}
/**
*
* The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the AWS General Reference guide.
*
partition
* :resiliencehub:region
:account
:app-assessment/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 CreateRecommendationTemplateRequest withAssessmentArn(String assessmentArn) {
setAssessmentArn(assessmentArn);
return this;
}
/**
* * The name of the Amazon S3 bucket that will contain the recommendation template. *
* * @param bucketName * The name of the Amazon S3 bucket that will contain the recommendation template. */ public void setBucketName(String bucketName) { this.bucketName = bucketName; } /** ** The name of the Amazon S3 bucket that will contain the recommendation template. *
* * @return The name of the Amazon S3 bucket that will contain the recommendation template. */ public String getBucketName() { return this.bucketName; } /** ** The name of the Amazon S3 bucket that will contain the recommendation template. *
* * @param bucketName * The name of the Amazon S3 bucket that will contain the recommendation template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommendationTemplateRequest withBucketName(String bucketName) { setBucketName(bucketName); return this; } /** ** Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. * You should not reuse the same client token for other API requests. *
* * @param clientToken * Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII * characters. You should not reuse the same client token for other API requests. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. * You should not reuse the same client token for other API requests. *
* * @return Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII * characters. You should not reuse the same client token for other API requests. */ public String getClientToken() { return this.clientToken; } /** ** Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. * You should not reuse the same client token for other API requests. *
* * @param clientToken * Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII * characters. You should not reuse the same client token for other API requests. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommendationTemplateRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The format for the recommendation template. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The format for the recommendation template. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The format for the recommendation template. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The format for the recommendation template. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The template is CloudFormation JSON. *
** The template is CloudFormation YAML. *
** The name for the recommendation template. *
* * @param name * The name for the recommendation template. */ public void setName(String name) { this.name = name; } /** ** The name for the recommendation template. *
* * @return The name for the recommendation template. */ public String getName() { return this.name; } /** ** The name for the recommendation template. *
* * @param name * The name for the recommendation template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommendationTemplateRequest withName(String name) { setName(name); return this; } /** ** Identifiers for the recommendations used to create a recommendation template. *
* * @return Identifiers for the recommendations used to create a recommendation template. */ public java.util.List* Identifiers for the recommendations used to create a recommendation template. *
* * @param recommendationIds * Identifiers for the recommendations used to create a recommendation template. */ public void setRecommendationIds(java.util.Collection* Identifiers for the recommendations used to create a recommendation template. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecommendationIds(java.util.Collection)} or {@link #withRecommendationIds(java.util.Collection)} if * you want to override the existing values. *
* * @param recommendationIds * Identifiers for the recommendations used to create a recommendation template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommendationTemplateRequest withRecommendationIds(String... recommendationIds) { if (this.recommendationIds == null) { setRecommendationIds(new java.util.ArrayList* Identifiers for the recommendations used to create a recommendation template. *
* * @param recommendationIds * Identifiers for the recommendations used to create a recommendation template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommendationTemplateRequest withRecommendationIds(java.util.Collection* An array of strings that specify the recommendation template type or types. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** An array of strings that specify the recommendation template type or types. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** An array of strings that specify the recommendation template type or types. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecommendationTypes(java.util.Collection)} or {@link #withRecommendationTypes(java.util.Collection)} * if you want to override the existing values. *
* * @param recommendationTypes * An array of strings that specify the recommendation template type or types. ** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** An array of strings that specify the recommendation template type or types. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** An array of strings that specify the recommendation template type or types. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** The template is an AlarmRecommendation template. *
** The template is a SopRecommendation template. *
** The template is a TestRecommendation template. *
** The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag * consists of a key/value pair. *
* * @return The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair. */ public java.util.Map* The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag * consists of a key/value pair. *
* * @param tags * The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair. */ public void setTags(java.util.Map* The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag * consists of a key/value pair. *
* * @param tags * The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommendationTemplateRequest withTags(java.util.Map