@Generated(value="software.amazon.awssdk:codegen") public final class Sensor extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Sensor.Builder,Sensor>
An input component that reports the environmental condition of a vehicle.
You can collect data about fluid levels, temperatures, vibrations, or battery voltage from sensors.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Sensor.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowedValues()
A list of possible values a sensor can take.
|
static Sensor.Builder |
builder() |
NodeDataType |
dataType()
The specified data type of the sensor.
|
String |
dataTypeAsString()
The specified data type of the sensor.
|
String |
description()
A brief description of a sensor.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fullyQualifiedName()
The fully qualified name of the sensor.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAllowedValues()
For responses, this returns true if the service returned a value for the AllowedValues property.
|
int |
hashCode() |
Double |
max()
The specified possible maximum value of the sensor.
|
Double |
min()
The specified possible minimum value of the sensor.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Sensor.Builder> |
serializableBuilderClass() |
Sensor.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
unit()
The scientific unit of measurement for data collected by the sensor.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String fullyQualifiedName()
The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be
Vehicle.Body.Engine.Battery.
Vehicle.Body.Engine.Battery.public final NodeDataType dataType()
The specified data type of the sensor.
If the service returns an enum value that is not available in the current SDK version, dataType will
return NodeDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
dataTypeAsString().
NodeDataTypepublic final String dataTypeAsString()
The specified data type of the sensor.
If the service returns an enum value that is not available in the current SDK version, dataType will
return NodeDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
dataTypeAsString().
NodeDataTypepublic final String description()
A brief description of a sensor.
public final String unit()
The scientific unit of measurement for data collected by the sensor.
public final boolean hasAllowedValues()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> allowedValues()
A list of possible values a sensor can take.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAllowedValues() method.
public final Double min()
The specified possible minimum value of the sensor.
public final Double max()
The specified possible maximum value of the sensor.
public Sensor.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Sensor.Builder,Sensor>public static Sensor.Builder builder()
public static Class<? extends Sensor.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.