Class DeviceGeoLocation

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class DeviceGeoLocation
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Device location”
    • 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
    • Constructor Detail

      • DeviceGeoLocation

        protected DeviceGeoLocation()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.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 of 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”

        Parameters:
        altitude - new value of altitude field (as defined in service metadata)
        Returns:
        immutable copy of this with just the altitude field 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 of 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”

        Parameters:
        heading - new value of heading field (as defined in service metadata)
        Returns:
        immutable copy of this with just the heading field 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 of 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”

        Parameters:
        horizontalAccuracy - new value of horizontalAccuracy field (as defined in service metadata)
        Returns:
        immutable copy of this with just the horizontalAccuracy field 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 of 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”

        Parameters:
        lastCollectedDateTime - new value of lastCollectedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastCollectedDateTime field 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 of 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”

        Parameters:
        latitude - new value of latitude field (as defined in service metadata)
        Returns:
        immutable copy of this with just the latitude field 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 of 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”

        Parameters:
        longitude - new value of longitude field (as defined in service metadata)
        Returns:
        immutable copy of this with just the longitude field 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 of 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”

        Parameters:
        speed - new value of speed field (as defined in service metadata)
        Returns:
        immutable copy of this with just the speed field changed
      • getVerticalAccuracy

        public Optional<Double> getVerticalAccuracy()
        “Accuracy of altitude in meters”
        Returns:
        property verticalAccuracy
      • withVerticalAccuracy

        public DeviceGeoLocation withVerticalAccuracy​(Double verticalAccuracy)
        Returns an immutable copy of 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”

        Parameters:
        verticalAccuracy - new value of verticalAccuracy field (as defined in service metadata)
        Returns:
        immutable copy of this with just the verticalAccuracy field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.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