Class CfnAlarmModel.AssetPropertyTimestampProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.AssetPropertyTimestampProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.AssetPropertyTimestampProperty>
- Enclosing interface:
CfnAlarmModel.AssetPropertyTimestampProperty
@Stability(Stable)
public static final class CfnAlarmModel.AssetPropertyTimestampProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.AssetPropertyTimestampProperty>
A builder for
CfnAlarmModel.AssetPropertyTimestampProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.offsetInNanos
(String offsetInNanos) Sets the value ofCfnAlarmModel.AssetPropertyTimestampProperty.getOffsetInNanos()
timeInSeconds
(String timeInSeconds) Sets the value ofCfnAlarmModel.AssetPropertyTimestampProperty.getTimeInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timeInSeconds
@Stability(Stable) public CfnAlarmModel.AssetPropertyTimestampProperty.Builder timeInSeconds(String timeInSeconds) Sets the value ofCfnAlarmModel.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 CfnAlarmModel.AssetPropertyTimestampProperty.Builder offsetInNanos(String offsetInNanos) Sets the value ofCfnAlarmModel.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<CfnAlarmModel.AssetPropertyTimestampProperty>
- Returns:
- a new instance of
CfnAlarmModel.AssetPropertyTimestampProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-