@Generated(value="software.amazon.awssdk:codegen") public final class BackupRetentionPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BackupRetentionPolicy.Builder,BackupRetentionPolicy>
A policy that defines the number of days to retain backups.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BackupRetentionPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BackupRetentionPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends BackupRetentionPolicy.Builder> |
serializableBuilderClass() |
BackupRetentionPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
BackupRetentionType |
type()
The type of backup retention policy.
|
String |
typeAsString()
The type of backup retention policy.
|
String |
value()
Use a value between 7 - 379.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BackupRetentionType type()
The type of backup retention policy. For the DAYS type, the value is the number of days to retain
backups.
If the service returns an enum value that is not available in the current SDK version, type will return
BackupRetentionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
DAYS type, the value is the number of days to
retain backups.BackupRetentionTypepublic final String typeAsString()
The type of backup retention policy. For the DAYS type, the value is the number of days to retain
backups.
If the service returns an enum value that is not available in the current SDK version, type will return
BackupRetentionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
DAYS type, the value is the number of days to
retain backups.BackupRetentionTypepublic final String value()
Use a value between 7 - 379.
public BackupRetentionPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BackupRetentionPolicy.Builder,BackupRetentionPolicy>public static BackupRetentionPolicy.Builder builder()
public static Class<? extends BackupRetentionPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.