@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Sensor extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Sensor() |
Modifier and Type | Method and Description |
---|---|
Sensor |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAllowedValues()
A list of possible values a sensor can take.
|
String |
getComment()
A comment in addition to the description.
|
String |
getDataType()
The specified data type of the sensor.
|
String |
getDeprecationMessage()
The deprecation message for the node or the branch that was moved or deleted.
|
String |
getDescription()
A brief description of a sensor.
|
String |
getFullyQualifiedName()
The fully qualified name of the sensor.
|
Double |
getMax()
The specified possible maximum value of the sensor.
|
Double |
getMin()
The specified possible minimum value of the sensor.
|
String |
getStructFullyQualifiedName()
The fully qualified name of the struct node for a sensor if the data type of the actuator is
Struct
or StructArray . |
String |
getUnit()
The scientific unit of measurement for data collected by the sensor.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowedValues(Collection<String> allowedValues)
A list of possible values a sensor can take.
|
void |
setComment(String comment)
A comment in addition to the description.
|
void |
setDataType(String dataType)
The specified data type of the sensor.
|
void |
setDeprecationMessage(String deprecationMessage)
The deprecation message for the node or the branch that was moved or deleted.
|
void |
setDescription(String description)
A brief description of a sensor.
|
void |
setFullyQualifiedName(String fullyQualifiedName)
The fully qualified name of the sensor.
|
void |
setMax(Double max)
The specified possible maximum value of the sensor.
|
void |
setMin(Double min)
The specified possible minimum value of the sensor.
|
void |
setStructFullyQualifiedName(String structFullyQualifiedName)
The fully qualified name of the struct node for a sensor if the data type of the actuator is
Struct
or StructArray . |
void |
setUnit(String unit)
The scientific unit of measurement for data collected by the sensor.
|
String |
toString()
Returns a string representation of this object.
|
Sensor |
withAllowedValues(Collection<String> allowedValues)
A list of possible values a sensor can take.
|
Sensor |
withAllowedValues(String... allowedValues)
A list of possible values a sensor can take.
|
Sensor |
withComment(String comment)
A comment in addition to the description.
|
Sensor |
withDataType(NodeDataType dataType)
The specified data type of the sensor.
|
Sensor |
withDataType(String dataType)
The specified data type of the sensor.
|
Sensor |
withDeprecationMessage(String deprecationMessage)
The deprecation message for the node or the branch that was moved or deleted.
|
Sensor |
withDescription(String description)
A brief description of a sensor.
|
Sensor |
withFullyQualifiedName(String fullyQualifiedName)
The fully qualified name of the sensor.
|
Sensor |
withMax(Double max)
The specified possible maximum value of the sensor.
|
Sensor |
withMin(Double min)
The specified possible minimum value of the sensor.
|
Sensor |
withStructFullyQualifiedName(String structFullyQualifiedName)
The fully qualified name of the struct node for a sensor if the data type of the actuator is
Struct
or StructArray . |
Sensor |
withUnit(String unit)
The scientific unit of measurement for data collected by the sensor.
|
public void setFullyQualifiedName(String fullyQualifiedName)
The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be
Vehicle.Body.Engine.Battery
.
fullyQualifiedName
- The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be
Vehicle.Body.Engine.Battery
.public String getFullyQualifiedName()
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 Sensor withFullyQualifiedName(String fullyQualifiedName)
The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be
Vehicle.Body.Engine.Battery
.
fullyQualifiedName
- The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be
Vehicle.Body.Engine.Battery
.public void setDataType(String dataType)
The specified data type of the sensor.
dataType
- The specified data type of the sensor.NodeDataType
public String getDataType()
The specified data type of the sensor.
NodeDataType
public Sensor withDataType(String dataType)
The specified data type of the sensor.
dataType
- The specified data type of the sensor.NodeDataType
public Sensor withDataType(NodeDataType dataType)
The specified data type of the sensor.
dataType
- The specified data type of the sensor.NodeDataType
public void setDescription(String description)
A brief description of a sensor.
description
- A brief description of a sensor.public String getDescription()
A brief description of a sensor.
public Sensor withDescription(String description)
A brief description of a sensor.
description
- A brief description of a sensor.public void setUnit(String unit)
The scientific unit of measurement for data collected by the sensor.
unit
- The scientific unit of measurement for data collected by the sensor.public String getUnit()
The scientific unit of measurement for data collected by the sensor.
public Sensor withUnit(String unit)
The scientific unit of measurement for data collected by the sensor.
unit
- The scientific unit of measurement for data collected by the sensor.public List<String> getAllowedValues()
A list of possible values a sensor can take.
public void setAllowedValues(Collection<String> allowedValues)
A list of possible values a sensor can take.
allowedValues
- A list of possible values a sensor can take.public Sensor withAllowedValues(String... allowedValues)
A list of possible values a sensor can take.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedValues(java.util.Collection)
or withAllowedValues(java.util.Collection)
if you want
to override the existing values.
allowedValues
- A list of possible values a sensor can take.public Sensor withAllowedValues(Collection<String> allowedValues)
A list of possible values a sensor can take.
allowedValues
- A list of possible values a sensor can take.public void setMin(Double min)
The specified possible minimum value of the sensor.
min
- The specified possible minimum value of the sensor.public Double getMin()
The specified possible minimum value of the sensor.
public Sensor withMin(Double min)
The specified possible minimum value of the sensor.
min
- The specified possible minimum value of the sensor.public void setMax(Double max)
The specified possible maximum value of the sensor.
max
- The specified possible maximum value of the sensor.public Double getMax()
The specified possible maximum value of the sensor.
public Sensor withMax(Double max)
The specified possible maximum value of the sensor.
max
- The specified possible maximum value of the sensor.public void setDeprecationMessage(String deprecationMessage)
The deprecation message for the node or the branch that was moved or deleted.
deprecationMessage
- The deprecation message for the node or the branch that was moved or deleted.public String getDeprecationMessage()
The deprecation message for the node or the branch that was moved or deleted.
public Sensor withDeprecationMessage(String deprecationMessage)
The deprecation message for the node or the branch that was moved or deleted.
deprecationMessage
- The deprecation message for the node or the branch that was moved or deleted.public void setComment(String comment)
A comment in addition to the description.
comment
- A comment in addition to the description.public String getComment()
A comment in addition to the description.
public Sensor withComment(String comment)
A comment in addition to the description.
comment
- A comment in addition to the description.public void setStructFullyQualifiedName(String structFullyQualifiedName)
The fully qualified name of the struct node for a sensor if the data type of the actuator is Struct
or StructArray
. For example, the struct fully qualified name of a sensor might be
Vehicle.ADAS.CameraStruct
.
structFullyQualifiedName
- The fully qualified name of the struct node for a sensor if the data type of the actuator is
Struct
or StructArray
. For example, the struct fully qualified name of a sensor
might be Vehicle.ADAS.CameraStruct
.public String getStructFullyQualifiedName()
The fully qualified name of the struct node for a sensor if the data type of the actuator is Struct
or StructArray
. For example, the struct fully qualified name of a sensor might be
Vehicle.ADAS.CameraStruct
.
Struct
or StructArray
. For example, the struct fully qualified name of a sensor
might be Vehicle.ADAS.CameraStruct
.public Sensor withStructFullyQualifiedName(String structFullyQualifiedName)
The fully qualified name of the struct node for a sensor if the data type of the actuator is Struct
or StructArray
. For example, the struct fully qualified name of a sensor might be
Vehicle.ADAS.CameraStruct
.
structFullyQualifiedName
- The fully qualified name of the struct node for a sensor if the data type of the actuator is
Struct
or StructArray
. For example, the struct fully qualified name of a sensor
might be Vehicle.ADAS.CameraStruct
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.