Package odata.msgraph.client.beta.entity
Class CircularGeofenceManagementCondition
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ManagementCondition
-
- odata.msgraph.client.beta.entity.LocationManagementCondition
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCircularGeofenceManagementCondition.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Doublelatitudeprotected Doublelongitudeprotected FloatradiusInMeters-
Fields inherited from class odata.msgraph.client.beta.entity.ManagementCondition
applicablePlatforms, applicablePlatformsNextLink, createdDateTime, description, displayName, eTag, modifiedDateTime, uniqueName
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCircularGeofenceManagementCondition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CircularGeofenceManagementCondition.BuilderbuilderCircularGeofenceManagementCondition()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Double>getLatitude()“Latitude in degrees, between -90 and +90 inclusive.”Optional<Double>getLongitude()“Longitude in degrees, between -180 and +180 inclusive.”Optional<Float>getRadiusInMeters()“Radius in meters.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()CircularGeofenceManagementConditionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)CircularGeofenceManagementConditionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()CircularGeofenceManagementConditionwithLatitude(Double latitude)Returns an immutable copy ofthiswith just thelatitudefield changed.CircularGeofenceManagementConditionwithLongitude(Double longitude)Returns an immutable copy ofthiswith just thelongitudefield changed.CircularGeofenceManagementConditionwithRadiusInMeters(Float radiusInMeters)Returns an immutable copy ofthiswith just theradiusInMetersfield changed.CircularGeofenceManagementConditionwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.ManagementCondition
getApplicablePlatforms, getApplicablePlatforms, getCreatedDateTime, getDescription, getDisplayName, getETag, getManagementConditionStatements, getModifiedDateTime, getUniqueName, withApplicablePlatforms, withCreatedDateTime, withDescription, withDisplayName, withETag, withModifiedDateTime, withUniqueName
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classLocationManagementCondition
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classLocationManagementCondition
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classLocationManagementCondition
-
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 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 in degrees, between -90 and +90 inclusive.”
- Parameters:
latitude- new value oflatitudefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelatitudefield 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 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 in degrees, between -180 and +180 inclusive.”
- Parameters:
longitude- new value oflongitudefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelongitudefield changed
-
getRadiusInMeters
public Optional<Float> getRadiusInMeters()
“Radius in meters.”- Returns:
- property radiusInMeters
-
withRadiusInMeters
public CircularGeofenceManagementCondition withRadiusInMeters(Float radiusInMeters)
Returns an immutable copy ofthiswith just theradiusInMetersfield 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.“Radius in meters.”
- Parameters:
radiusInMeters- new value ofradiusInMetersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theradiusInMetersfield changed
-
withUnmappedField
public CircularGeofenceManagementCondition withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classLocationManagementCondition
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classLocationManagementCondition
-
patch
public CircularGeofenceManagementCondition patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classLocationManagementCondition- Returns:
- a copy of
thiswith 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 ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classLocationManagementCondition- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classLocationManagementCondition
-
-