Class CfnBucket.RecordExpirationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.RecordExpirationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.RecordExpirationProperty>
- Enclosing interface:
CfnBucket.RecordExpirationProperty
@Stability(Stable)
public static final class CfnBucket.RecordExpirationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.RecordExpirationProperty>
A builder for
CfnBucket.RecordExpirationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBucket.RecordExpirationProperty.getDays()expiration(String expiration) Sets the value ofCfnBucket.RecordExpirationProperty.getExpiration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expiration
Sets the value ofCfnBucket.RecordExpirationProperty.getExpiration()- Parameters:
expiration- Specifies whether journal table record expiration is enabled or disabled. This parameter is required.- Returns:
this
-
days
Sets the value ofCfnBucket.RecordExpirationProperty.getDays()- Parameters:
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 from7to2147483647. For example, to retain your journal table records for one year, set this value to365.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucket.RecordExpirationProperty>- Returns:
- a new instance of
CfnBucket.RecordExpirationProperty - Throws:
NullPointerException- if any required attribute was not provided
-