Class Snapshot
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<Snapshot.Builder,- Snapshot> 
A snapshot object that contains databases.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionAll of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.final DoubleThe size of the incremental backup in megabytes.final StringThe Amazon Resource Name (ARN) for the namespace's admin user credentials secret.final StringThe ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.final StringThe username of the database within a snapshot.final DoubleThe size in megabytes of the data that has been backed up to a snapshot.static Snapshot.Builderbuilder()final DoubleThe rate at which data is backed up into a snapshot in megabytes per second.final LongThe amount of time it took to back up data into a snapshot.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final LongThe estimated amount of seconds until the snapshot completes backup.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AccountsWithProvisionedRestoreAccess property.final booleanFor responses, this returns true if the service returned a value for the AccountsWithRestoreAccess property.final inthashCode()final StringkmsKeyId()The unique identifier of the KMS key used to encrypt the snapshot.final StringThe Amazon Resource Name (ARN) of the namespace the snapshot was created from.final StringThe name of the namepsace.final StringThe owner Amazon Web Services; account of the snapshot.static Class<? extends Snapshot.Builder> final StringThe Amazon Resource Name (ARN) of the snapshot.final InstantThe timestamp of when the snapshot was created.final StringThe name of the snapshot.final IntegerThe amount of days until the snapshot is deleted.final IntegerThe period of time, in days, of how long the snapshot is retained.final InstantThe timestamp of when data within the snapshot started getting retained.final SnapshotStatusstatus()The status of the snapshot.final StringThe status of the 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 DoubleThe total size, in megabytes, of how big the snapshot is.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
hasAccountsWithProvisionedRestoreAccesspublic final boolean hasAccountsWithProvisionedRestoreAccess()For responses, this returns true if the service returned a value for the AccountsWithProvisionedRestoreAccess 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.
- 
accountsWithProvisionedRestoreAccessAll of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster. 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 hasAccountsWithProvisionedRestoreAccess()method.- Returns:
- All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
 
- 
hasAccountsWithRestoreAccesspublic final boolean hasAccountsWithRestoreAccess()For responses, this returns true if the service returned a value for the AccountsWithRestoreAccess 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.
- 
accountsWithRestoreAccessAll of the Amazon Web Services accounts that have access to restore a snapshot to a namespace. 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 hasAccountsWithRestoreAccess()method.- Returns:
- All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
 
- 
actualIncrementalBackupSizeInMegaBytesThe size of the incremental backup in megabytes. - Returns:
- The size of the incremental backup in megabytes.
 
- 
adminPasswordSecretArnThe Amazon Resource Name (ARN) for the namespace's admin user credentials secret. - Returns:
- The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
 
- 
adminPasswordSecretKmsKeyIdThe ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. - Returns:
- The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
 
- 
adminUsernameThe username of the database within a snapshot. - Returns:
- The username of the database within a snapshot.
 
- 
backupProgressInMegaBytesThe size in megabytes of the data that has been backed up to a snapshot. - Returns:
- The size in megabytes of the data that has been backed up to a snapshot.
 
- 
currentBackupRateInMegaBytesPerSecondThe rate at which data is backed up into a snapshot in megabytes per second. - Returns:
- The rate at which data is backed up into a snapshot in megabytes per second.
 
- 
elapsedTimeInSecondsThe amount of time it took to back up data into a snapshot. - Returns:
- The amount of time it took to back up data into a snapshot.
 
- 
estimatedSecondsToCompletionThe estimated amount of seconds until the snapshot completes backup. - Returns:
- The estimated amount of seconds until the snapshot completes backup.
 
- 
kmsKeyIdThe unique identifier of the KMS key used to encrypt the snapshot. - Returns:
- The unique identifier of the KMS key used to encrypt the snapshot.
 
- 
namespaceArnThe Amazon Resource Name (ARN) of the namespace the snapshot was created from. - Returns:
- The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
 
- 
namespaceName
- 
ownerAccountThe owner Amazon Web Services; account of the snapshot. - Returns:
- The owner Amazon Web Services; account of the snapshot.
 
- 
snapshotArnThe Amazon Resource Name (ARN) of the snapshot. - Returns:
- The Amazon Resource Name (ARN) of the snapshot.
 
- 
snapshotCreateTimeThe timestamp of when the snapshot was created. - Returns:
- The timestamp of when the snapshot was created.
 
- 
snapshotName
- 
snapshotRemainingDaysThe amount of days until the snapshot is deleted. - Returns:
- The amount of days until the snapshot is deleted.
 
- 
snapshotRetentionPeriodThe period of time, in days, of how long the snapshot is retained. - Returns:
- The period of time, in days, of how long the snapshot is retained.
 
- 
snapshotRetentionStartTimeThe timestamp of when data within the snapshot started getting retained. - Returns:
- The timestamp of when data within the snapshot started getting retained.
 
- 
statusThe status of the snapshot. If the service returns an enum value that is not available in the current SDK version, statuswill returnSnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the snapshot.
- See Also:
 
- 
statusAsStringThe status of the snapshot. If the service returns an enum value that is not available in the current SDK version, statuswill returnSnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the snapshot.
- See Also:
 
- 
totalBackupSizeInMegaBytesThe total size, in megabytes, of how big the snapshot is. - Returns:
- The total size, in megabytes, of how big the snapshot is.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<Snapshot.Builder,- Snapshot> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription 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 interface- SdkPojo
- 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
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-