Class CfnAlarmModel.AssetPropertyValueProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.AssetPropertyValueProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.AssetPropertyValueProperty>
- Enclosing interface:
CfnAlarmModel.AssetPropertyValueProperty
@Stability(Stable)
public static final class CfnAlarmModel.AssetPropertyValueProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.AssetPropertyValueProperty>
A builder for
CfnAlarmModel.AssetPropertyValueProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getQuality()timestamp(IResolvable timestamp) Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getTimestamp()Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getTimestamp()value(IResolvable value) Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getValue()Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getValue()- Parameters:
value- The value to send to an asset property. This parameter is required.- Returns:
this
-
value
@Stability(Stable) public CfnAlarmModel.AssetPropertyValueProperty.Builder value(CfnAlarmModel.AssetPropertyVariantProperty value) Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getValue()- Parameters:
value- The value to send to an asset property. This parameter is required.- Returns:
this
-
quality
Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getQuality()- Parameters:
quality- The quality of the asset property value. The value must be'GOOD','BAD', or'UNCERTAIN'.- Returns:
this
-
timestamp
@Stability(Stable) public CfnAlarmModel.AssetPropertyValueProperty.Builder timestamp(IResolvable timestamp) Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getTimestamp()- Parameters:
timestamp- The timestamp associated with the asset property value. The default is the current event time.- Returns:
this
-
timestamp
@Stability(Stable) public CfnAlarmModel.AssetPropertyValueProperty.Builder timestamp(CfnAlarmModel.AssetPropertyTimestampProperty timestamp) Sets the value ofCfnAlarmModel.AssetPropertyValueProperty.getTimestamp()- Parameters:
timestamp- The timestamp associated with the asset property value. The default is the current event time.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmModel.AssetPropertyValueProperty>- Returns:
- a new instance of
CfnAlarmModel.AssetPropertyValueProperty - Throws:
NullPointerException- if any required attribute was not provided
-