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 StringThe ARN of the backup.final StringbackupId()The generated ID of the backup.final BackupTypeThe backup type.final StringThe backup type.static Backup.Builderbuilder()final InstantThe time stamp when the backup was created in the database.final StringA user-provided description for a manual backup.final Stringengine()The engine type that is obtained from the server when the backup is created.final StringThe engine model that is obtained from the server when the backup is created.final StringThe engine version that is obtained from the server when the backup is created.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final booleanFor responses, this returns true if the service returned a value for the SecurityGroupIds property.final booleanFor responses, this returns true if the service returned a value for the SubnetIds property.final StringThe EC2 instance profile ARN that is obtained from the server when the backup is created.final StringThe instance type that is obtained from the server when the backup is created.final StringkeyPair()The key pair that is obtained from the server when the backup is created.final StringThe preferred backup period that is obtained from the server when the backup is created.final StringThe preferred maintenance period that is obtained from the server when the backup is created.final IntegerDeprecated.final StringDeprecated.final Strings3LogUrl()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 StringThe name of the server from which the backup was made.final StringThe service role ARN that is obtained from the server when the backup is created.final BackupStatusstatus()The status of a backup while in progress.final StringThe status of a backup while in progress.final StringAn 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 StringThe version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.final StringtoString()Returns a string representation of this object.final StringuserArn()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
automatedormanual.If the service returns an enum value that is not available in the current SDK version,
backupTypewill returnBackupType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombackupTypeAsString().- Returns:
- The backup type. Valid values are
automatedormanual. - See Also:
-
backupTypeAsString
The backup type. Valid values are
automatedormanual.If the service returns an enum value that is not available in the current SDK version,
backupTypewill returnBackupType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombackupTypeAsString().- Returns:
- The backup type. Valid values are
automatedormanual. - 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,
statuswill 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,
statuswill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Backup.Builder,Backup> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-