@Generated(value="software.amazon.awssdk:codegen") public final class Actuator extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Actuator.Builder,Actuator>
A signal that represents a vehicle device such as the engine, heater, and door locks. Data from an actuator reports the state of a certain vehicle device.
Updating actuator data can change the state of a device. For example, you can turn on or off the heater by updating its actuator data.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Actuator.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowedValues()
A list of possible values an actuator can take.
|
String |
assignedValue()
A specified value for the actuator.
|
static Actuator.Builder |
builder() |
NodeDataType |
dataType()
The specified data type of the actuator.
|
String |
dataTypeAsString()
The specified data type of the actuator.
|
String |
description()
A brief description of the actuator.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fullyQualifiedName()
The fully qualified name of the actuator.
|
<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 an actuator.
|
Double |
min()
The specified possible minimum value of an actuator.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Actuator.Builder> |
serializableBuilderClass() |
Actuator.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
unit()
The scientific unit for the actuator.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String fullyQualifiedName()
The fully qualified name of the actuator. For example, the fully qualified name of an actuator might be
Vehicle.Front.Left.Door.Lock.
Vehicle.Front.Left.Door.Lock.public final NodeDataType dataType()
The specified data type of the actuator.
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 actuator.
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 the actuator.
public final String unit()
The scientific unit for the actuator.
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 an actuator 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 an actuator.
public final Double max()
The specified possible maximum value of an actuator.
public final String assignedValue()
A specified value for the actuator.
public Actuator.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Actuator.Builder,Actuator>public static Actuator.Builder builder()
public static Class<? extends Actuator.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.