Class DeviceManagementCompliancePolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementCompliancePolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementCompliancePolicy extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Device Management Compliance Policy”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementCompliancePolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected StringcreationSourceprotected Stringdescriptionprotected BooleanisAssignedprotected OffsetDateTimelastModifiedDateTimeprotected Stringnameprotected DeviceManagementConfigurationPlatformsplatformsprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected IntegersettingCountprotected DeviceManagementConfigurationTechnologiestechnologies-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementCompliancePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceManagementConfigurationPolicyAssignment>assign(List<DeviceManagementConfigurationPolicyAssignment> assignments)static DeviceManagementCompliancePolicy.BuilderbuilderDeviceManagementCompliancePolicy()Returns a builder which is used to create a new instance of this class (given that this class is immutable).DeviceManagementConfigurationPolicyAssignmentCollectionRequestgetAssignments()“Policy assignments”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“Policy creation date and time.Optional<String>getCreationSource()“Policy creation source”Optional<String>getDescription()“Policy description”Optional<Boolean>getIsAssigned()“Policy assignment status.Optional<OffsetDateTime>getLastModifiedDateTime()“Policy last modification date and time.Optional<String>getName()“Policy name”Optional<DeviceManagementConfigurationPlatforms>getPlatforms()“Platforms for this policy”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.”DeviceManagementComplianceScheduledActionForRuleCollectionRequestgetScheduledActionsForRule()“The list of scheduled action for this rule”Optional<Integer>getSettingCount()“Number of settings.DeviceManagementConfigurationSettingCollectionRequestgetSettings()“Policy settings”Optional<DeviceManagementConfigurationTechnologies>getTechnologies()“Technologies for this policy”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementCompliancePolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementCompliancePolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceManagementComplianceScheduledActionForRule>setScheduledActions(List<DeviceManagementComplianceScheduledActionForRule> scheduledActions)StringtoString()DeviceManagementCompliancePolicywithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceManagementCompliancePolicywithCreationSource(String creationSource)Returns an immutable copy ofthiswith just thecreationSourcefield changed.DeviceManagementCompliancePolicywithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementCompliancePolicywithIsAssigned(Boolean isAssigned)Returns an immutable copy ofthiswith just theisAssignedfield changed.DeviceManagementCompliancePolicywithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceManagementCompliancePolicywithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.DeviceManagementCompliancePolicywithPlatforms(DeviceManagementConfigurationPlatforms platforms)Returns an immutable copy ofthiswith just theplatformsfield changed.DeviceManagementCompliancePolicywithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceManagementCompliancePolicywithSettingCount(Integer settingCount)Returns an immutable copy ofthiswith just thesettingCountfield changed.DeviceManagementCompliancePolicywithTechnologies(DeviceManagementConfigurationTechnologies technologies)Returns an immutable copy ofthiswith just thetechnologiesfield changed.DeviceManagementCompliancePolicywithUnmappedField(String name, String value)
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
creationSource
protected String creationSource
-
description
protected String description
-
isAssigned
protected Boolean isAssigned
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
name
protected String name
-
platforms
protected DeviceManagementConfigurationPlatforms platforms
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
settingCount
protected Integer settingCount
-
technologies
protected DeviceManagementConfigurationTechnologies technologies
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementCompliancePolicy
public static DeviceManagementCompliancePolicy.Builder builderDeviceManagementCompliancePolicy()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Policy creation date and time. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceManagementCompliancePolicy 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.“Policy creation date and time. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getCreationSource
public Optional<String> getCreationSource()
“Policy creation source”- Returns:
- property creationSource
-
withCreationSource
public DeviceManagementCompliancePolicy withCreationSource(String creationSource)
Returns an immutable copy ofthiswith just thecreationSourcefield 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.“Policy creation source”
- Parameters:
creationSource- new value ofcreationSourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreationSourcefield changed
-
getDescription
public Optional<String> getDescription()
“Policy description”- Returns:
- property description
-
withDescription
public DeviceManagementCompliancePolicy 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.“Policy description”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getIsAssigned
public Optional<Boolean> getIsAssigned()
“Policy assignment status. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property isAssigned
-
withIsAssigned
public DeviceManagementCompliancePolicy withIsAssigned(Boolean isAssigned)
Returns an immutable copy ofthiswith just theisAssignedfield 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.“Policy assignment status. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
isAssigned- new value ofisAssignedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisAssignedfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Policy last modification date and time. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceManagementCompliancePolicy 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.“Policy last modification date and time. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
withName
public DeviceManagementCompliancePolicy withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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.“Policy name”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getPlatforms
public Optional<DeviceManagementConfigurationPlatforms> getPlatforms()
“Platforms for this policy”- Returns:
- property platforms
-
withPlatforms
public DeviceManagementCompliancePolicy withPlatforms(DeviceManagementConfigurationPlatforms platforms)
Returns an immutable copy ofthiswith just theplatformsfield 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.“Platforms for this policy”
- Parameters:
platforms- new value ofplatformsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformsfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tags for this Entity instance.”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public DeviceManagementCompliancePolicy 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
-
getSettingCount
public Optional<Integer> getSettingCount()
“Number of settings. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property settingCount
-
withSettingCount
public DeviceManagementCompliancePolicy withSettingCount(Integer settingCount)
Returns an immutable copy ofthiswith just thesettingCountfield 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.“Number of settings. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
settingCount- new value ofsettingCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingCountfield changed
-
getTechnologies
public Optional<DeviceManagementConfigurationTechnologies> getTechnologies()
“Technologies for this policy”- Returns:
- property technologies
-
withTechnologies
public DeviceManagementCompliancePolicy withTechnologies(DeviceManagementConfigurationTechnologies technologies)
Returns an immutable copy ofthiswith just thetechnologiesfield 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.“Technologies for this policy”
- Parameters:
technologies- new value oftechnologiesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetechnologiesfield changed
-
withUnmappedField
public DeviceManagementCompliancePolicy withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceManagementConfigurationPolicyAssignmentCollectionRequest getAssignments()
“Policy assignments”- Returns:
- navigational property assignments
-
getScheduledActionsForRule
public DeviceManagementComplianceScheduledActionForRuleCollectionRequest getScheduledActionsForRule()
“The list of scheduled action for this rule”- Returns:
- navigational property scheduledActionsForRule
-
getSettings
public DeviceManagementConfigurationSettingCollectionRequest getSettings()
“Policy settings”- Returns:
- navigational property settings
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementCompliancePolicy patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementCompliancePolicy 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<DeviceManagementConfigurationPolicyAssignment> assign(List<DeviceManagementConfigurationPolicyAssignment> assignments)
-
setScheduledActions
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceManagementComplianceScheduledActionForRule> setScheduledActions(List<DeviceManagementComplianceScheduledActionForRule> scheduledActions)
-
-