@Stability(value=Stable) public static final class CfnBucket.ObjectLockConfigurationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.ObjectLockConfigurationProperty>
CfnBucket.ObjectLockConfigurationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.ObjectLockConfigurationProperty |
build()
Builds the configured instance.
|
CfnBucket.ObjectLockConfigurationProperty.Builder |
objectLockEnabled(String objectLockEnabled)
Sets the value of
CfnBucket.ObjectLockConfigurationProperty.getObjectLockEnabled() |
CfnBucket.ObjectLockConfigurationProperty.Builder |
rule(CfnBucket.ObjectLockRuleProperty rule)
Sets the value of
CfnBucket.ObjectLockConfigurationProperty.getRule() |
CfnBucket.ObjectLockConfigurationProperty.Builder |
rule(IResolvable rule)
Sets the value of
CfnBucket.ObjectLockConfigurationProperty.getRule() |
@Stability(value=Stable) public CfnBucket.ObjectLockConfigurationProperty.Builder objectLockEnabled(String objectLockEnabled)
CfnBucket.ObjectLockConfigurationProperty.getObjectLockEnabled()objectLockEnabled - Indicates whether this bucket has an Object Lock configuration enabled.
Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.this@Stability(value=Stable) public CfnBucket.ObjectLockConfigurationProperty.Builder rule(CfnBucket.ObjectLockRuleProperty rule)
CfnBucket.ObjectLockConfigurationProperty.getRule()rule - Specifies the Object Lock rule for the specified object.
Enable the this rule when you apply ObjectLockConfiguration to a bucket. If Object Lock is turned on, bucket settings require both Mode and a period of either Days or Years . You cannot specify Days and Years at the same time. For more information, see ObjectLockRule and DefaultRetention .this@Stability(value=Stable) public CfnBucket.ObjectLockConfigurationProperty.Builder rule(IResolvable rule)
CfnBucket.ObjectLockConfigurationProperty.getRule()rule - Specifies the Object Lock rule for the specified object.
Enable the this rule when you apply ObjectLockConfiguration to a bucket. If Object Lock is turned on, bucket settings require both Mode and a period of either Days or Years . You cannot specify Days and Years at the same time. For more information, see ObjectLockRule and DefaultRetention .this@Stability(value=Stable) public CfnBucket.ObjectLockConfigurationProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.ObjectLockConfigurationProperty>CfnBucket.ObjectLockConfigurationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.