Class CfnTopicRule.TimestampProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.TimestampProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.TimestampProperty>
- Enclosing interface:
CfnTopicRule.TimestampProperty
@Stability(Stable)
public static final class CfnTopicRule.TimestampProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.TimestampProperty>
A builder for
CfnTopicRule.TimestampProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTopicRule.TimestampProperty.getUnit()
Sets the value ofCfnTopicRule.TimestampProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofCfnTopicRule.TimestampProperty.getValue()
- Parameters:
value
- An expression that returns a long epoch time value. This parameter is required.- Returns:
this
-
unit
Sets the value ofCfnTopicRule.TimestampProperty.getUnit()
- Parameters:
unit
- The precision of the timestamp value that results from the expression described invalue
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.TimestampProperty>
- Returns:
- a new instance of
CfnTopicRule.TimestampProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-