Class RecordExpiration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RecordExpiration.Builder,RecordExpiration>
The journal table record expiration settings for a journal table in an S3 Metadata configuration.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordExpiration.Builderbuilder()final Integerdays()If you enable journal table record expiration, you can set the number of days to retain your journal table records.final booleanfinal booleanequalsBySdkFields(Object obj) final ExpirationStateSpecifies whether journal table record expiration is enabled or disabled.final StringSpecifies whether journal table record expiration is enabled or disabled.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends RecordExpiration.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
expiration
Specifies whether journal table record expiration is enabled or disabled.
If the service returns an enum value that is not available in the current SDK version,
expirationwill returnExpirationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexpirationAsString().- Returns:
- Specifies whether journal table record expiration is enabled or disabled.
- See Also:
-
expirationAsString
Specifies whether journal table record expiration is enabled or disabled.
If the service returns an enum value that is not available in the current SDK version,
expirationwill returnExpirationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexpirationAsString().- Returns:
- Specifies whether journal table record expiration is enabled or disabled.
- See Also:
-
days
If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from
7to2147483647. For example, to retain your journal table records for one year, set this value to365.- Returns:
- If you enable journal table record expiration, you can set the number of days to retain your journal
table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify
any whole number from
7to2147483647. For example, to retain your journal table records for one year, set this value to365.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RecordExpiration.Builder,RecordExpiration>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-