@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateBackupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The request object for the CreateBackup
operation.
NOOP
Constructor and Description |
---|
CreateBackupRequest() |
Modifier and Type | Method and Description |
---|---|
CreateBackupRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation.
|
String |
getFileSystemId()
The ID of the file system to back up.
|
List<Tag> |
getTags()
(Optional) The tags to apply to the backup at backup creation.
|
String |
getVolumeId()
(Optional) The ID of the FSx for ONTAP volume to back up.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken)
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation.
|
void |
setFileSystemId(String fileSystemId)
The ID of the file system to back up.
|
void |
setTags(Collection<Tag> tags)
(Optional) The tags to apply to the backup at backup creation.
|
void |
setVolumeId(String volumeId)
(Optional) The ID of the FSx for ONTAP volume to back up.
|
String |
toString()
Returns a string representation of this object.
|
CreateBackupRequest |
withClientRequestToken(String clientRequestToken)
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation.
|
CreateBackupRequest |
withFileSystemId(String fileSystemId)
The ID of the file system to back up.
|
CreateBackupRequest |
withTags(Collection<Tag> tags)
(Optional) The tags to apply to the backup at backup creation.
|
CreateBackupRequest |
withTags(Tag... tags)
(Optional) The tags to apply to the backup at backup creation.
|
CreateBackupRequest |
withVolumeId(String volumeId)
(Optional) The ID of the FSx for ONTAP volume to back up.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFileSystemId(String fileSystemId)
The ID of the file system to back up.
fileSystemId
- The ID of the file system to back up.public String getFileSystemId()
The ID of the file system to back up.
public CreateBackupRequest withFileSystemId(String fileSystemId)
The ID of the file system to back up.
fileSystemId
- The ID of the file system to back up.public void setClientRequestToken(String clientRequestToken)
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
clientRequestToken
- (Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This
string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon
Web Services SDK.public String getClientRequestToken()
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
public CreateBackupRequest withClientRequestToken(String clientRequestToken)
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
clientRequestToken
- (Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This
string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon
Web Services SDK.public List<Tag> getTags()
(Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag appears
in the console as the backup name. If you have set CopyTagsToBackups
to true
, and you
specify one or more tags using the CreateBackup
operation, no existing file system tags are copied
from the file system to the backup.
Name
tag
appears in the console as the backup name. If you have set CopyTagsToBackups
to
true
, and you specify one or more tags using the CreateBackup
operation, no
existing file system tags are copied from the file system to the backup.public void setTags(Collection<Tag> tags)
(Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag appears
in the console as the backup name. If you have set CopyTagsToBackups
to true
, and you
specify one or more tags using the CreateBackup
operation, no existing file system tags are copied
from the file system to the backup.
tags
- (Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag
appears in the console as the backup name. If you have set CopyTagsToBackups
to
true
, and you specify one or more tags using the CreateBackup
operation, no
existing file system tags are copied from the file system to the backup.public CreateBackupRequest withTags(Tag... tags)
(Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag appears
in the console as the backup name. If you have set CopyTagsToBackups
to true
, and you
specify one or more tags using the CreateBackup
operation, no existing file system tags are copied
from the file system to the backup.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- (Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag
appears in the console as the backup name. If you have set CopyTagsToBackups
to
true
, and you specify one or more tags using the CreateBackup
operation, no
existing file system tags are copied from the file system to the backup.public CreateBackupRequest withTags(Collection<Tag> tags)
(Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag appears
in the console as the backup name. If you have set CopyTagsToBackups
to true
, and you
specify one or more tags using the CreateBackup
operation, no existing file system tags are copied
from the file system to the backup.
tags
- (Optional) The tags to apply to the backup at backup creation. The key value of the Name
tag
appears in the console as the backup name. If you have set CopyTagsToBackups
to
true
, and you specify one or more tags using the CreateBackup
operation, no
existing file system tags are copied from the file system to the backup.public void setVolumeId(String volumeId)
(Optional) The ID of the FSx for ONTAP volume to back up.
volumeId
- (Optional) The ID of the FSx for ONTAP volume to back up.public String getVolumeId()
(Optional) The ID of the FSx for ONTAP volume to back up.
public CreateBackupRequest withVolumeId(String volumeId)
(Optional) The ID of the FSx for ONTAP volume to back up.
volumeId
- (Optional) The ID of the FSx for ONTAP volume to back up.public String toString()
toString
in class Object
Object.toString()
public CreateBackupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()