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 IntegerSpecifies the allocated storage size in gibibytes (GiB).final StringSpecifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.static DBSnapshot.Builderbuilder()final StringSpecifies the DB instance identifier of the DB instance this DB snapshot was created from.final StringThe identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.final StringThe Amazon Resource Name (ARN) for the DB snapshot.final StringSpecifies the identifier for the DB snapshot.final StringThe Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files.final BooleanIndicates whether the DB instance has a dedicated log volume (DLV) enabled.final BooleanIndicates whether the DB snapshot is encrypted.final Stringengine()Specifies the name of the database engine.final StringSpecifies the version of the database engine.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 ProcessorFeatures property.final booleanFor responses, this returns true if the service returned a value for the TagList property.final BooleanIndicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.final InstantSpecifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.final Integeriops()Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.final StringkmsKeyId()IfEncryptedis true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.final StringLicense model information for the restored DB instance.final StringProvides the master username for the DB snapshot.final BooleanIndicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).final StringProvides the option group name for the DB snapshot.final InstantSpecifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC).final IntegerThe percentage of the estimated data that has been transferred.final Integerport()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 InstantSpecifies when the snapshot was taken in Coordinated Universal Time (UTC).final InstantThe timestamp of the most recent transaction applied to the database that you're backing up.final StringSpecifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.final StringProvides the type of the DB snapshot.final StringThe DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from.final StringThe Amazon Web Services Region that the DB snapshot was created in or copied from.final Stringstatus()Specifies the status of this DB snapshot.final IntegerSpecifies the storage throughput for the DB snapshot.final StringSpecifies the storage type associated with DB snapshot.tagList()Returns the value of the TagList property for this object.final StringThe ARN from the key store with which to associate the instance for TDE encryption.final Stringtimezone()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 StringtoString()Returns a string representation of this object.final StringvpcId()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
Encryptedis 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
Encryptedis 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
Timezoneelement is empty.Timezonecontent 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
Timezoneelement is empty.Timezonecontent 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DBSnapshot.Builder,DBSnapshot> - 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
-