Package odata.msgraph.client.complex
Class DeviceGeoLocation
- java.lang.Object
-
- odata.msgraph.client.complex.DeviceGeoLocation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceGeoLocation extends Object implements com.github.davidmoten.odata.client.ODataType
“Device location”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceGeoLocation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Doublealtitudeprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Doubleheadingprotected DoublehorizontalAccuracyprotected OffsetDateTimelastCollectedDateTimeprotected Doublelatitudeprotected Doublelongitudeprotected StringodataTypeprotected Doublespeedprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected DoubleverticalAccuracy
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceGeoLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceGeoLocation.Builderbuilder()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<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.UnmappedFieldsgetUnmappedFields()Optional<Double>getVerticalAccuracy()“Accuracy of altitude in meters”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceGeoLocationwithAltitude(Double altitude)Returns an immutable copy ofthiswith just thealtitudefield changed.DeviceGeoLocationwithHeading(Double heading)Returns an immutable copy ofthiswith just theheadingfield changed.DeviceGeoLocationwithHorizontalAccuracy(Double horizontalAccuracy)Returns an immutable copy ofthiswith just thehorizontalAccuracyfield changed.DeviceGeoLocationwithLastCollectedDateTime(OffsetDateTime lastCollectedDateTime)Returns an immutable copy ofthiswith just thelastCollectedDateTimefield changed.DeviceGeoLocationwithLatitude(Double latitude)Returns an immutable copy ofthiswith just thelatitudefield changed.DeviceGeoLocationwithLongitude(Double longitude)Returns an immutable copy ofthiswith just thelongitudefield changed.DeviceGeoLocationwithSpeed(Double speed)Returns an immutable copy ofthiswith just thespeedfield changed.DeviceGeoLocationwithUnmappedField(String name, Object value)DeviceGeoLocationwithVerticalAccuracy(Double verticalAccuracy)Returns an immutable copy ofthiswith just theverticalAccuracyfield changed.
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
altitude
protected Double altitude
-
heading
protected Double heading
-
horizontalAccuracy
protected Double horizontalAccuracy
-
lastCollectedDateTime
protected OffsetDateTime lastCollectedDateTime
-
latitude
protected Double latitude
-
longitude
protected Double longitude
-
speed
protected Double speed
-
verticalAccuracy
protected Double verticalAccuracy
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAltitude
public Optional<Double> getAltitude()
“Altitude, given in meters above sea level”- Returns:
- property altitude
-
withAltitude
public DeviceGeoLocation withAltitude(Double altitude)
Returns an immutable copy ofthiswith just thealtitudefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Altitude, given in meters above sea level”
- Parameters:
altitude- new value ofaltitudefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thealtitudefield changed
-
getHeading
public Optional<Double> getHeading()
“Heading in degrees from true north”- Returns:
- property heading
-
withHeading
public DeviceGeoLocation withHeading(Double heading)
Returns an immutable copy ofthiswith just theheadingfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Heading in degrees from true north”
- Parameters:
heading- new value ofheadingfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theheadingfield changed
-
getHorizontalAccuracy
public Optional<Double> getHorizontalAccuracy()
“Accuracy of longitude and latitude in meters”- Returns:
- property horizontalAccuracy
-
withHorizontalAccuracy
public DeviceGeoLocation withHorizontalAccuracy(Double horizontalAccuracy)
Returns an immutable copy ofthiswith just thehorizontalAccuracyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Accuracy of longitude and latitude in meters”
- Parameters:
horizontalAccuracy- new value ofhorizontalAccuracyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehorizontalAccuracyfield changed
-
getLastCollectedDateTime
public Optional<OffsetDateTime> getLastCollectedDateTime()
“Time at which location was recorded, relative to UTC”- Returns:
- property lastCollectedDateTime
-
withLastCollectedDateTime
public DeviceGeoLocation withLastCollectedDateTime(OffsetDateTime lastCollectedDateTime)
Returns an immutable copy ofthiswith just thelastCollectedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Time at which location was recorded, relative to UTC”
- Parameters:
lastCollectedDateTime- new value oflastCollectedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastCollectedDateTimefield changed
-
getLatitude
public Optional<Double> getLatitude()
“Latitude coordinate of the device's location”- Returns:
- property latitude
-
withLatitude
public DeviceGeoLocation withLatitude(Double latitude)
Returns an immutable copy ofthiswith just thelatitudefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Latitude coordinate of the device's location”
- Parameters:
latitude- new value oflatitudefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelatitudefield changed
-
getLongitude
public Optional<Double> getLongitude()
“Longitude coordinate of the device's location”- Returns:
- property longitude
-
withLongitude
public DeviceGeoLocation withLongitude(Double longitude)
Returns an immutable copy ofthiswith just thelongitudefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Longitude coordinate of the device's location”
- Parameters:
longitude- new value oflongitudefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelongitudefield changed
-
getSpeed
public Optional<Double> getSpeed()
“Speed the device is traveling in meters per second”- Returns:
- property speed
-
withSpeed
public DeviceGeoLocation withSpeed(Double speed)
Returns an immutable copy ofthiswith just thespeedfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Speed the device is traveling in meters per second”
- Parameters:
speed- new value ofspeedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thespeedfield changed
-
getVerticalAccuracy
public Optional<Double> getVerticalAccuracy()
“Accuracy of altitude in meters”- Returns:
- property verticalAccuracy
-
withVerticalAccuracy
public DeviceGeoLocation withVerticalAccuracy(Double verticalAccuracy)
Returns an immutable copy ofthiswith just theverticalAccuracyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Accuracy of altitude in meters”
- Parameters:
verticalAccuracy- new value ofverticalAccuracyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theverticalAccuracyfield changed
-
withUnmappedField
public DeviceGeoLocation withUnmappedField(String name, Object value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static DeviceGeoLocation.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-