Package odata.msgraph.client.beta.entity
Class ManagementCondition
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ManagementCondition
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
LocationManagementCondition,NetworkManagementCondition
public class ManagementCondition extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Management conditions are events that can be triggered dynamically such as geo- fences, time-fences, and network-fences.”
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DevicePlatformType>applicablePlatformsprotected StringapplicablePlatformsNextLinkprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected StringeTagprotected OffsetDateTimemodifiedDateTimeprotected StringuniqueName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagementCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType>getApplicablePlatforms()“The applicable platforms for this management condition.”com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType>getApplicablePlatforms(com.github.davidmoten.odata.client.HttpRequestOptions options)“The applicable platforms for this management condition.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The time the management condition was created.Optional<String>getDescription()“The admin defined description of the management condition.”Optional<String>getDisplayName()“The admin defined name of the management condition.”Optional<String>getETag()“ETag of the management condition.ManagementConditionStatementCollectionRequestgetManagementConditionStatements()“The management condition statements associated to the management condition.”Optional<OffsetDateTime>getModifiedDateTime()“The time the management condition was last modified.Optional<String>getUniqueName()“Unique name for the management condition.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ManagementConditionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ManagementConditionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ManagementConditionwithApplicablePlatforms(List<DevicePlatformType> applicablePlatforms)Returns an immutable copy ofthiswith just theapplicablePlatformsfield changed.ManagementConditionwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.ManagementConditionwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.ManagementConditionwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.ManagementConditionwithETag(String eTag)Returns an immutable copy ofthiswith just theeTagfield changed.ManagementConditionwithModifiedDateTime(OffsetDateTime modifiedDateTime)Returns an immutable copy ofthiswith just themodifiedDateTimefield changed.ManagementConditionwithUniqueName(String uniqueName)Returns an immutable copy ofthiswith just theuniqueNamefield changed.ManagementConditionwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
applicablePlatforms
protected List<DevicePlatformType> applicablePlatforms
-
applicablePlatformsNextLink
protected String applicablePlatformsNextLink
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
eTag
protected String eTag
-
modifiedDateTime
protected OffsetDateTime modifiedDateTime
-
uniqueName
protected String uniqueName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getApplicablePlatforms
public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getApplicablePlatforms()
“The applicable platforms for this management condition.”- Returns:
- property applicablePlatforms
-
withApplicablePlatforms
public ManagementCondition withApplicablePlatforms(List<DevicePlatformType> applicablePlatforms)
Returns an immutable copy ofthiswith just theapplicablePlatformsfield 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.“The applicable platforms for this management condition.”
- Parameters:
applicablePlatforms- new value ofapplicablePlatformsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theapplicablePlatformsfield changed
-
getApplicablePlatforms
public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getApplicablePlatforms(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The applicable platforms for this management condition.”- Parameters:
options- specify connect and read timeouts- Returns:
- property applicablePlatforms
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The time the management condition was created. Generated service side.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public ManagementCondition withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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.“The time the management condition was created. Generated service side.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“The admin defined description of the management condition.”- Returns:
- property description
-
withDescription
public ManagementCondition withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“The admin defined description of the management condition.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The admin defined name of the management condition.”- Returns:
- property displayName
-
withDisplayName
public ManagementCondition withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“The admin defined name of the management condition.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getETag
public Optional<String> getETag()
“ETag of the management condition. Updated service side.”- Returns:
- property eTag
-
withETag
public ManagementCondition withETag(String eTag)
Returns an immutable copy ofthiswith just theeTagfield 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.“ETag of the management condition. Updated service side.”
- Parameters:
eTag- new value ofeTagfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theeTagfield changed
-
getModifiedDateTime
public Optional<OffsetDateTime> getModifiedDateTime()
“The time the management condition was last modified. Updated service side.”- Returns:
- property modifiedDateTime
-
withModifiedDateTime
public ManagementCondition withModifiedDateTime(OffsetDateTime modifiedDateTime)
Returns an immutable copy ofthiswith just themodifiedDateTimefield 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.“The time the management condition was last modified. Updated service side.”
- Parameters:
modifiedDateTime- new value ofmodifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodifiedDateTimefield changed
-
getUniqueName
public Optional<String> getUniqueName()
“Unique name for the management condition. Used in management condition expressions.”- Returns:
- property uniqueName
-
withUniqueName
public ManagementCondition withUniqueName(String uniqueName)
Returns an immutable copy ofthiswith just theuniqueNamefield 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.“Unique name for the management condition. Used in management condition expressions.”
- Parameters:
uniqueName- new value ofuniqueNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuniqueNamefield changed
-
withUnmappedField
public ManagementCondition withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getManagementConditionStatements
public ManagementConditionStatementCollectionRequest getManagementConditionStatements()
“The management condition statements associated to the management condition.”- Returns:
- navigational property managementConditionStatements
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ManagementCondition patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ManagementCondition put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-