@Generated(value="software.amazon.awssdk:codegen") public final class DBSnapshot extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DBSnapshot.Builder,DBSnapshot>
Contains the details of an Amazon RDS DB snapshot.
This data type is used as a response element in the DescribeDBSnapshots action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DBSnapshot.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
allocatedStorage()
Specifies the allocated storage size in gibibytes (GiB).
|
String |
availabilityZone()
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
|
static DBSnapshot.Builder |
builder() |
String |
dbInstanceIdentifier()
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
|
String |
dbiResourceId()
The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services
Region.
|
String |
dbSnapshotArn()
The Amazon Resource Name (ARN) for the DB snapshot.
|
String |
dbSnapshotIdentifier()
Specifies the identifier for the DB snapshot.
|
Boolean |
encrypted()
Specifies whether the DB snapshot is encrypted.
|
String |
engine()
Specifies the name of the database engine.
|
String |
engineVersion()
Specifies the version of the database engine.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProcessorFeatures()
For responses, this returns true if the service returned a value for the ProcessorFeatures property.
|
boolean |
hasTagList()
For responses, this returns true if the service returned a value for the TagList property.
|
Boolean |
iamDatabaseAuthenticationEnabled()
True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is
enabled, and otherwise false.
|
Instant |
instanceCreateTime()
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken,
was created.
|
Integer |
iops()
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
|
String |
kmsKeyId()
If
Encrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot. |
String |
licenseModel()
License model information for the restored DB instance.
|
String |
masterUsername()
Provides the master username for the DB snapshot.
|
String |
optionGroupName()
Provides the option group name for the DB snapshot.
|
Instant |
originalSnapshotCreateTime()
Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC).
|
Integer |
percentProgress()
The percentage of the estimated data that has been transferred.
|
Integer |
port()
Specifies the port that the database engine was listening on at the time of the snapshot.
|
List<ProcessorFeature> |
processorFeatures()
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the
DB snapshot was created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DBSnapshot.Builder> |
serializableBuilderClass() |
Instant |
snapshotCreateTime()
Specifies when the snapshot was taken in Coordinated Universal Time (UTC).
|
Instant |
snapshotDatabaseTime()
The timestamp of the most recent transaction applied to the database that you're backing up.
|
String |
snapshotTarget()
Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.
|
String |
snapshotType()
Provides the type of the DB snapshot.
|
String |
sourceDBSnapshotIdentifier()
The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from.
|
String |
sourceRegion()
The Amazon Web Services Region that the DB snapshot was created in or copied from.
|
String |
status()
Specifies the status of this DB snapshot.
|
String |
storageType()
Specifies the storage type associated with DB snapshot.
|
List<Tag> |
tagList()
Returns the value of the TagList property for this object.
|
String |
tdeCredentialArn()
The ARN from the key store with which to associate the instance for TDE encryption.
|
String |
timezone()
The time zone of the DB snapshot.
|
DBSnapshot.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcId()
Provides the VPC ID associated with the DB snapshot.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String dbSnapshotIdentifier()
Specifies the identifier for the DB snapshot.
public final String dbInstanceIdentifier()
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
public final Instant snapshotCreateTime()
Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.
public final String engine()
Specifies the name of the database engine.
public final Integer allocatedStorage()
Specifies the allocated storage size in gibibytes (GiB).
public final String status()
Specifies the status of this DB snapshot.
public final Integer port()
Specifies the port that the database engine was listening on at the time of the snapshot.
public final String availabilityZone()
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
public final String vpcId()
Provides the VPC ID associated with the DB snapshot.
public final Instant instanceCreateTime()
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
public final String masterUsername()
Provides the master username for the DB snapshot.
public final String engineVersion()
Specifies the version of the database engine.
public final String licenseModel()
License model information for the restored DB instance.
public final String snapshotType()
Provides the type of the DB snapshot.
public final Integer iops()
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
public final String optionGroupName()
Provides the option group name for the DB snapshot.
public final Integer percentProgress()
The percentage of the estimated data that has been transferred.
public final String sourceRegion()
The Amazon Web Services Region that the DB snapshot was created in or copied from.
public final String sourceDBSnapshotIdentifier()
The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.
public final String storageType()
Specifies the storage type associated with DB snapshot.
public final String tdeCredentialArn()
The ARN from the key store with which to associate the instance for TDE encryption.
public final Boolean encrypted()
Specifies whether the DB snapshot is encrypted.
public final String kmsKeyId()
If Encrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.
The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
Encrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB
snapshot.
The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
public final String dbSnapshotArn()
The Amazon Resource Name (ARN) for the DB snapshot.
public final String timezone()
The time zone of the DB snapshot. In most cases, the Timezone element is empty.
Timezone content appears only for snapshots taken from Microsoft SQL Server DB instances that were
created with a time zone specified.
Timezone element is empty.
Timezone content appears only for snapshots taken from Microsoft SQL Server DB instances
that were created with a time zone specified.public final Boolean iamDatabaseAuthenticationEnabled()
True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
public final boolean hasProcessorFeatures()
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<ProcessorFeature> processorFeatures()
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was 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 hasProcessorFeatures() method.
public final String dbiResourceId()
The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.
public final boolean hasTagList()
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<Tag> tagList()
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 hasTagList() method.
public final Instant originalSnapshotCreateTime()
Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.
public final Instant snapshotDatabaseTime()
The timestamp of the most recent transaction applied to the database that you're backing up. Thus, if you restore a snapshot, SnapshotDatabaseTime is the most recent transaction in the restored DB instance. In contrast, originalSnapshotCreateTime specifies the system time that the snapshot completed.
If you back up a read replica, you can determine the replica lag by comparing SnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime is two hours later than SnapshotDatabaseTime, then the replica lag is two hours.
If you back up a read replica, you can determine the replica lag by comparing SnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime is two hours later than SnapshotDatabaseTime, then the replica lag is two hours.
public final String snapshotTarget()
Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.
public DBSnapshot.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DBSnapshot.Builder,DBSnapshot>public static DBSnapshot.Builder builder()
public static Class<? extends DBSnapshot.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.