Class CfnAsset.AssetPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAsset.AssetPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset.AssetPropertyProperty>
- Enclosing interface:
CfnAsset.AssetPropertyProperty
@Stability(Stable)
public static final class CfnAsset.AssetPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAsset.AssetPropertyProperty>
A builder for
CfnAsset.AssetPropertyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAsset.AssetPropertyProperty.getAlias()build()Builds the configured instance.externalId(String externalId) Sets the value ofCfnAsset.AssetPropertyProperty.getExternalId()Sets the value ofCfnAsset.AssetPropertyProperty.getId()Sets the value ofCfnAsset.AssetPropertyProperty.getLogicalId()notificationState(String notificationState) Sets the value ofCfnAsset.AssetPropertyProperty.getNotificationState()Sets the value ofCfnAsset.AssetPropertyProperty.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnAsset.AssetPropertyProperty.getAlias()- Parameters:
alias- The alias that identifies the property, such as an OPC-UA server data stream path (for example,/company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the AWS IoT SiteWise User Guide .- Returns:
this
-
externalId
Sets the value ofCfnAsset.AssetPropertyProperty.getExternalId()- Parameters:
externalId- The external ID of the property. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .- Returns:
this
-
id
Sets the value ofCfnAsset.AssetPropertyProperty.getId()- Parameters:
id- The ID of the asset property.This is a return value and can't be set.
- Returns:
this
-
logicalId
Sets the value ofCfnAsset.AssetPropertyProperty.getLogicalId()- Parameters:
logicalId- TheLogicalIDof the asset property.- Returns:
this
-
notificationState
@Stability(Stable) public CfnAsset.AssetPropertyProperty.Builder notificationState(String notificationState) Sets the value ofCfnAsset.AssetPropertyProperty.getNotificationState()- Parameters:
notificationState- The MQTT notification state (enabled or disabled) for this asset property. When the notification state is enabled, AWS IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see Interacting with other services in the AWS IoT SiteWise User Guide .If you omit this parameter, the notification state is set to
DISABLED.- Returns:
this
-
unit
Sets the value ofCfnAsset.AssetPropertyProperty.getUnit()- Parameters:
unit- The unit (such asNewtonsorRPM) of the asset property.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAsset.AssetPropertyProperty>- Returns:
- a new instance of
CfnAsset.AssetPropertyProperty - Throws:
NullPointerException- if any required attribute was not provided
-