Class CfnBucket.ReplicationTimeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.ReplicationTimeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.ReplicationTimeProperty>
- Enclosing interface:
CfnBucket.ReplicationTimeProperty
@Stability(Stable)
public static final class CfnBucket.ReplicationTimeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.ReplicationTimeProperty>
A builder for
CfnBucket.ReplicationTimeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.ReplicationTimeProperty.getStatus()
time
(IResolvable time) Sets the value ofCfnBucket.ReplicationTimeProperty.getTime()
Sets the value ofCfnBucket.ReplicationTimeProperty.getTime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
status
Sets the value ofCfnBucket.ReplicationTimeProperty.getStatus()
- Parameters:
status
- Specifies whether the replication time is enabled. This parameter is required.- Returns:
this
-
time
Sets the value ofCfnBucket.ReplicationTimeProperty.getTime()
- Parameters:
time
- A container specifying the time by which replication should be complete for all objects and operations on objects. This parameter is required.- Returns:
this
-
time
@Stability(Stable) public CfnBucket.ReplicationTimeProperty.Builder time(CfnBucket.ReplicationTimeValueProperty time) Sets the value ofCfnBucket.ReplicationTimeProperty.getTime()
- Parameters:
time
- A container specifying the time by which replication should be complete for all objects and operations on objects. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.ReplicationTimeProperty>
- Returns:
- a new instance of
CfnBucket.ReplicationTimeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-