Class CircularGeofenceManagementCondition

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

    public class CircularGeofenceManagementCondition
    extends LocationManagementCondition
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains the information to define a circular geo-fence management condition, an area of interest, to monitor.”
    • Field Detail

      • latitude

        protected Double latitude
      • longitude

        protected Double longitude
      • radiusInMeters

        protected Float radiusInMeters
    • Constructor Detail

      • CircularGeofenceManagementCondition

        protected CircularGeofenceManagementCondition()
    • Method Detail

      • builderCircularGeofenceManagementCondition

        public static CircularGeofenceManagementCondition.Builder builderCircularGeofenceManagementCondition()
        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
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class LocationManagementCondition
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class LocationManagementCondition
      • getLatitude

        public Optional<Double> getLatitude()
        “Latitude in degrees, between -90 and +90 inclusive.”
        Returns:
        property latitude
      • withLatitude

        public CircularGeofenceManagementCondition 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 in degrees, between -90 and +90 inclusive.”

        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 in degrees, between -180 and +180 inclusive.”
        Returns:
        property longitude
      • withLongitude

        public CircularGeofenceManagementCondition 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 in degrees, between -180 and +180 inclusive.”

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

        public Optional<Float> getRadiusInMeters()
        “Radius in meters.”
        Returns:
        property radiusInMeters
      • withRadiusInMeters

        public CircularGeofenceManagementCondition withRadiusInMeters​(Float radiusInMeters)
        Returns an immutable copy of this with just the radiusInMeters 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.

        “Radius in meters.”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class LocationManagementCondition
      • patch

        public CircularGeofenceManagementCondition patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class LocationManagementCondition
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public CircularGeofenceManagementCondition put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class LocationManagementCondition
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected