Class DBSnapshot
- All Implemented Interfaces:
Serializable
,SdkPojo
,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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Integer
Specifies the allocated storage size in gibibytes (GiB).final String
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.static DBSnapshot.Builder
builder()
final String
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.final String
The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.final String
The Amazon Resource Name (ARN) for the DB snapshot.final String
Specifies the identifier for the DB snapshot.final String
The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files.final Boolean
Indicates whether the DB instance has a dedicated log volume (DLV) enabled.final Boolean
Indicates whether the DB snapshot is encrypted.final String
engine()
Specifies the name of the database engine.final String
Specifies the version of the database engine.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 ProcessorFeatures property.final boolean
For responses, this returns true if the service returned a value for the TagList property.final Boolean
Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.final Instant
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.final Integer
iops()
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.final String
kmsKeyId()
IfEncrypted
is true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.final String
License model information for the restored DB instance.final String
Provides the master username for the DB snapshot.final Boolean
Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).final String
Provides the option group name for the DB snapshot.final Instant
Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC).final Integer
The percentage of the estimated data that has been transferred.final Integer
port()
Specifies the port that the database engine was listening on at the time of the snapshot.final List
<ProcessorFeature> 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.static Class
<? extends DBSnapshot.Builder> final Instant
Specifies when the snapshot was taken in Coordinated Universal Time (UTC).final Instant
The timestamp of the most recent transaction applied to the database that you're backing up.final String
Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.final String
Provides the type of the DB snapshot.final String
The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from.final String
The Amazon Web Services Region that the DB snapshot was created in or copied from.final String
status()
Specifies the status of this DB snapshot.final Integer
Specifies the storage throughput for the DB snapshot.final String
Specifies the storage type associated with DB snapshot.tagList()
Returns the value of the TagList property for this object.final String
The ARN from the key store with which to associate the instance for TDE encryption.final String
timezone()
The time zone of the DB snapshot.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
vpcId()
Provides the VPC ID associated with the DB snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
dbSnapshotIdentifier
Specifies the identifier for the DB snapshot.
- Returns:
- Specifies the identifier for the DB snapshot.
-
dbInstanceIdentifier
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
- Returns:
- Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
-
snapshotCreateTime
Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.
- Returns:
- Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.
-
engine
Specifies the name of the database engine.
- Returns:
- Specifies the name of the database engine.
-
allocatedStorage
Specifies the allocated storage size in gibibytes (GiB).
- Returns:
- Specifies the allocated storage size in gibibytes (GiB).
-
status
Specifies the status of this DB snapshot.
- Returns:
- Specifies the status of this DB snapshot.
-
port
Specifies the port that the database engine was listening on at the time of the snapshot.
- Returns:
- Specifies the port that the database engine was listening on at the time of the snapshot.
-
availabilityZone
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- Returns:
- Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
-
vpcId
Provides the VPC ID associated with the DB snapshot.
- Returns:
- Provides the VPC ID associated with the DB snapshot.
-
instanceCreateTime
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
- Returns:
- Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
-
masterUsername
Provides the master username for the DB snapshot.
- Returns:
- Provides the master username for the DB snapshot.
-
engineVersion
Specifies the version of the database engine.
- Returns:
- Specifies the version of the database engine.
-
licenseModel
License model information for the restored DB instance.
- Returns:
- License model information for the restored DB instance.
-
snapshotType
Provides the type of the DB snapshot.
- Returns:
- Provides the type of the DB snapshot.
-
iops
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
- Returns:
- Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
-
optionGroupName
Provides the option group name for the DB snapshot.
- Returns:
- Provides the option group name for the DB snapshot.
-
percentProgress
The percentage of the estimated data that has been transferred.
- Returns:
- The percentage of the estimated data that has been transferred.
-
sourceRegion
The Amazon Web Services Region that the DB snapshot was created in or copied from.
- Returns:
- The Amazon Web Services Region that the DB snapshot was created in or copied from.
-
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.
- Returns:
- 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.
-
storageType
Specifies the storage type associated with DB snapshot.
- Returns:
- Specifies the storage type associated with DB snapshot.
-
tdeCredentialArn
The ARN from the key store with which to associate the instance for TDE encryption.
- Returns:
- The ARN from the key store with which to associate the instance for TDE encryption.
-
encrypted
Indicates whether the DB snapshot is encrypted.
- Returns:
- Indicates whether the DB snapshot is encrypted.
-
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.
- Returns:
- 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.
-
dbSnapshotArn
The Amazon Resource Name (ARN) for the DB snapshot.
- Returns:
- The Amazon Resource Name (ARN) for the DB snapshot.
-
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.- Returns:
- 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.
-
iamDatabaseAuthenticationEnabled
Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.
- Returns:
- Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.
-
hasProcessorFeatures
public final boolean hasProcessorFeatures()For responses, this returns true if the service returned a value for the ProcessorFeatures 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. -
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.- Returns:
- 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.
-
dbiResourceId
The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.
- Returns:
- The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.
-
hasTagList
public final boolean hasTagList()For responses, this returns true if the service returned a value for the TagList 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. -
tagList
Returns the value of the TagList property for this object.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.- Returns:
- The value of the TagList property for this object.
-
originalSnapshotCreateTime
Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.
- Returns:
- Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.
-
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.
- Returns:
- 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.
-
snapshotTarget
Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.
- Returns:
- Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.
-
storageThroughput
Specifies the storage throughput for the DB snapshot.
- Returns:
- Specifies the storage throughput for the DB snapshot.
-
dbSystemId
The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.
- Returns:
- The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.
-
dedicatedLogVolume
Indicates whether the DB instance has a dedicated log volume (DLV) enabled.
- Returns:
- Indicates whether the DB instance has a dedicated log volume (DLV) enabled.
-
multiTenant
Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
- Returns:
- Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
-
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<DBSnapshot.Builder,
DBSnapshot> - 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
-