Class Backup
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Backup.Builder,
Backup>
Describes a single backup.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The ARN of the backup.final String
backupId()
The generated ID of the backup.final BackupType
The backup type.final String
The backup type.static Backup.Builder
builder()
final Instant
The time stamp when the backup was created in the database.final String
A user-provided description for a manual backup.final String
engine()
The engine type that is obtained from the server when the backup is created.final String
The engine model that is obtained from the server when the backup is created.final String
The engine version that is obtained from the server when the backup is created.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SecurityGroupIds property.final boolean
For responses, this returns true if the service returned a value for the SubnetIds property.final String
The EC2 instance profile ARN that is obtained from the server when the backup is created.final String
The instance type that is obtained from the server when the backup is created.final String
keyPair()
The key pair that is obtained from the server when the backup is created.final String
The preferred backup period that is obtained from the server when the backup is created.final String
The preferred maintenance period that is obtained from the server when the backup is created.final Integer
Deprecated.final String
Deprecated.final String
s3LogUrl()
The Amazon S3 URL of the backup's log file.The security group IDs that are obtained from the server when the backup is created.static Class
<? extends Backup.Builder> final String
The name of the server from which the backup was made.final String
The service role ARN that is obtained from the server when the backup is created.final BackupStatus
status()
The status of a backup while in progress.final String
The status of a backup while in progress.final String
An informational message about backup status.The subnet IDs that are obtained from the server when the backup is created.Take this object and create a builder that contains all of the current property values of this object.final String
The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.final String
toString()
Returns a string representation of this object.final String
userArn()
The IAM user ARN of the requester for manual backups.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
backupArn
-
backupId
The generated ID of the backup. Example:
myServerName-yyyyMMddHHmmssSSS
- Returns:
- The generated ID of the backup. Example:
myServerName-yyyyMMddHHmmssSSS
-
backupType
The backup type. Valid values are
automated
ormanual
.If the service returns an enum value that is not available in the current SDK version,
backupType
will returnBackupType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frombackupTypeAsString()
.- Returns:
- The backup type. Valid values are
automated
ormanual
. - See Also:
-
backupTypeAsString
The backup type. Valid values are
automated
ormanual
.If the service returns an enum value that is not available in the current SDK version,
backupType
will returnBackupType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frombackupTypeAsString()
.- Returns:
- The backup type. Valid values are
automated
ormanual
. - See Also:
-
createdAt
The time stamp when the backup was created in the database. Example:
2016-07-29T13:38:47.520Z
- Returns:
- The time stamp when the backup was created in the database. Example:
2016-07-29T13:38:47.520Z
-
description
A user-provided description for a manual backup. This field is empty for automated backups.
- Returns:
- A user-provided description for a manual backup. This field is empty for automated backups.
-
engine
The engine type that is obtained from the server when the backup is created.
- Returns:
- The engine type 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.
- Returns:
- The engine model 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.
- Returns:
- The engine version that is obtained from the server when the backup is created.
-
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.
- Returns:
- 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.
-
instanceType
The instance type that is obtained from the server when the backup is created.
- Returns:
- The instance type 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.
- Returns:
- The key pair 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.
- Returns:
- The preferred backup 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.
- Returns:
- The preferred maintenance period that is obtained from the server when the backup is created.
-
s3DataSize
Deprecated.This field is deprecated and is no longer used.
- Returns:
- This field is deprecated and is no longer used.
-
s3DataUrl
Deprecated.This field is deprecated and is no longer used.
- Returns:
- This field is deprecated and is no longer used.
-
s3LogUrl
The Amazon S3 URL of the backup's log file.
- Returns:
- The Amazon S3 URL of the backup's log file.
-
hasSecurityGroupIds
public final boolean hasSecurityGroupIds()For responses, this returns true if the service returned a value for the SecurityGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
securityGroupIds
The security group IDs that are obtained from the server when the backup is created.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecurityGroupIds()
method.- Returns:
- The security group IDs that are obtained from the server when the backup is created.
-
serverName
The name of the server from which the backup was made.
- Returns:
- The name of the server from which the backup was made.
-
serviceRoleArn
The service role ARN that is obtained from the server when the backup is created.
- Returns:
- The service role ARN that is obtained from the server when the backup is created.
-
status
The status of a backup while in progress.
If the service returns an enum value that is not available in the current SDK version,
status
will returnBackupStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of a backup while in progress.
- See Also:
-
statusAsString
The status of a backup while in progress.
If the service returns an enum value that is not available in the current SDK version,
status
will returnBackupStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of a backup while in progress.
- See Also:
-
statusDescription
An informational message about backup status.
- Returns:
- An informational message about backup status.
-
hasSubnetIds
public final boolean hasSubnetIds()For responses, this returns true if the service returned a value for the SubnetIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
subnetIds
The subnet IDs that are obtained from the server when the backup is created.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSubnetIds()
method.- Returns:
- The subnet IDs that are obtained from the server when the backup is created.
-
toolsVersion
The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.
- Returns:
- The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.
-
userArn
The IAM user ARN of the requester for manual backups. This field is empty for automated backups.
- Returns:
- The IAM user ARN of the requester for manual backups. This field is empty for automated backups.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Backup.Builder,
Backup> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-