@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Backup extends Object implements Serializable, Cloneable, StructuredPojo
Describes a single backup.
Constructor and Description |
---|
Backup() |
Modifier and Type | Method and Description |
---|---|
Backup |
clone() |
boolean |
equals(Object obj) |
String |
getBackupArn()
The ARN of the backup.
|
String |
getBackupId()
The generated ID of the backup.
|
String |
getBackupType()
The backup type.
|
Date |
getCreatedAt()
The time stamp when the backup was created in the database.
|
String |
getDescription()
A user-provided description for a manual backup.
|
String |
getEngine()
The engine type that is obtained from the server when the backup is created.
|
String |
getEngineModel()
The engine model that is obtained from the server when the backup is created.
|
String |
getEngineVersion()
The engine version that is obtained from the server when the backup is created.
|
String |
getInstanceProfileArn()
The EC2 instance profile ARN that is obtained from the server when the backup is created.
|
String |
getInstanceType()
The instance type that is obtained from the server when the backup is created.
|
String |
getKeyPair()
The key pair that is obtained from the server when the backup is created.
|
String |
getPreferredBackupWindow()
The preferred backup period that is obtained from the server when the backup is created.
|
String |
getPreferredMaintenanceWindow()
The preferred maintenance period that is obtained from the server when the backup is created.
|
Integer |
getS3DataSize()
Deprecated.
|
String |
getS3DataUrl()
Deprecated.
|
String |
getS3LogUrl()
The Amazon S3 URL of the backup's log file.
|
List<String> |
getSecurityGroupIds()
The security group IDs that are obtained from the server when the backup is created.
|
String |
getServerName()
The name of the server from which the backup was made.
|
String |
getServiceRoleArn()
The service role ARN that is obtained from the server when the backup is created.
|
String |
getStatus()
The status of a backup while in progress.
|
String |
getStatusDescription()
An informational message about backup status.
|
List<String> |
getSubnetIds()
The subnet IDs that are obtained from the server when the backup is created.
|
String |
getToolsVersion()
The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is
created.
|
String |
getUserArn()
The IAM user ARN of the requester for manual backups.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBackupArn(String backupArn)
The ARN of the backup.
|
void |
setBackupId(String backupId)
The generated ID of the backup.
|
void |
setBackupType(BackupType backupType)
The backup type.
|
void |
setBackupType(String backupType)
The backup type.
|
void |
setCreatedAt(Date createdAt)
The time stamp when the backup was created in the database.
|
void |
setDescription(String description)
A user-provided description for a manual backup.
|
void |
setEngine(String engine)
The engine type that is obtained from the server when the backup is created.
|
void |
setEngineModel(String engineModel)
The engine model that is obtained from the server when the backup is created.
|
void |
setEngineVersion(String engineVersion)
The engine version that is obtained from the server when the backup is created.
|
void |
setInstanceProfileArn(String instanceProfileArn)
The EC2 instance profile ARN that is obtained from the server when the backup is created.
|
void |
setInstanceType(String instanceType)
The instance type that is obtained from the server when the backup is created.
|
void |
setKeyPair(String keyPair)
The key pair that is obtained from the server when the backup is created.
|
void |
setPreferredBackupWindow(String preferredBackupWindow)
The preferred backup period that is obtained from the server when the backup is created.
|
void |
setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The preferred maintenance period that is obtained from the server when the backup is created.
|
void |
setS3DataSize(Integer s3DataSize)
Deprecated.
|
void |
setS3DataUrl(String s3DataUrl)
Deprecated.
|
void |
setS3LogUrl(String s3LogUrl)
The Amazon S3 URL of the backup's log file.
|
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs that are obtained from the server when the backup is created.
|
void |
setServerName(String serverName)
The name of the server from which the backup was made.
|
void |
setServiceRoleArn(String serviceRoleArn)
The service role ARN that is obtained from the server when the backup is created.
|
void |
setStatus(BackupStatus status)
The status of a backup while in progress.
|
void |
setStatus(String status)
The status of a backup while in progress.
|
void |
setStatusDescription(String statusDescription)
An informational message about backup status.
|
void |
setSubnetIds(Collection<String> subnetIds)
The subnet IDs that are obtained from the server when the backup is created.
|
void |
setToolsVersion(String toolsVersion)
The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is
created.
|
void |
setUserArn(String userArn)
The IAM user ARN of the requester for manual backups.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Backup |
withBackupArn(String backupArn)
The ARN of the backup.
|
Backup |
withBackupId(String backupId)
The generated ID of the backup.
|
Backup |
withBackupType(BackupType backupType)
The backup type.
|
Backup |
withBackupType(String backupType)
The backup type.
|
Backup |
withCreatedAt(Date createdAt)
The time stamp when the backup was created in the database.
|
Backup |
withDescription(String description)
A user-provided description for a manual backup.
|
Backup |
withEngine(String engine)
The engine type that is obtained from the server when the backup is created.
|
Backup |
withEngineModel(String engineModel)
The engine model that is obtained from the server when the backup is created.
|
Backup |
withEngineVersion(String engineVersion)
The engine version that is obtained from the server when the backup is created.
|
Backup |
withInstanceProfileArn(String instanceProfileArn)
The EC2 instance profile ARN that is obtained from the server when the backup is created.
|
Backup |
withInstanceType(String instanceType)
The instance type that is obtained from the server when the backup is created.
|
Backup |
withKeyPair(String keyPair)
The key pair that is obtained from the server when the backup is created.
|
Backup |
withPreferredBackupWindow(String preferredBackupWindow)
The preferred backup period that is obtained from the server when the backup is created.
|
Backup |
withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The preferred maintenance period that is obtained from the server when the backup is created.
|
Backup |
withS3DataSize(Integer s3DataSize)
Deprecated.
|
Backup |
withS3DataUrl(String s3DataUrl)
Deprecated.
|
Backup |
withS3LogUrl(String s3LogUrl)
The Amazon S3 URL of the backup's log file.
|
Backup |
withSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs that are obtained from the server when the backup is created.
|
Backup |
withSecurityGroupIds(String... securityGroupIds)
The security group IDs that are obtained from the server when the backup is created.
|
Backup |
withServerName(String serverName)
The name of the server from which the backup was made.
|
Backup |
withServiceRoleArn(String serviceRoleArn)
The service role ARN that is obtained from the server when the backup is created.
|
Backup |
withStatus(BackupStatus status)
The status of a backup while in progress.
|
Backup |
withStatus(String status)
The status of a backup while in progress.
|
Backup |
withStatusDescription(String statusDescription)
An informational message about backup status.
|
Backup |
withSubnetIds(Collection<String> subnetIds)
The subnet IDs that are obtained from the server when the backup is created.
|
Backup |
withSubnetIds(String... subnetIds)
The subnet IDs that are obtained from the server when the backup is created.
|
Backup |
withToolsVersion(String toolsVersion)
The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is
created.
|
Backup |
withUserArn(String userArn)
The IAM user ARN of the requester for manual backups.
|
public void setBackupArn(String backupArn)
The ARN of the backup.
backupArn
- The ARN of the backup.public String getBackupArn()
The ARN of the backup.
public Backup withBackupArn(String backupArn)
The ARN of the backup.
backupArn
- The ARN of the backup.public void setBackupId(String backupId)
The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS
backupId
- The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS
public String getBackupId()
The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS
myServerName-yyyyMMddHHmmssSSS
public Backup withBackupId(String backupId)
The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS
backupId
- The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS
public void setBackupType(String backupType)
The backup type. Valid values are automated
or manual
.
backupType
- The backup type. Valid values are automated
or manual
.BackupType
public String getBackupType()
The backup type. Valid values are automated
or manual
.
automated
or manual
.BackupType
public Backup withBackupType(String backupType)
The backup type. Valid values are automated
or manual
.
backupType
- The backup type. Valid values are automated
or manual
.BackupType
public void setBackupType(BackupType backupType)
The backup type. Valid values are automated
or manual
.
backupType
- The backup type. Valid values are automated
or manual
.BackupType
public Backup withBackupType(BackupType backupType)
The backup type. Valid values are automated
or manual
.
backupType
- The backup type. Valid values are automated
or manual
.BackupType
public void setCreatedAt(Date createdAt)
The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
createdAt
- The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
public Date getCreatedAt()
The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
2016-07-29T13:38:47.520Z
public Backup withCreatedAt(Date createdAt)
The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
createdAt
- The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
public void setDescription(String description)
A user-provided description for a manual backup. This field is empty for automated backups.
description
- A user-provided description for a manual backup. This field is empty for automated backups.public String getDescription()
A user-provided description for a manual backup. This field is empty for automated backups.
public Backup withDescription(String description)
A user-provided description for a manual backup. This field is empty for automated backups.
description
- A user-provided description for a manual backup. This field is empty for automated backups.public void setEngine(String engine)
The engine type that is obtained from the server when the backup is created.
engine
- The engine type that is obtained from the server when the backup is created.public String getEngine()
The engine type that is obtained from the server when the backup is created.
public Backup withEngine(String engine)
The engine type that is obtained from the server when the backup is created.
engine
- The engine type that is obtained from the server when the backup is created.public void setEngineModel(String engineModel)
The engine model that is obtained from the server when the backup is created.
engineModel
- The engine model that is obtained from the server when the backup is created.public String getEngineModel()
The engine model that is obtained from the server when the backup is created.
public Backup withEngineModel(String engineModel)
The engine model that is obtained from the server when the backup is created.
engineModel
- The engine model that is obtained from the server when the backup is created.public void setEngineVersion(String engineVersion)
The engine version that is obtained from the server when the backup is created.
engineVersion
- The engine version that is obtained from the server when the backup is created.public String getEngineVersion()
The engine version that is obtained from the server when the backup is created.
public Backup withEngineVersion(String engineVersion)
The engine version that is obtained from the server when the backup is created.
engineVersion
- The engine version that is obtained from the server when the backup is created.public void setInstanceProfileArn(String instanceProfileArn)
The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup.
instanceProfileArn
- The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this
value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup.public String getInstanceProfileArn()
The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup.
public Backup withInstanceProfileArn(String instanceProfileArn)
The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup.
instanceProfileArn
- The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this
value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup.public void setInstanceType(String instanceType)
The instance type that is obtained from the server when the backup is created.
instanceType
- The instance type that is obtained from the server when the backup is created.public String getInstanceType()
The instance type that is obtained from the server when the backup is created.
public Backup withInstanceType(String instanceType)
The instance type that is obtained from the server when the backup is created.
instanceType
- The instance type that is obtained from the server when the backup is created.public void setKeyPair(String keyPair)
The key pair that is obtained from the server when the backup is created.
keyPair
- The key pair that is obtained from the server when the backup is created.public String getKeyPair()
The key pair that is obtained from the server when the backup is created.
public Backup withKeyPair(String keyPair)
The key pair that is obtained from the server when the backup is created.
keyPair
- The key pair that is obtained from the server when the backup is created.public void setPreferredBackupWindow(String preferredBackupWindow)
The preferred backup period that is obtained from the server when the backup is created.
preferredBackupWindow
- The preferred backup period that is obtained from the server when the backup is created.public String getPreferredBackupWindow()
The preferred backup period that is obtained from the server when the backup is created.
public Backup withPreferredBackupWindow(String preferredBackupWindow)
The preferred backup period that is obtained from the server when the backup is created.
preferredBackupWindow
- The preferred backup period that is obtained from the server when the backup is created.public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The preferred maintenance period that is obtained from the server when the backup is created.
preferredMaintenanceWindow
- The preferred maintenance period that is obtained from the server when the backup is created.public String getPreferredMaintenanceWindow()
The preferred maintenance period that is obtained from the server when the backup is created.
public Backup withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The preferred maintenance period that is obtained from the server when the backup is created.
preferredMaintenanceWindow
- The preferred maintenance period that is obtained from the server when the backup is created.@Deprecated public void setS3DataSize(Integer s3DataSize)
This field is deprecated and is no longer used.
s3DataSize
- This field is deprecated and is no longer used.@Deprecated public Integer getS3DataSize()
This field is deprecated and is no longer used.
@Deprecated public Backup withS3DataSize(Integer s3DataSize)
This field is deprecated and is no longer used.
s3DataSize
- This field is deprecated and is no longer used.@Deprecated public void setS3DataUrl(String s3DataUrl)
This field is deprecated and is no longer used.
s3DataUrl
- This field is deprecated and is no longer used.@Deprecated public String getS3DataUrl()
This field is deprecated and is no longer used.
@Deprecated public Backup withS3DataUrl(String s3DataUrl)
This field is deprecated and is no longer used.
s3DataUrl
- This field is deprecated and is no longer used.public void setS3LogUrl(String s3LogUrl)
The Amazon S3 URL of the backup's log file.
s3LogUrl
- The Amazon S3 URL of the backup's log file.public String getS3LogUrl()
The Amazon S3 URL of the backup's log file.
public Backup withS3LogUrl(String s3LogUrl)
The Amazon S3 URL of the backup's log file.
s3LogUrl
- The Amazon S3 URL of the backup's log file.public List<String> getSecurityGroupIds()
The security group IDs that are obtained from the server when the backup is created.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs that are obtained from the server when the backup is created.
securityGroupIds
- The security group IDs that are obtained from the server when the backup is created.public Backup withSecurityGroupIds(String... securityGroupIds)
The security group IDs that are obtained from the server when the backup is created.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- The security group IDs that are obtained from the server when the backup is created.public Backup withSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs that are obtained from the server when the backup is created.
securityGroupIds
- The security group IDs that are obtained from the server when the backup is created.public void setServerName(String serverName)
The name of the server from which the backup was made.
serverName
- The name of the server from which the backup was made.public String getServerName()
The name of the server from which the backup was made.
public Backup withServerName(String serverName)
The name of the server from which the backup was made.
serverName
- The name of the server from which the backup was made.public void setServiceRoleArn(String serviceRoleArn)
The service role ARN that is obtained from the server when the backup is created.
serviceRoleArn
- The service role ARN that is obtained from the server when the backup is created.public String getServiceRoleArn()
The service role ARN that is obtained from the server when the backup is created.
public Backup withServiceRoleArn(String serviceRoleArn)
The service role ARN that is obtained from the server when the backup is created.
serviceRoleArn
- The service role ARN that is obtained from the server when the backup is created.public void setStatus(String status)
The status of a backup while in progress.
status
- The status of a backup while in progress.BackupStatus
public String getStatus()
The status of a backup while in progress.
BackupStatus
public Backup withStatus(String status)
The status of a backup while in progress.
status
- The status of a backup while in progress.BackupStatus
public void setStatus(BackupStatus status)
The status of a backup while in progress.
status
- The status of a backup while in progress.BackupStatus
public Backup withStatus(BackupStatus status)
The status of a backup while in progress.
status
- The status of a backup while in progress.BackupStatus
public void setStatusDescription(String statusDescription)
An informational message about backup status.
statusDescription
- An informational message about backup status.public String getStatusDescription()
An informational message about backup status.
public Backup withStatusDescription(String statusDescription)
An informational message about backup status.
statusDescription
- An informational message about backup status.public List<String> getSubnetIds()
The subnet IDs that are obtained from the server when the backup is created.
public void setSubnetIds(Collection<String> subnetIds)
The subnet IDs that are obtained from the server when the backup is created.
subnetIds
- The subnet IDs that are obtained from the server when the backup is created.public Backup withSubnetIds(String... subnetIds)
The subnet IDs that are obtained from the server when the backup is created.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- The subnet IDs that are obtained from the server when the backup is created.public Backup withSubnetIds(Collection<String> subnetIds)
The subnet IDs that are obtained from the server when the backup is created.
subnetIds
- The subnet IDs that are obtained from the server when the backup is created.public void setToolsVersion(String toolsVersion)
The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is created.
toolsVersion
- The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the
backup is created.public String getToolsVersion()
The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is created.
public Backup withToolsVersion(String toolsVersion)
The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the backup is created.
toolsVersion
- The version of AWS OpsWorks for Chef Automate-specific tools that is obtained from the server when the
backup is created.public void setUserArn(String userArn)
The IAM user ARN of the requester for manual backups. This field is empty for automated backups.
userArn
- The IAM user ARN of the requester for manual backups. This field is empty for automated backups.public String getUserArn()
The IAM user ARN of the requester for manual backups. This field is empty for automated backups.
public Backup withUserArn(String userArn)
The IAM user ARN of the requester for manual backups. This field is empty for automated backups.
userArn
- The IAM user ARN of the requester for manual backups. This field is empty for automated backups.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.