Class CfnDecoderManifest.ObdSignalProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.ObdSignalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDecoderManifest.ObdSignalProperty>
- Enclosing interface:
- CfnDecoderManifest.ObdSignalProperty
@Stability(Stable)
public static final class CfnDecoderManifest.ObdSignalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDecoderManifest.ObdSignalProperty>
A builder for
CfnDecoderManifest.ObdSignalProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbitMaskLength
(String bitMaskLength) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getBitMaskLength()
bitRightShift
(String bitRightShift) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getBitRightShift()
build()
Builds the configured instance.byteLength
(String byteLength) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getByteLength()
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getOffset()
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getPid()
pidResponseLength
(String pidResponseLength) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getPidResponseLength()
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getScaling()
serviceMode
(String serviceMode) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getServiceMode()
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getStartByte()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
byteLength
@Stability(Stable) public CfnDecoderManifest.ObdSignalProperty.Builder byteLength(String byteLength) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getByteLength()
- Parameters:
byteLength
- The length of a message. This parameter is required.- Returns:
this
-
offset
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getOffset()
- Parameters:
offset
- The offset used to calculate the signal value. This parameter is required. Combined with scaling, the calculation isvalue = raw_value * scaling + offset
.- Returns:
this
-
pid
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getPid()
- Parameters:
pid
- The diagnostic code used to request data from a vehicle for this signal. This parameter is required.- Returns:
this
-
pidResponseLength
@Stability(Stable) public CfnDecoderManifest.ObdSignalProperty.Builder pidResponseLength(String pidResponseLength) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getPidResponseLength()
- Parameters:
pidResponseLength
- The length of the requested data. This parameter is required.- Returns:
this
-
scaling
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getScaling()
- Parameters:
scaling
- A multiplier used to decode the message. This parameter is required.- Returns:
this
-
serviceMode
@Stability(Stable) public CfnDecoderManifest.ObdSignalProperty.Builder serviceMode(String serviceMode) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getServiceMode()
- Parameters:
serviceMode
- The mode of operation (diagnostic service) in a message. This parameter is required.- Returns:
this
-
startByte
Sets the value ofCfnDecoderManifest.ObdSignalProperty.getStartByte()
- Parameters:
startByte
- Indicates the beginning of the message. This parameter is required.- Returns:
this
-
bitMaskLength
@Stability(Stable) public CfnDecoderManifest.ObdSignalProperty.Builder bitMaskLength(String bitMaskLength) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getBitMaskLength()
- Parameters:
bitMaskLength
- (Optional) The number of bits to mask in a message.- Returns:
this
-
bitRightShift
@Stability(Stable) public CfnDecoderManifest.ObdSignalProperty.Builder bitRightShift(String bitRightShift) Sets the value ofCfnDecoderManifest.ObdSignalProperty.getBitRightShift()
- Parameters:
bitRightShift
- (Optional) The number of positions to shift bits in the message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDecoderManifest.ObdSignalProperty>
- Returns:
- a new instance of
CfnDecoderManifest.ObdSignalProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-