Class RetentionPeriod
- java.lang.Object
-
- software.amazon.awssdk.services.rbin.model.RetentionPeriod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
@Generated("software.amazon.awssdk:codegen") public final class RetentionPeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRetentionPeriod.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionPeriod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RetentionPeriodUnitretentionPeriodUnit()The unit of time in which the retention period is measured.StringretentionPeriodUnitAsString()The unit of time in which the retention period is measured.IntegerretentionPeriodValue()The period value for which the retention rule is to retain resources.List<SdkField<?>>sdkFields()static Class<? extends RetentionPeriod.Builder>serializableBuilderClass()RetentionPeriod.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
retentionPeriodValue
public final Integer retentionPeriodValue()
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
- Returns:
- The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
-
retentionPeriodUnit
public final RetentionPeriodUnit retentionPeriodUnit()
The unit of time in which the retention period is measured. Currently, only
DAYSis supported.If the service returns an enum value that is not available in the current SDK version,
retentionPeriodUnitwill returnRetentionPeriodUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromretentionPeriodUnitAsString().- Returns:
- The unit of time in which the retention period is measured. Currently, only
DAYSis supported. - See Also:
RetentionPeriodUnit
-
retentionPeriodUnitAsString
public final String retentionPeriodUnitAsString()
The unit of time in which the retention period is measured. Currently, only
DAYSis supported.If the service returns an enum value that is not available in the current SDK version,
retentionPeriodUnitwill returnRetentionPeriodUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromretentionPeriodUnitAsString().- Returns:
- The unit of time in which the retention period is measured. Currently, only
DAYSis supported. - See Also:
RetentionPeriodUnit
-
toBuilder
public RetentionPeriod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
-
builder
public static RetentionPeriod.Builder builder()
-
serializableBuilderClass
public static Class<? extends RetentionPeriod.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.
-
-