Class ROS2PrimitiveMessageDefinition
- java.lang.Object
-
- software.amazon.awssdk.services.iotfleetwise.model.ROS2PrimitiveMessageDefinition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ROS2PrimitiveMessageDefinition.Builder,ROS2PrimitiveMessageDefinition>
@Generated("software.amazon.awssdk:codegen") public final class ROS2PrimitiveMessageDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ROS2PrimitiveMessageDefinition.Builder,ROS2PrimitiveMessageDefinition>
Represents a ROS 2 compliant primitive type message of the complex data structure.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceROS2PrimitiveMessageDefinition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ROS2PrimitiveMessageDefinition.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Doubleoffset()The offset used to calculate the signal value.ROS2PrimitiveTypeprimitiveType()The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.StringprimitiveTypeAsString()The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.Doublescaling()A multiplier used to decode the message.List<SdkField<?>>sdkFields()static Class<? extends ROS2PrimitiveMessageDefinition.Builder>serializableBuilderClass()ROS2PrimitiveMessageDefinition.BuildertoBuilder()StringtoString()Returns a string representation of this object.LongupperBound()An optional attribute specifying the upper bound forSTRINGandWSTRING.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
primitiveType
public final ROS2PrimitiveType primitiveType()
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
If the service returns an enum value that is not available in the current SDK version,
primitiveTypewill returnROS2PrimitiveType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprimitiveTypeAsString().- Returns:
- The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
- See Also:
ROS2PrimitiveType
-
primitiveTypeAsString
public final String primitiveTypeAsString()
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
If the service returns an enum value that is not available in the current SDK version,
primitiveTypewill returnROS2PrimitiveType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprimitiveTypeAsString().- Returns:
- The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
- See Also:
ROS2PrimitiveType
-
offset
public final Double offset()
The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset.- Returns:
- The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset.
-
scaling
public final Double scaling()
A multiplier used to decode the message.
- Returns:
- A multiplier used to decode the message.
-
upperBound
public final Long upperBound()
An optional attribute specifying the upper bound for
STRINGandWSTRING.- Returns:
- An optional attribute specifying the upper bound for
STRINGandWSTRING.
-
toBuilder
public ROS2PrimitiveMessageDefinition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ROS2PrimitiveMessageDefinition.Builder,ROS2PrimitiveMessageDefinition>
-
builder
public static ROS2PrimitiveMessageDefinition.Builder builder()
-
serializableBuilderClass
public static Class<? extends ROS2PrimitiveMessageDefinition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-