Class CfnBucket.DefaultEventHoldProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.DefaultEventHoldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.DefaultEventHoldProperty>
- Enclosing interface:
CfnBucket.DefaultEventHoldProperty
@Stability(Stable)
public static final class CfnBucket.DefaultEventHoldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.DefaultEventHoldProperty>
A builder for
CfnBucket.DefaultEventHoldProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBucket.DefaultEventHoldProperty.getDays()Sets the value ofCfnBucket.DefaultEventHoldProperty.getYears()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
days
Sets the value ofCfnBucket.DefaultEventHoldProperty.getDays()- Parameters:
days- the value to be set.- Returns:
this
-
years
Sets the value ofCfnBucket.DefaultEventHoldProperty.getYears()- Parameters:
years- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucket.DefaultEventHoldProperty>- Returns:
- a new instance of
CfnBucket.DefaultEventHoldProperty - Throws:
NullPointerException- if any required attribute was not provided
-