/* * 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.fsx.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 CopyBackupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { private String clientRequestToken; /** *
* The ID of the source backup. Specifies the ID of the backup that's being copied. *
*/ private String sourceBackupId; /** *
* The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the
* backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If
* you don't specify a Region, SourceRegion
defaults to the Region where the request is sent from
* (in-Region copy).
*
* A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value
* defaults to false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use the
* Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
* doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
* key but different values), the tags created with the Tags
parameter take precedence.
*
* The ID of the source backup. Specifies the ID of the backup that's being copied. *
* * @param sourceBackupId * The ID of the source backup. Specifies the ID of the backup that's being copied. */ public void setSourceBackupId(String sourceBackupId) { this.sourceBackupId = sourceBackupId; } /** ** The ID of the source backup. Specifies the ID of the backup that's being copied. *
* * @return The ID of the source backup. Specifies the ID of the backup that's being copied. */ public String getSourceBackupId() { return this.sourceBackupId; } /** ** The ID of the source backup. Specifies the ID of the backup that's being copied. *
* * @param sourceBackupId * The ID of the source backup. Specifies the ID of the backup that's being copied. * @return Returns a reference to this object so that method calls can be chained together. */ public CopyBackupRequest withSourceBackupId(String sourceBackupId) { setSourceBackupId(sourceBackupId); return this; } /** *
* The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the
* backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If
* you don't specify a Region, SourceRegion
defaults to the Region where the request is sent from
* (in-Region copy).
*
SourceRegion
defaults to the Region where the
* request is sent from (in-Region copy).
*/
public void setSourceRegion(String sourceRegion) {
this.sourceRegion = sourceRegion;
}
/**
*
* The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the
* backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If
* you don't specify a Region, SourceRegion
defaults to the Region where the request is sent from
* (in-Region copy).
*
SourceRegion
defaults to the Region where the
* request is sent from (in-Region copy).
*/
public String getSourceRegion() {
return this.sourceRegion;
}
/**
*
* The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the
* backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If
* you don't specify a Region, SourceRegion
defaults to the Region where the request is sent from
* (in-Region copy).
*
SourceRegion
defaults to the Region where the
* request is sent from (in-Region copy).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CopyBackupRequest withSourceRegion(String sourceRegion) {
setSourceRegion(sourceRegion);
return this;
}
/**
* @param kmsKeyId
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
* @return
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
* @param kmsKeyId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CopyBackupRequest withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value
* defaults to false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use the
* Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
* doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
* key but different values), the tags created with the Tags
parameter take precedence.
*
false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use
* the Tags
parameter to create new tags, provided that the sum of the source backup tags and
* the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two
* tags with the same key but different values), the tags created with the Tags
parameter take
* precedence.
*/
public void setCopyTags(Boolean copyTags) {
this.copyTags = copyTags;
}
/**
*
* A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value
* defaults to false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use the
* Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
* doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
* key but different values), the tags created with the Tags
parameter take precedence.
*
false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can
* use the Tags
parameter to create new tags, provided that the sum of the source backup tags
* and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for
* example, two tags with the same key but different values), the tags created with the Tags
* parameter take precedence.
*/
public Boolean getCopyTags() {
return this.copyTags;
}
/**
*
* A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value
* defaults to false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use the
* Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
* doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
* key but different values), the tags created with the Tags
parameter take precedence.
*
false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use
* the Tags
parameter to create new tags, provided that the sum of the source backup tags and
* the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two
* tags with the same key but different values), the tags created with the Tags
parameter take
* precedence.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CopyBackupRequest withCopyTags(Boolean copyTags) {
setCopyTags(copyTags);
return this;
}
/**
*
* A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value
* defaults to false
.
*
* If you set CopyTags
to true
and the source backup has existing tags, you can use the
* Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
* doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
* key but different values), the tags created with the Tags
parameter take precedence.
*
false
.
*
* If you set
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
* CopyTags
to true
and the source backup has existing tags, you can
* use the Tags
parameter to create new tags, provided that the sum of the source backup tags
* and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for
* example, two tags with the same key but different values), the tags created with the Tags
* parameter take precedence.
*/
public Boolean isCopyTags() {
return this.copyTags;
}
/**
* @return
*/
public java.util.List