@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 |
getDataType()
The specified data type of the sensor.
|
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 |
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 |
setDataType(String dataType)
The specified data type of the sensor.
|
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 |
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 |
withDataType(NodeDataType dataType)
The specified data type of the sensor.
|
Sensor |
withDataType(String dataType)
The specified data type of the sensor.
|
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 |
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 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.