@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeviceState extends Object implements Serializable, Cloneable, StructuredPojo
The device's position, IP address, and Wi-Fi access points.
Constructor and Description |
---|
DeviceState() |
Modifier and Type | Method and Description |
---|---|
DeviceState |
clone() |
boolean |
equals(Object obj) |
PositionalAccuracy |
getAccuracy() |
CellSignals |
getCellSignals()
The cellular network infrastructure that the device is connected to.
|
String |
getDeviceId()
The device identifier.
|
String |
getIpv4Address()
The device's Ipv4 address.
|
List<Double> |
getPosition()
The last known device position.
|
Date |
getSampleTime()
The timestamp at which the device's position was determined.
|
List<WiFiAccessPoint> |
getWiFiAccessPoints()
The Wi-Fi access points the device is using.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccuracy(PositionalAccuracy accuracy) |
void |
setCellSignals(CellSignals cellSignals)
The cellular network infrastructure that the device is connected to.
|
void |
setDeviceId(String deviceId)
The device identifier.
|
void |
setIpv4Address(String ipv4Address)
The device's Ipv4 address.
|
void |
setPosition(Collection<Double> position)
The last known device position.
|
void |
setSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
void |
setWiFiAccessPoints(Collection<WiFiAccessPoint> wiFiAccessPoints)
The Wi-Fi access points the device is using.
|
String |
toString()
Returns a string representation of this object.
|
DeviceState |
withAccuracy(PositionalAccuracy accuracy) |
DeviceState |
withCellSignals(CellSignals cellSignals)
The cellular network infrastructure that the device is connected to.
|
DeviceState |
withDeviceId(String deviceId)
The device identifier.
|
DeviceState |
withIpv4Address(String ipv4Address)
The device's Ipv4 address.
|
DeviceState |
withPosition(Collection<Double> position)
The last known device position.
|
DeviceState |
withPosition(Double... position)
The last known device position.
|
DeviceState |
withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
DeviceState |
withWiFiAccessPoints(Collection<WiFiAccessPoint> wiFiAccessPoints)
The Wi-Fi access points the device is using.
|
DeviceState |
withWiFiAccessPoints(WiFiAccessPoint... wiFiAccessPoints)
The Wi-Fi access points the device is using.
|
public void setDeviceId(String deviceId)
The device identifier.
deviceId
- The device identifier.public String getDeviceId()
The device identifier.
public DeviceState withDeviceId(String deviceId)
The device identifier.
deviceId
- The device identifier.public void setSampleTime(Date sampleTime)
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
sampleTime
- The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getSampleTime()
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public DeviceState withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
sampleTime
- The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public List<Double> getPosition()
The last known device position.
public void setPosition(Collection<Double> position)
The last known device position.
position
- The last known device position.public DeviceState withPosition(Double... position)
The last known device position.
NOTE: This method appends the values to the existing list (if any). Use
setPosition(java.util.Collection)
or withPosition(java.util.Collection)
if you want to override
the existing values.
position
- The last known device position.public DeviceState withPosition(Collection<Double> position)
The last known device position.
position
- The last known device position.public void setAccuracy(PositionalAccuracy accuracy)
accuracy
- public PositionalAccuracy getAccuracy()
public DeviceState withAccuracy(PositionalAccuracy accuracy)
accuracy
- public void setIpv4Address(String ipv4Address)
The device's Ipv4 address.
ipv4Address
- The device's Ipv4 address.public String getIpv4Address()
The device's Ipv4 address.
public DeviceState withIpv4Address(String ipv4Address)
The device's Ipv4 address.
ipv4Address
- The device's Ipv4 address.public List<WiFiAccessPoint> getWiFiAccessPoints()
The Wi-Fi access points the device is using.
public void setWiFiAccessPoints(Collection<WiFiAccessPoint> wiFiAccessPoints)
The Wi-Fi access points the device is using.
wiFiAccessPoints
- The Wi-Fi access points the device is using.public DeviceState withWiFiAccessPoints(WiFiAccessPoint... wiFiAccessPoints)
The Wi-Fi access points the device is using.
NOTE: This method appends the values to the existing list (if any). Use
setWiFiAccessPoints(java.util.Collection)
or withWiFiAccessPoints(java.util.Collection)
if you
want to override the existing values.
wiFiAccessPoints
- The Wi-Fi access points the device is using.public DeviceState withWiFiAccessPoints(Collection<WiFiAccessPoint> wiFiAccessPoints)
The Wi-Fi access points the device is using.
wiFiAccessPoints
- The Wi-Fi access points the device is using.public void setCellSignals(CellSignals cellSignals)
The cellular network infrastructure that the device is connected to.
cellSignals
- The cellular network infrastructure that the device is connected to.public CellSignals getCellSignals()
The cellular network infrastructure that the device is connected to.
public DeviceState withCellSignals(CellSignals cellSignals)
The cellular network infrastructure that the device is connected to.
cellSignals
- The cellular network infrastructure that the device is connected to.public String toString()
toString
in class Object
Object.toString()
public DeviceState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.