Class BackupRetentionPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.cloudhsmv2.model.BackupRetentionPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BackupRetentionPolicy.Builder,BackupRetentionPolicy>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBackupRetentionPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackupRetentionPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends BackupRetentionPolicy.Builder>serializableBuilderClass()BackupRetentionPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.BackupRetentionTypetype()The type of backup retention policy.StringtypeAsString()The type of backup retention policy.Stringvalue()Use a value between 7 - 379.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final BackupRetentionType type()
The type of backup retention policy. For the
DAYStype, 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,
typewill returnBackupRetentionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of backup retention policy. For the
DAYStype, the value is the number of days to retain backups. - See Also:
BackupRetentionType
-
typeAsString
public final String typeAsString()
The type of backup retention policy. For the
DAYStype, 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,
typewill returnBackupRetentionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of backup retention policy. For the
DAYStype, the value is the number of days to retain backups. - See Also:
BackupRetentionType
-
value
public final String value()
Use a value between 7 - 379.
- Returns:
- Use a value between 7 - 379.
-
toBuilder
public BackupRetentionPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BackupRetentionPolicy.Builder,BackupRetentionPolicy>
-
builder
public static BackupRetentionPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends BackupRetentionPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-