/* * 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 CreateLegalHoldRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* This is the string title of the legal hold. *
*/ private String title; /** ** This is the string description of the legal hold. *
*/ private String description; /** ** This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request * with the same idempotency token results in a success message with no action taken. *
*/ private String idempotencyToken; /** ** This specifies criteria to assign a set of resources, such as resource types or backup vaults. *
*/ private RecoveryPointSelection recoveryPointSelection; /** ** Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. * Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /. *
*/ private java.util.Map* This is the string title of the legal hold. *
* * @param title * This is the string title of the legal hold. */ public void setTitle(String title) { this.title = title; } /** ** This is the string title of the legal hold. *
* * @return This is the string title of the legal hold. */ public String getTitle() { return this.title; } /** ** This is the string title of the legal hold. *
* * @param title * This is the string title of the legal hold. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLegalHoldRequest withTitle(String title) { setTitle(title); return this; } /** ** This is the string description of the legal hold. *
* * @param description * This is the string description of the legal hold. */ public void setDescription(String description) { this.description = description; } /** ** This is the string description of the legal hold. *
* * @return This is the string description of the legal hold. */ public String getDescription() { return this.description; } /** ** This is the string description of the legal hold. *
* * @param description * This is the string description of the legal hold. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLegalHoldRequest withDescription(String description) { setDescription(description); return this; } /** ** This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request * with the same idempotency token results in a success message with no action taken. *
* * @param idempotencyToken * This is a user-chosen string used to distinguish between otherwise identical calls. 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; } /** ** This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request * with the same idempotency token results in a success message with no action taken. *
* * @return This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful * request with the same idempotency token results in a success message with no action taken. */ public String getIdempotencyToken() { return this.idempotencyToken; } /** ** This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request * with the same idempotency token results in a success message with no action taken. *
* * @param idempotencyToken * This is a user-chosen string used to distinguish between otherwise identical calls. 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 CreateLegalHoldRequest withIdempotencyToken(String idempotencyToken) { setIdempotencyToken(idempotencyToken); return this; } /** ** This specifies criteria to assign a set of resources, such as resource types or backup vaults. *
* * @param recoveryPointSelection * This specifies criteria to assign a set of resources, such as resource types or backup vaults. */ public void setRecoveryPointSelection(RecoveryPointSelection recoveryPointSelection) { this.recoveryPointSelection = recoveryPointSelection; } /** ** This specifies criteria to assign a set of resources, such as resource types or backup vaults. *
* * @return This specifies criteria to assign a set of resources, such as resource types or backup vaults. */ public RecoveryPointSelection getRecoveryPointSelection() { return this.recoveryPointSelection; } /** ** This specifies criteria to assign a set of resources, such as resource types or backup vaults. *
* * @param recoveryPointSelection * This specifies criteria to assign a set of resources, such as resource types or backup vaults. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLegalHoldRequest withRecoveryPointSelection(RecoveryPointSelection recoveryPointSelection) { setRecoveryPointSelection(recoveryPointSelection); return this; } /** ** Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. * Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /. *
* * @return Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your * resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = * . _ : /. */ public java.util.Map* Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. * Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /. *
* * @param tags * Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your * resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = * . _ : /. */ public void setTags(java.util.Map* Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. * Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /. *
* * @param tags * Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your * resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = * . _ : /. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLegalHoldRequest withTags(java.util.Map