@Generated(value="software.amazon.awssdk:codegen") public final class Snapshot extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Snapshot.Builder,Snapshot>
A snapshot object that contains databases.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Snapshot.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
accountsWithProvisionedRestoreAccess()
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
|
List<String> |
accountsWithRestoreAccess()
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
|
Double |
actualIncrementalBackupSizeInMegaBytes()
The size of the incremental backup in megabytes.
|
String |
adminUsername()
The username of the database within a snapshot.
|
Double |
backupProgressInMegaBytes()
The size in megabytes of the data that has been backed up to a snapshot.
|
static Snapshot.Builder |
builder() |
Double |
currentBackupRateInMegaBytesPerSecond()
The rate at which data is backed up into a snapshot in megabytes per second.
|
Long |
elapsedTimeInSeconds()
The amount of time it took to back up data into a snapshot.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Long |
estimatedSecondsToCompletion()
The estimated amount of seconds until the snapshot completes backup.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccountsWithProvisionedRestoreAccess()
For responses, this returns true if the service returned a value for the AccountsWithProvisionedRestoreAccess
property.
|
boolean |
hasAccountsWithRestoreAccess()
For responses, this returns true if the service returned a value for the AccountsWithRestoreAccess property.
|
int |
hashCode() |
String |
kmsKeyId()
The unique identifier of the KMS key used to encrypt the snapshot.
|
String |
namespaceArn()
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
|
String |
namespaceName()
The name of the namepsace.
|
String |
ownerAccount()
The owner Amazon Web Services; account of the snapshot.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Snapshot.Builder> |
serializableBuilderClass() |
String |
snapshotArn()
The Amazon Resource Name (ARN) of the snapshot.
|
Instant |
snapshotCreateTime()
The timestamp of when the snapshot was created.
|
String |
snapshotName()
The name of the snapshot.
|
Integer |
snapshotRemainingDays()
The amount of days until the snapshot is deleted.
|
Integer |
snapshotRetentionPeriod()
The period of time, in days, of how long the snapshot is retained.
|
Instant |
snapshotRetentionStartTime()
The timestamp of when data within the snapshot started getting retained.
|
SnapshotStatus |
status()
The status of the snapshot.
|
String |
statusAsString()
The status of the snapshot.
|
Snapshot.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
totalBackupSizeInMegaBytes()
The total size, in megabytes, of how big the snapshot is.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAccountsWithProvisionedRestoreAccess()
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> accountsWithProvisionedRestoreAccess()
All 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.
public final boolean hasAccountsWithRestoreAccess()
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> accountsWithRestoreAccess()
All 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.
public final Double actualIncrementalBackupSizeInMegaBytes()
The size of the incremental backup in megabytes.
public final String adminUsername()
The username of the database within a snapshot.
public final Double backupProgressInMegaBytes()
The size in megabytes of the data that has been backed up to a snapshot.
public final Double currentBackupRateInMegaBytesPerSecond()
The rate at which data is backed up into a snapshot in megabytes per second.
public final Long elapsedTimeInSeconds()
The amount of time it took to back up data into a snapshot.
public final Long estimatedSecondsToCompletion()
The estimated amount of seconds until the snapshot completes backup.
public final String kmsKeyId()
The unique identifier of the KMS key used to encrypt the snapshot.
public final String namespaceArn()
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
public final String namespaceName()
The name of the namepsace.
public final String ownerAccount()
The owner Amazon Web Services; account of the snapshot.
public final String snapshotArn()
The Amazon Resource Name (ARN) of the snapshot.
public final Instant snapshotCreateTime()
The timestamp of when the snapshot was created.
public final String snapshotName()
The name of the snapshot.
public final Integer snapshotRemainingDays()
The amount of days until the snapshot is deleted.
public final Integer snapshotRetentionPeriod()
The period of time, in days, of how long the snapshot is retained.
public final Instant snapshotRetentionStartTime()
The timestamp of when data within the snapshot started getting retained.
public final SnapshotStatus status()
The status of the snapshot.
If the service returns an enum value that is not available in the current SDK version, status will
return SnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
SnapshotStatuspublic final String statusAsString()
The status of the snapshot.
If the service returns an enum value that is not available in the current SDK version, status will
return SnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
SnapshotStatuspublic final Double totalBackupSizeInMegaBytes()
The total size, in megabytes, of how big the snapshot is.
public Snapshot.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Snapshot.Builder,Snapshot>public static Snapshot.Builder builder()
public static Class<? extends Snapshot.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.