public static final class CfnAsset.AssetPropertyProperty.Builder
extends java.lang.Object
CfnAsset.AssetPropertyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAsset.AssetPropertyProperty.Builder |
alias(java.lang.String alias)
Sets the value of
CfnAsset.AssetPropertyProperty.getAlias() |
CfnAsset.AssetPropertyProperty |
build()
Builds the configured instance.
|
CfnAsset.AssetPropertyProperty.Builder |
logicalId(java.lang.String logicalId)
Sets the value of
CfnAsset.AssetPropertyProperty.getLogicalId() |
CfnAsset.AssetPropertyProperty.Builder |
notificationState(java.lang.String notificationState)
Sets the value of
CfnAsset.AssetPropertyProperty.getNotificationState() |
CfnAsset.AssetPropertyProperty.Builder |
unit(java.lang.String unit)
Sets the value of
CfnAsset.AssetPropertyProperty.getUnit() |
public CfnAsset.AssetPropertyProperty.Builder logicalId(java.lang.String logicalId)
CfnAsset.AssetPropertyProperty.getLogicalId()
logicalId
- The `LogicalID` of the asset property. This parameter is required.
The maximum length is 256 characters, with the pattern [^\ u0000-\ u001F\ u007F]+
.this
public CfnAsset.AssetPropertyProperty.Builder alias(java.lang.String alias)
CfnAsset.AssetPropertyProperty.getAlias()
alias
- The property 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 .
The property alias must have 1-1000 characters.
this
public CfnAsset.AssetPropertyProperty.Builder notificationState(java.lang.String notificationState)
CfnAsset.AssetPropertyProperty.getNotificationState()
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
.
You must use all caps for the NotificationState parameter. If you use lower case letters, you will receive a schema validation error.
this
public CfnAsset.AssetPropertyProperty.Builder unit(java.lang.String unit)
CfnAsset.AssetPropertyProperty.getUnit()
unit
- The unit (such as `Newtons` or `RPM` ) of the asset property.this
public CfnAsset.AssetPropertyProperty build()
CfnAsset.AssetPropertyProperty
java.lang.NullPointerException
- if any required attribute was not provided