@Generated(value="software.amazon.awssdk:codegen") public final class Backup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Backup.Builder,Backup>
Describes a single backup.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Backup.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
backupArn()
The ARN of the backup.
|
String |
backupId()
The generated ID of the backup.
|
BackupType |
backupType()
The backup type.
|
String |
backupTypeAsString()
The backup type.
|
static Backup.Builder |
builder() |
Instant |
createdAt()
The time stamp when the backup was created in the database.
|
String |
description()
A user-provided description for a manual backup.
|
String |
engine()
The engine type that is obtained from the server when the backup is created.
|
String |
engineModel()
The engine model that is obtained from the server when the backup is created.
|
String |
engineVersion()
The engine version that is obtained from the server when the backup is created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds property.
|
boolean |
hasSubnetIds()
For responses, this returns true if the service returned a value for the SubnetIds property.
|
String |
instanceProfileArn()
The EC2 instance profile ARN that is obtained from the server when the backup is created.
|
String |
instanceType()
The instance type that is obtained from the server when the backup is created.
|
String |
keyPair()
The key pair that is obtained from the server when the backup is created.
|
String |
preferredBackupWindow()
The preferred backup period that is obtained from the server when the backup is created.
|
String |
preferredMaintenanceWindow()
The preferred maintenance period that is obtained from the server when the backup is created.
|
Integer |
s3DataSize()
Deprecated.
|
String |
s3DataUrl()
Deprecated.
|
String |
s3LogUrl()
The Amazon S3 URL of the backup's log file.
|
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() |
String |
serverName()
The name of the server from which the backup was made.
|
String |
serviceRoleArn()
The service role ARN that is obtained from the server when the backup is created.
|
BackupStatus |
status()
The status of a backup while in progress.
|
String |
statusAsString()
The status of a backup while in progress.
|
String |
statusDescription()
An informational message about backup status.
|
List<String> |
subnetIds()
The subnet IDs that are obtained from the server when the backup is created.
|
Backup.Builder |
toBuilder() |
String |
toolsVersion()
The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.
|
String |
toString()
Returns a string representation of this object.
|
String |
userArn()
The IAM user ARN of the requester for manual backups.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String backupArn()
The ARN of the backup.
public final String backupId()
The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS
myServerName-yyyyMMddHHmmssSSSpublic final BackupType backupType()
The backup type. Valid values are automated or manual.
If the service returns an enum value that is not available in the current SDK version, backupType will
return BackupType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
backupTypeAsString().
automated or manual.BackupTypepublic final String backupTypeAsString()
The backup type. Valid values are automated or manual.
If the service returns an enum value that is not available in the current SDK version, backupType will
return BackupType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
backupTypeAsString().
automated or manual.BackupTypepublic final Instant createdAt()
The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z
2016-07-29T13:38:47.520Zpublic final String description()
A user-provided description for a manual backup. This field is empty for automated backups.
public final String engine()
The engine type that is obtained from the server when the backup is created.
public final String engineModel()
The engine model that is obtained from the server when the backup is created.
public final String engineVersion()
The engine version that is obtained from the server when the backup is created.
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.
public final String instanceType()
The instance type that is obtained from the server when the backup is created.
public final String keyPair()
The key pair that is obtained from the server when the backup is created.
public final String preferredBackupWindow()
The preferred backup period that is obtained from the server when the backup is created.
public final String preferredMaintenanceWindow()
The preferred maintenance period that is obtained from the server when the backup is created.
@Deprecated public final Integer s3DataSize()
This field is deprecated and is no longer used.
@Deprecated public final String s3DataUrl()
This field is deprecated and is no longer used.
public final String s3LogUrl()
The Amazon S3 URL of the backup's log file.
public final boolean hasSecurityGroupIds()
isEmpty() 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.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.
public final String serverName()
The name of the server from which the backup was made.
public final String serviceRoleArn()
The service role ARN that is obtained from the server when the backup is created.
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, status will
return BackupStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
BackupStatuspublic 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, status will
return BackupStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
BackupStatuspublic final String statusDescription()
An informational message about backup status.
public final boolean hasSubnetIds()
isEmpty() 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.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.
public final String toolsVersion()
The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created.
public final String userArn()
The IAM user ARN of the requester for manual backups. This field is empty for automated backups.
public Backup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Backup.Builder,Backup>public static Backup.Builder builder()
public static Class<? extends Backup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.