@Stability(value=Stable) public static final class CfnBucket.DefaultRetentionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.DefaultRetentionProperty>
CfnBucket.DefaultRetentionProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.DefaultRetentionProperty |
build()
Builds the configured instance.
|
CfnBucket.DefaultRetentionProperty.Builder |
days(Number days)
Sets the value of
CfnBucket.DefaultRetentionProperty.getDays() |
CfnBucket.DefaultRetentionProperty.Builder |
mode(String mode)
Sets the value of
CfnBucket.DefaultRetentionProperty.getMode() |
CfnBucket.DefaultRetentionProperty.Builder |
years(Number years)
Sets the value of
CfnBucket.DefaultRetentionProperty.getYears() |
@Stability(value=Stable) public CfnBucket.DefaultRetentionProperty.Builder days(Number days)
CfnBucket.DefaultRetentionProperty.getDays()days - The number of days that you want to specify for the default retention period.
If Object Lock is turned on, you must specify Mode and specify either Days or Years .this@Stability(value=Stable) public CfnBucket.DefaultRetentionProperty.Builder mode(String mode)
CfnBucket.DefaultRetentionProperty.getMode()mode - The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
If Object Lock is turned on, you must specify Mode and specify either Days or Years .this@Stability(value=Stable) public CfnBucket.DefaultRetentionProperty.Builder years(Number years)
CfnBucket.DefaultRetentionProperty.getYears()years - The number of years that you want to specify for the default retention period.
If Object Lock is turned on, you must specify Mode and specify either Days or Years .this@Stability(value=Stable) public CfnBucket.DefaultRetentionProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.DefaultRetentionProperty>CfnBucket.DefaultRetentionPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.