Class CfnDecoderManifestPropsMixin.CanSignalProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.iotfleetwise.mixins.CfnDecoderManifestPropsMixin.CanSignalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDecoderManifestPropsMixin.CanSignalProperty>
- Enclosing interface:
CfnDecoderManifestPropsMixin.CanSignalProperty
@Stability(Stable)
public static final class CfnDecoderManifestPropsMixin.CanSignalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDecoderManifestPropsMixin.CanSignalProperty>
A builder for
CfnDecoderManifestPropsMixin.CanSignalProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getFactor()isBigEndian(String isBigEndian) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getIsBigEndian()Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getIsSigned()Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getLength()Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getMessageId()Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getName()Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getOffset()signalValueType(String signalValueType) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getSignalValueType()Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getStartBit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
factor
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder factor(String factor) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getFactor()- Parameters:
factor- A multiplier used to decode the CAN message.- Returns:
this
-
isBigEndian
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder isBigEndian(String isBigEndian) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getIsBigEndian()- Parameters:
isBigEndian- Whether the byte ordering of a CAN message is big-endian.- Returns:
this
-
isSigned
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder isSigned(String isSigned) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getIsSigned()- Parameters:
isSigned- Whether the message data is specified as a signed value.- Returns:
this
-
length
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder length(String length) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getLength()- Parameters:
length- How many bytes of data are in the message.- Returns:
this
-
messageId
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder messageId(String messageId) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getMessageId()- Parameters:
messageId- The ID of the message.- Returns:
this
-
name
Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getName()- Parameters:
name- The name of the signal.- Returns:
this
-
offset
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder offset(String offset) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getOffset()- Parameters:
offset- The offset used to calculate the signal value. Combined with factor, the calculation isvalue = raw_value * factor + offset.- Returns:
this
-
signalValueType
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder signalValueType(String signalValueType) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getSignalValueType()- Parameters:
signalValueType- The value type of the signal. The default value isINTEGER.- Returns:
this
-
startBit
@Stability(Stable) public CfnDecoderManifestPropsMixin.CanSignalProperty.Builder startBit(String startBit) Sets the value ofCfnDecoderManifestPropsMixin.CanSignalProperty.getStartBit()- Parameters:
startBit- Indicates the beginning of the CAN message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDecoderManifestPropsMixin.CanSignalProperty>- Returns:
- a new instance of
CfnDecoderManifestPropsMixin.CanSignalProperty - Throws:
NullPointerException- if any required attribute was not provided
-