/* * 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.backup.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 CreateFrameworkRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and * consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). *
*/ private String frameworkName; /** ** An optional description of the framework with a maximum of 1,024 characters. *
*/ private String frameworkDescription; /** ** A list of the controls that make up the framework. Each control in the list has a name, input parameters, and * scope. *
*/ private java.util.List
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
* Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair. *
*/ private java.util.Map* The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and * consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). *
* * @param frameworkName * The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, * and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). */ public void setFrameworkName(String frameworkName) { this.frameworkName = frameworkName; } /** ** The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and * consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). *
* * @return The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, * and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). */ public String getFrameworkName() { return this.frameworkName; } /** ** The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and * consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). *
* * @param frameworkName * The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, * and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFrameworkRequest withFrameworkName(String frameworkName) { setFrameworkName(frameworkName); return this; } /** ** An optional description of the framework with a maximum of 1,024 characters. *
* * @param frameworkDescription * An optional description of the framework with a maximum of 1,024 characters. */ public void setFrameworkDescription(String frameworkDescription) { this.frameworkDescription = frameworkDescription; } /** ** An optional description of the framework with a maximum of 1,024 characters. *
* * @return An optional description of the framework with a maximum of 1,024 characters. */ public String getFrameworkDescription() { return this.frameworkDescription; } /** ** An optional description of the framework with a maximum of 1,024 characters. *
* * @param frameworkDescription * An optional description of the framework with a maximum of 1,024 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFrameworkRequest withFrameworkDescription(String frameworkDescription) { setFrameworkDescription(frameworkDescription); return this; } /** ** A list of the controls that make up the framework. Each control in the list has a name, input parameters, and * scope. *
* * @return A list of the controls that make up the framework. Each control in the list has a name, input parameters, * and scope. */ public java.util.List* A list of the controls that make up the framework. Each control in the list has a name, input parameters, and * scope. *
* * @param frameworkControls * A list of the controls that make up the framework. Each control in the list has a name, input parameters, * and scope. */ public void setFrameworkControls(java.util.Collection* A list of the controls that make up the framework. Each control in the list has a name, input parameters, and * scope. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFrameworkControls(java.util.Collection)} or {@link #withFrameworkControls(java.util.Collection)} if * you want to override the existing values. *
* * @param frameworkControls * A list of the controls that make up the framework. Each control in the list has a name, input parameters, * and scope. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFrameworkRequest withFrameworkControls(FrameworkControl... frameworkControls) { if (this.frameworkControls == null) { setFrameworkControls(new java.util.ArrayList* A list of the controls that make up the framework. Each control in the list has a name, input parameters, and * scope. *
* * @param frameworkControls * A list of the controls that make up the framework. Each control in the list has a name, input parameters, * and scope. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFrameworkRequest withFrameworkControls(java.util.Collection
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
CreateFrameworkInput
. Retrying a successful request with the same idempotency token results
* in a success message with no action taken.
*/
public void setIdempotencyToken(String idempotencyToken) {
this.idempotencyToken = idempotencyToken;
}
/**
*
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
CreateFrameworkInput
. Retrying a successful request with the same idempotency token results
* in a success message with no action taken.
*/
public String getIdempotencyToken() {
return this.idempotencyToken;
}
/**
*
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
CreateFrameworkInput
. Retrying a successful request with the same idempotency token results
* in a success message with no action taken.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFrameworkRequest withIdempotencyToken(String idempotencyToken) {
setIdempotencyToken(idempotencyToken);
return this;
}
/**
* * Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair. *
* * @return Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value * pair. */ public java.util.Map* Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair. *
* * @param frameworkTags * Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value * pair. */ public void setFrameworkTags(java.util.Map* Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair. *
* * @param frameworkTags * Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value * pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFrameworkRequest withFrameworkTags(java.util.Map