Class CfnDatastore.TimestampPartitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDatastore.TimestampPartitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatastore.TimestampPartitionProperty>
- Enclosing interface:
- CfnDatastore.TimestampPartitionProperty
@Stability(Stable)
public static final class CfnDatastore.TimestampPartitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatastore.TimestampPartitionProperty>
A builder for
CfnDatastore.TimestampPartitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Sets the value ofCfnDatastore.TimestampPartitionProperty.getAttributeName()build()Builds the configured instance.timestampFormat(String timestampFormat) Sets the value ofCfnDatastore.TimestampPartitionProperty.getTimestampFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeName
@Stability(Stable) public CfnDatastore.TimestampPartitionProperty.Builder attributeName(String attributeName) Sets the value ofCfnDatastore.TimestampPartitionProperty.getAttributeName()- Parameters:
attributeName- The attribute name of the partition defined by a timestamp. This parameter is required.- Returns:
this
-
timestampFormat
@Stability(Stable) public CfnDatastore.TimestampPartitionProperty.Builder timestampFormat(String timestampFormat) Sets the value ofCfnDatastore.TimestampPartitionProperty.getTimestampFormat()- Parameters:
timestampFormat- The timestamp format of a partition defined by a timestamp. The default format is seconds since epoch (January 1, 1970 at midnight UTC time).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatastore.TimestampPartitionProperty>- Returns:
- a new instance of
CfnDatastore.TimestampPartitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-