public class DeviceGeoLocation extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceGeoLocation.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Double |
altitude |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected Double |
heading |
protected Double |
horizontalAccuracy |
protected OffsetDateTime |
lastCollectedDateTime |
protected OffsetDateTime |
lastCollectedDateTimeUtc |
protected Double |
latitude |
protected Double |
longitude |
protected String |
odataType |
protected Double |
speed |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
protected Double |
verticalAccuracy |
| Modifier | Constructor and Description |
|---|---|
protected |
DeviceGeoLocation() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceGeoLocation.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<Double> |
getAltitude()
“Altitude, given in meters above sea level”
|
Optional<Double> |
getHeading()
“Heading in degrees from true north”
|
Optional<Double> |
getHorizontalAccuracy()
“Accuracy of longitude and latitude in meters”
|
Optional<OffsetDateTime> |
getLastCollectedDateTime()
“Time at which location was recorded, relative to UTC”
|
Optional<OffsetDateTime> |
getLastCollectedDateTimeUtc()
“Time at which location was recorded, relative to UTC”
|
Optional<Double> |
getLatitude()
“Latitude coordinate of the device's location”
|
Optional<Double> |
getLongitude()
“Longitude coordinate of the device's location”
|
Optional<Double> |
getSpeed()
“Speed the device is traveling in meters per second”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
Optional<Double> |
getVerticalAccuracy()
“Accuracy of altitude in meters”
|
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
DeviceGeoLocation |
withAltitude(Double altitude)
Returns an immutable copy of
this with just the altitude field
changed. |
DeviceGeoLocation |
withHeading(Double heading)
Returns an immutable copy of
this with just the heading field
changed. |
DeviceGeoLocation |
withHorizontalAccuracy(Double horizontalAccuracy)
Returns an immutable copy of
this with just the horizontalAccuracy field changed. |
DeviceGeoLocation |
withLastCollectedDateTime(OffsetDateTime lastCollectedDateTime)
Returns an immutable copy of
this with just the lastCollectedDateTime field changed. |
DeviceGeoLocation |
withLastCollectedDateTimeUtc(OffsetDateTime lastCollectedDateTimeUtc)
Returns an immutable copy of
this with just the lastCollectedDateTimeUtc field changed. |
DeviceGeoLocation |
withLatitude(Double latitude)
Returns an immutable copy of
this with just the latitude field
changed. |
DeviceGeoLocation |
withLongitude(Double longitude)
Returns an immutable copy of
this with just the longitude field
changed. |
DeviceGeoLocation |
withSpeed(Double speed)
Returns an immutable copy of
this with just the speed field
changed. |
DeviceGeoLocation |
withVerticalAccuracy(Double verticalAccuracy)
Returns an immutable copy of
this with just the verticalAccuracy
field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected OffsetDateTime lastCollectedDateTimeUtc
protected OffsetDateTime lastCollectedDateTime
protected Double longitude
protected Double latitude
protected Double altitude
protected Double horizontalAccuracy
protected Double verticalAccuracy
protected Double heading
protected Double speed
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<OffsetDateTime> getLastCollectedDateTimeUtc()
public DeviceGeoLocation withLastCollectedDateTimeUtc(OffsetDateTime lastCollectedDateTimeUtc)
this with just the lastCollectedDateTimeUtc field changed. Field description below. The field name
is also added to an internal map of changed fields in the returned object so
that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
“Time at which location was recorded, relative to UTC”
lastCollectedDateTimeUtc - new value of lastCollectedDateTimeUtc field (as defined in service metadata)this with just the lastCollectedDateTimeUtc field changedpublic Optional<OffsetDateTime> getLastCollectedDateTime()
public DeviceGeoLocation withLastCollectedDateTime(OffsetDateTime lastCollectedDateTime)
this with just the lastCollectedDateTime field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.patch() is called (if available)on the returned object only
the changed fields are submitted.
“Time at which location was recorded, relative to UTC”
lastCollectedDateTime - new value of lastCollectedDateTime field (as defined in service metadata)this with just the lastCollectedDateTime field changedpublic Optional<Double> getLongitude()
public DeviceGeoLocation withLongitude(Double longitude)
this with just the longitude field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Longitude coordinate of the device's location”
longitude - new value of longitude field (as defined in service metadata)this with just the longitude field changedpublic Optional<Double> getLatitude()
public DeviceGeoLocation withLatitude(Double latitude)
this with just the latitude field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Latitude coordinate of the device's location”
latitude - new value of latitude field (as defined in service metadata)this with just the latitude field changedpublic Optional<Double> getAltitude()
public DeviceGeoLocation withAltitude(Double altitude)
this with just the altitude field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Altitude, given in meters above sea level”
altitude - new value of altitude field (as defined in service metadata)this with just the altitude field changedpublic Optional<Double> getHorizontalAccuracy()
public DeviceGeoLocation withHorizontalAccuracy(Double horizontalAccuracy)
this with just the horizontalAccuracy field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.patch() is called (if available)on the returned object only
the changed fields are submitted.
“Accuracy of longitude and latitude in meters”
horizontalAccuracy - new value of horizontalAccuracy field (as defined in service metadata)this with just the horizontalAccuracy field changedpublic Optional<Double> getVerticalAccuracy()
public DeviceGeoLocation withVerticalAccuracy(Double verticalAccuracy)
this with just the verticalAccuracy
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Accuracy of altitude in meters”
verticalAccuracy - new value of verticalAccuracy field (as defined in service metadata)this with just the verticalAccuracy field changedpublic Optional<Double> getHeading()
public DeviceGeoLocation withHeading(Double heading)
this with just the heading field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Heading in degrees from true north”
heading - new value of heading field (as defined in service metadata)this with just the heading field changedpublic Optional<Double> getSpeed()
public DeviceGeoLocation withSpeed(Double speed)
this with just the speed field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Speed the device is traveling in meters per second”
speed - new value of speed field (as defined in service metadata)this with just the speed field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static DeviceGeoLocation.Builder builder()
Copyright © 2018–2020. All rights reserved.