Package odata.msgraph.client.beta.entity
Class DeviceCompliancePolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceCompliancePolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidCompliancePolicy,AndroidDeviceOwnerCompliancePolicy,AndroidForWorkCompliancePolicy,AndroidWorkProfileCompliancePolicy,AospDeviceOwnerCompliancePolicy,DefaultDeviceCompliancePolicy,IosCompliancePolicy,MacOSCompliancePolicy,Windows10CompliancePolicy,Windows10MobileCompliancePolicy,Windows81CompliancePolicy,WindowsPhone81CompliancePolicy
public class DeviceCompliancePolicy extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here.”
-
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceCompliancePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceCompliancePolicyAssignment>assign(List<DeviceCompliancePolicyAssignment> assignments)DeviceCompliancePolicyAssignmentCollectionRequestgetAssignments()“The collection of assignments for this compliance policy.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“DateTime the object was created.”Optional<String>getDescription()“Admin provided description of the Device Configuration.”SettingStateDeviceSummaryCollectionRequestgetDeviceSettingStateSummaries()“Compliance Setting State Device Summary”DeviceComplianceDeviceStatusCollectionRequestgetDeviceStatuses()“List of DeviceComplianceDeviceStatus.”DeviceComplianceDeviceOverviewRequestgetDeviceStatusOverview()“Device compliance devices status overview”Optional<String>getDisplayName()“Admin provided name of the device configuration.”Optional<OffsetDateTime>getLastModifiedDateTime()“DateTime the object was last modified.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“List of Scope Tags for this Entity instance.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Scope Tags for this Entity instance.”DeviceComplianceScheduledActionForRuleCollectionRequestgetScheduledActionsForRule()“The list of scheduled action per rule for this compliance policy.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()DeviceComplianceUserStatusCollectionRequestgetUserStatuses()“List of DeviceComplianceUserStatus.”DeviceComplianceUserOverviewRequestgetUserStatusOverview()“Device compliance users status overview”Optional<Integer>getVersion()“Version of the device configuration.”StringodataTypeName()DeviceCompliancePolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceCompliancePolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnscheduleActionsForRules(List<DeviceComplianceScheduledActionForRule> deviceComplianceScheduledActionForRules)StringtoString()DeviceCompliancePolicywithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceCompliancePolicywithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceCompliancePolicywithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceCompliancePolicywithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceCompliancePolicywithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceCompliancePolicywithUnmappedField(String name, String value)DeviceCompliancePolicywithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
version
protected Integer version
-
-
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
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“DateTime the object was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceCompliancePolicy 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.“DateTime the object was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“Admin provided description of the Device Configuration.”- Returns:
- property description
-
withDescription
public DeviceCompliancePolicy 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.“Admin provided description of the Device Configuration.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Admin provided name of the device configuration.”- Returns:
- property displayName
-
withDisplayName
public DeviceCompliancePolicy 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.“Admin provided name of the device configuration.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“DateTime the object was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceCompliancePolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“DateTime the object was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tags for this Entity instance.”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public DeviceCompliancePolicy withRoleScopeTagIds(List<String> roleScopeTagIds)
Returns an immutable copy ofthiswith just theroleScopeTagIdsfield 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.“List of Scope Tags for this Entity instance.”
- Parameters:
roleScopeTagIds- new value ofroleScopeTagIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroleScopeTagIdsfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of Scope Tags for this Entity instance.”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTagIds
-
getVersion
public Optional<Integer> getVersion()
“Version of the device configuration.”- Returns:
- property version
-
withVersion
public DeviceCompliancePolicy withVersion(Integer version)
Returns an immutable copy ofthiswith just theversionfield 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.“Version of the device configuration.”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DeviceCompliancePolicy withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceCompliancePolicyAssignmentCollectionRequest getAssignments()
“The collection of assignments for this compliance policy.”- Returns:
- navigational property assignments
-
getDeviceSettingStateSummaries
public SettingStateDeviceSummaryCollectionRequest getDeviceSettingStateSummaries()
“Compliance Setting State Device Summary”- Returns:
- navigational property deviceSettingStateSummaries
-
getDeviceStatuses
public DeviceComplianceDeviceStatusCollectionRequest getDeviceStatuses()
“List of DeviceComplianceDeviceStatus.”- Returns:
- navigational property deviceStatuses
-
getDeviceStatusOverview
public DeviceComplianceDeviceOverviewRequest getDeviceStatusOverview()
“Device compliance devices status overview”- Returns:
- navigational property deviceStatusOverview
-
getScheduledActionsForRule
public DeviceComplianceScheduledActionForRuleCollectionRequest getScheduledActionsForRule()
“The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.”- Returns:
- navigational property scheduledActionsForRule
-
getUserStatuses
public DeviceComplianceUserStatusCollectionRequest getUserStatuses()
“List of DeviceComplianceUserStatus.”- Returns:
- navigational property userStatuses
-
getUserStatusOverview
public DeviceComplianceUserOverviewRequest getUserStatusOverview()
“Device compliance users status overview”- Returns:
- navigational property userStatusOverview
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceCompliancePolicy patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceCompliancePolicy put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
assign
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceCompliancePolicyAssignment> assign(List<DeviceCompliancePolicyAssignment> assignments)
-
scheduleActionsForRules
public com.github.davidmoten.odata.client.ActionRequestNoReturn scheduleActionsForRules(List<DeviceComplianceScheduledActionForRule> deviceComplianceScheduledActionForRules)
-
-