Class CfnDetectorModel.AssetPropertyTimestampProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.AssetPropertyTimestampProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.AssetPropertyTimestampProperty>
- Enclosing interface:
CfnDetectorModel.AssetPropertyTimestampProperty
@Stability(Stable)
public static final class CfnDetectorModel.AssetPropertyTimestampProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.AssetPropertyTimestampProperty>
A builder for
CfnDetectorModel.AssetPropertyTimestampProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.offsetInNanos
(String offsetInNanos) Sets the value ofCfnDetectorModel.AssetPropertyTimestampProperty.getOffsetInNanos()
timeInSeconds
(String timeInSeconds) Sets the value ofCfnDetectorModel.AssetPropertyTimestampProperty.getTimeInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timeInSeconds
@Stability(Stable) public CfnDetectorModel.AssetPropertyTimestampProperty.Builder timeInSeconds(String timeInSeconds) Sets the value ofCfnDetectorModel.AssetPropertyTimestampProperty.getTimeInSeconds()
- Parameters:
timeInSeconds
- The timestamp, in seconds, in the Unix epoch format. This parameter is required. The valid range is between 1-31556889864403199.- Returns:
this
-
offsetInNanos
@Stability(Stable) public CfnDetectorModel.AssetPropertyTimestampProperty.Builder offsetInNanos(String offsetInNanos) Sets the value ofCfnDetectorModel.AssetPropertyTimestampProperty.getOffsetInNanos()
- Parameters:
offsetInNanos
- The nanosecond offset converted fromtimeInSeconds
. The valid range is between 0-999999999.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.AssetPropertyTimestampProperty>
- Returns:
- a new instance of
CfnDetectorModel.AssetPropertyTimestampProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-