Class Backup
- java.lang.Object
-
- software.amazon.awssdk.services.opsworkscm.model.Backup
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Backup.Builder,Backup>
@Generated("software.amazon.awssdk:codegen") public final class Backup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Backup.Builder,Backup>
Describes a single backup.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBackup.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringbackupArn()The ARN of the backup.StringbackupId()The generated ID of the backup.BackupTypebackupType()The backup type.StringbackupTypeAsString()The backup type.static Backup.Builderbuilder()InstantcreatedAt()The time stamp when the backup was created in the database.Stringdescription()A user-provided description for a manual backup.Stringengine()The engine type that is obtained from the server when the backup is created.StringengineModel()The engine model that is obtained from the server when the backup is created.StringengineVersion()The engine version that is obtained from the server when the backup is created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasSecurityGroupIds()For responses, this returns true if the service returned a value for the SecurityGroupIds property.booleanhasSubnetIds()For responses, this returns true if the service returned a value for the SubnetIds property.StringinstanceProfileArn()The EC2 instance profile ARN that is obtained from the server when the backup is created.StringinstanceType()The instance type that is obtained from the server when the backup is created.StringkeyPair()The key pair that is obtained from the server when the backup is created.StringpreferredBackupWindow()The preferred backup period that is obtained from the server when the backup is created.StringpreferredMaintenanceWindow()The preferred maintenance period that is obtained from the server when the backup is created.Integers3DataSize()Deprecated.Strings3DataUrl()Deprecated.Strings3LogUrl()The Amazon S3 URL of the backup's log file.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()List<String>securityGroupIds()The security group IDs that are obtained from the server when the backup is created.static Class<? extends Backup.Builder>serializableBuilderClass()StringserverName()The name of the server from which the backup was made.StringserviceRoleArn()The service role ARN that is obtained from the server when the backup is created.BackupStatusstatus()The status of a backup while in progress.StringstatusAsString()The status of a backup while in progress.StringstatusDescription()An informational message about backup status.List<String>subnetIds()The subnet IDs that are obtained from the server when the backup is created.Backup.BuildertoBuilder()StringtoolsVersion()The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.StringtoString()Returns a string representation of this object.StringuserArn()The IAM user ARN of the requester for manual backups.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
backupArn
public final String backupArn()
The ARN of the backup.
- Returns:
- The ARN of the backup.
-
backupId
public final String backupId()
The generated ID of the backup. Example:
myServerName-yyyyMMddHHmmssSSS- Returns:
- The generated ID of the backup. Example:
myServerName-yyyyMMddHHmmssSSS
-
backupType
public final BackupType 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:
BackupType
-
backupTypeAsString
public final String 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:
BackupType
-
createdAt
public final Instant 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
public final String 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
public final String 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
public final String 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
public final String 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
public final 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.
- 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
public final String 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
public final String 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
public final String 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
public final String 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 public final Integer s3DataSize()
Deprecated.This field is deprecated and is no longer used.
- Returns:
- This field is deprecated and is no longer used.
-
s3DataUrl
@Deprecated public final String s3DataUrl()
Deprecated.This field is deprecated and is no longer used.
- Returns:
- This field is deprecated and is no longer used.
-
s3LogUrl
public final String 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
public final List<String> 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
public final String 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
public final String 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
public final BackupStatus 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:
BackupStatus
-
statusAsString
public final String 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:
BackupStatus
-
statusDescription
public final String 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
public final List<String> 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
public final String 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
public final String 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
public Backup.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Backup.Builder,Backup>
-
builder
public static Backup.Builder builder()
-
serializableBuilderClass
public static Class<? extends Backup.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-