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