@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Backup extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a backup of an CloudHSM cluster. All backup objects contain the BackupId
,
BackupState
, ClusterId
, and CreateTimestamp
parameters. Backups that were
copied into a destination region additionally contain the CopyTimestamp
, SourceBackup
,
SourceCluster
, and SourceRegion
parameters. A backup that is pending deletion will include
the DeleteTimestamp
parameter.
Constructor and Description |
---|
Backup() |
Modifier and Type | Method and Description |
---|---|
Backup |
clone() |
boolean |
equals(Object obj) |
String |
getBackupArn()
The Amazon Resource Name (ARN) of the backup.
|
String |
getBackupId()
The identifier (ID) of the backup.
|
String |
getBackupState()
The state of the backup.
|
String |
getClusterId()
The identifier (ID) of the cluster that was backed up.
|
Date |
getCopyTimestamp()
The date and time when the backup was copied from a source backup.
|
Date |
getCreateTimestamp()
The date and time when the backup was created.
|
Date |
getDeleteTimestamp()
The date and time when the backup will be permanently deleted.
|
String |
getHsmType()
The HSM type used to create the backup.
|
String |
getMode()
The mode of the cluster that was backed up.
|
Boolean |
getNeverExpires()
Specifies whether the service should exempt a backup from the retention policy for the cluster.
|
String |
getSourceBackup()
The identifier (ID) of the source backup from which the new backup was copied.
|
String |
getSourceCluster()
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
|
String |
getSourceRegion()
The AWS Region that contains the source backup from which the new backup was copied.
|
List<Tag> |
getTagList()
The list of tags for the backup.
|
int |
hashCode() |
Boolean |
isNeverExpires()
Specifies whether the service should exempt a backup from the retention policy for the cluster.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBackupArn(String backupArn)
The Amazon Resource Name (ARN) of the backup.
|
void |
setBackupId(String backupId)
The identifier (ID) of the backup.
|
void |
setBackupState(String backupState)
The state of the backup.
|
void |
setClusterId(String clusterId)
The identifier (ID) of the cluster that was backed up.
|
void |
setCopyTimestamp(Date copyTimestamp)
The date and time when the backup was copied from a source backup.
|
void |
setCreateTimestamp(Date createTimestamp)
The date and time when the backup was created.
|
void |
setDeleteTimestamp(Date deleteTimestamp)
The date and time when the backup will be permanently deleted.
|
void |
setHsmType(String hsmType)
The HSM type used to create the backup.
|
void |
setMode(String mode)
The mode of the cluster that was backed up.
|
void |
setNeverExpires(Boolean neverExpires)
Specifies whether the service should exempt a backup from the retention policy for the cluster.
|
void |
setSourceBackup(String sourceBackup)
The identifier (ID) of the source backup from which the new backup was copied.
|
void |
setSourceCluster(String sourceCluster)
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
|
void |
setSourceRegion(String sourceRegion)
The AWS Region that contains the source backup from which the new backup was copied.
|
void |
setTagList(Collection<Tag> tagList)
The list of tags for the backup.
|
String |
toString()
Returns a string representation of this object.
|
Backup |
withBackupArn(String backupArn)
The Amazon Resource Name (ARN) of the backup.
|
Backup |
withBackupId(String backupId)
The identifier (ID) of the backup.
|
Backup |
withBackupState(BackupState backupState)
The state of the backup.
|
Backup |
withBackupState(String backupState)
The state of the backup.
|
Backup |
withClusterId(String clusterId)
The identifier (ID) of the cluster that was backed up.
|
Backup |
withCopyTimestamp(Date copyTimestamp)
The date and time when the backup was copied from a source backup.
|
Backup |
withCreateTimestamp(Date createTimestamp)
The date and time when the backup was created.
|
Backup |
withDeleteTimestamp(Date deleteTimestamp)
The date and time when the backup will be permanently deleted.
|
Backup |
withHsmType(String hsmType)
The HSM type used to create the backup.
|
Backup |
withMode(ClusterMode mode)
The mode of the cluster that was backed up.
|
Backup |
withMode(String mode)
The mode of the cluster that was backed up.
|
Backup |
withNeverExpires(Boolean neverExpires)
Specifies whether the service should exempt a backup from the retention policy for the cluster.
|
Backup |
withSourceBackup(String sourceBackup)
The identifier (ID) of the source backup from which the new backup was copied.
|
Backup |
withSourceCluster(String sourceCluster)
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
|
Backup |
withSourceRegion(String sourceRegion)
The AWS Region that contains the source backup from which the new backup was copied.
|
Backup |
withTagList(Collection<Tag> tagList)
The list of tags for the backup.
|
Backup |
withTagList(Tag... tagList)
The list of tags for the backup.
|
public void setBackupId(String backupId)
The identifier (ID) of the backup.
backupId
- The identifier (ID) of the backup.public String getBackupId()
The identifier (ID) of the backup.
public Backup withBackupId(String backupId)
The identifier (ID) of the backup.
backupId
- The identifier (ID) of the backup.public void setBackupArn(String backupArn)
The Amazon Resource Name (ARN) of the backup.
backupArn
- The Amazon Resource Name (ARN) of the backup.public String getBackupArn()
The Amazon Resource Name (ARN) of the backup.
public Backup withBackupArn(String backupArn)
The Amazon Resource Name (ARN) of the backup.
backupArn
- The Amazon Resource Name (ARN) of the backup.public void setBackupState(String backupState)
The state of the backup.
backupState
- The state of the backup.BackupState
public String getBackupState()
The state of the backup.
BackupState
public Backup withBackupState(String backupState)
The state of the backup.
backupState
- The state of the backup.BackupState
public Backup withBackupState(BackupState backupState)
The state of the backup.
backupState
- The state of the backup.BackupState
public void setClusterId(String clusterId)
The identifier (ID) of the cluster that was backed up.
clusterId
- The identifier (ID) of the cluster that was backed up.public String getClusterId()
The identifier (ID) of the cluster that was backed up.
public Backup withClusterId(String clusterId)
The identifier (ID) of the cluster that was backed up.
clusterId
- The identifier (ID) of the cluster that was backed up.public void setCreateTimestamp(Date createTimestamp)
The date and time when the backup was created.
createTimestamp
- The date and time when the backup was created.public Date getCreateTimestamp()
The date and time when the backup was created.
public Backup withCreateTimestamp(Date createTimestamp)
The date and time when the backup was created.
createTimestamp
- The date and time when the backup was created.public void setCopyTimestamp(Date copyTimestamp)
The date and time when the backup was copied from a source backup.
copyTimestamp
- The date and time when the backup was copied from a source backup.public Date getCopyTimestamp()
The date and time when the backup was copied from a source backup.
public Backup withCopyTimestamp(Date copyTimestamp)
The date and time when the backup was copied from a source backup.
copyTimestamp
- The date and time when the backup was copied from a source backup.public void setNeverExpires(Boolean neverExpires)
Specifies whether the service should exempt a backup from the retention policy for the cluster. True
exempts a backup from the retention policy. False
means the service applies the backup retention
policy defined at the cluster.
neverExpires
- Specifies whether the service should exempt a backup from the retention policy for the cluster.
True
exempts a backup from the retention policy. False
means the service applies
the backup retention policy defined at the cluster.public Boolean getNeverExpires()
Specifies whether the service should exempt a backup from the retention policy for the cluster. True
exempts a backup from the retention policy. False
means the service applies the backup retention
policy defined at the cluster.
True
exempts a backup from the retention policy. False
means the service
applies the backup retention policy defined at the cluster.public Backup withNeverExpires(Boolean neverExpires)
Specifies whether the service should exempt a backup from the retention policy for the cluster. True
exempts a backup from the retention policy. False
means the service applies the backup retention
policy defined at the cluster.
neverExpires
- Specifies whether the service should exempt a backup from the retention policy for the cluster.
True
exempts a backup from the retention policy. False
means the service applies
the backup retention policy defined at the cluster.public Boolean isNeverExpires()
Specifies whether the service should exempt a backup from the retention policy for the cluster. True
exempts a backup from the retention policy. False
means the service applies the backup retention
policy defined at the cluster.
True
exempts a backup from the retention policy. False
means the service
applies the backup retention policy defined at the cluster.public void setSourceRegion(String sourceRegion)
The AWS Region that contains the source backup from which the new backup was copied.
sourceRegion
- The AWS Region that contains the source backup from which the new backup was copied.public String getSourceRegion()
The AWS Region that contains the source backup from which the new backup was copied.
public Backup withSourceRegion(String sourceRegion)
The AWS Region that contains the source backup from which the new backup was copied.
sourceRegion
- The AWS Region that contains the source backup from which the new backup was copied.public void setSourceBackup(String sourceBackup)
The identifier (ID) of the source backup from which the new backup was copied.
sourceBackup
- The identifier (ID) of the source backup from which the new backup was copied.public String getSourceBackup()
The identifier (ID) of the source backup from which the new backup was copied.
public Backup withSourceBackup(String sourceBackup)
The identifier (ID) of the source backup from which the new backup was copied.
sourceBackup
- The identifier (ID) of the source backup from which the new backup was copied.public void setSourceCluster(String sourceCluster)
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
sourceCluster
- The identifier (ID) of the cluster containing the source backup from which the new backup was copied.public String getSourceCluster()
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
public Backup withSourceCluster(String sourceCluster)
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
sourceCluster
- The identifier (ID) of the cluster containing the source backup from which the new backup was copied.public void setDeleteTimestamp(Date deleteTimestamp)
The date and time when the backup will be permanently deleted.
deleteTimestamp
- The date and time when the backup will be permanently deleted.public Date getDeleteTimestamp()
The date and time when the backup will be permanently deleted.
public Backup withDeleteTimestamp(Date deleteTimestamp)
The date and time when the backup will be permanently deleted.
deleteTimestamp
- The date and time when the backup will be permanently deleted.public List<Tag> getTagList()
The list of tags for the backup.
public void setTagList(Collection<Tag> tagList)
The list of tags for the backup.
tagList
- The list of tags for the backup.public Backup withTagList(Tag... tagList)
The list of tags for the backup.
NOTE: This method appends the values to the existing list (if any). Use
setTagList(java.util.Collection)
or withTagList(java.util.Collection)
if you want to override
the existing values.
tagList
- The list of tags for the backup.public Backup withTagList(Collection<Tag> tagList)
The list of tags for the backup.
tagList
- The list of tags for the backup.public void setHsmType(String hsmType)
The HSM type used to create the backup.
hsmType
- The HSM type used to create the backup.public String getHsmType()
The HSM type used to create the backup.
public Backup withHsmType(String hsmType)
The HSM type used to create the backup.
hsmType
- The HSM type used to create the backup.public void setMode(String mode)
The mode of the cluster that was backed up.
mode
- The mode of the cluster that was backed up.ClusterMode
public String getMode()
The mode of the cluster that was backed up.
ClusterMode
public Backup withMode(String mode)
The mode of the cluster that was backed up.
mode
- The mode of the cluster that was backed up.ClusterMode
public Backup withMode(ClusterMode mode)
The mode of the cluster that was backed up.
mode
- The mode of the cluster that was backed up.ClusterMode
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.