Class CfnBucket.VersioningConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.VersioningConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.VersioningConfigurationProperty>
- Enclosing interface:
CfnBucket.VersioningConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.VersioningConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.VersioningConfigurationProperty>
A builder for
CfnBucket.VersioningConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.VersioningConfigurationProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
status
Sets the value ofCfnBucket.VersioningConfigurationProperty.getStatus()
- Parameters:
status
- The versioning state of the bucket. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.VersioningConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.VersioningConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-