Package odata.msgraph.client.beta.entity
Class DeviceManagementConfigurationPolicy
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementConfigurationPolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementConfigurationPolicy extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Device Management Configuration Policy”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementConfigurationPolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected StringcreationSourceprotected Stringdescriptionprotected BooleanisAssignedprotected OffsetDateTimelastModifiedDateTimeprotected Stringnameprotected DeviceManagementConfigurationPlatformsplatformsprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected IntegersettingCountprotected DeviceManagementConfigurationTechnologiestechnologiesprotected DeviceManagementConfigurationPolicyTemplateReferencetemplateReference-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementConfigurationPolicy()
-
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 DeviceManagementConfigurationPolicy.BuilderbuilderDeviceManagementConfigurationPolicy()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.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementConfigurationPolicy>createCopy(String displayName, String description)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.”Optional<Integer>getSettingCount()“Number of settings”DeviceManagementConfigurationSettingCollectionRequestgetSettings()“Policy settings”Optional<DeviceManagementConfigurationTechnologies>getTechnologies()“Technologies for this policy”Optional<DeviceManagementConfigurationPolicyTemplateReference>getTemplateReference()“Template reference information”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementConfigurationPolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementConfigurationPolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementConfigurationPolicywithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceManagementConfigurationPolicywithCreationSource(String creationSource)Returns an immutable copy ofthiswith just thecreationSourcefield changed.DeviceManagementConfigurationPolicywithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementConfigurationPolicywithIsAssigned(Boolean isAssigned)Returns an immutable copy ofthiswith just theisAssignedfield changed.DeviceManagementConfigurationPolicywithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceManagementConfigurationPolicywithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.DeviceManagementConfigurationPolicywithPlatforms(DeviceManagementConfigurationPlatforms platforms)Returns an immutable copy ofthiswith just theplatformsfield changed.DeviceManagementConfigurationPolicywithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceManagementConfigurationPolicywithSettingCount(Integer settingCount)Returns an immutable copy ofthiswith just thesettingCountfield changed.DeviceManagementConfigurationPolicywithTechnologies(DeviceManagementConfigurationTechnologies technologies)Returns an immutable copy ofthiswith just thetechnologiesfield changed.DeviceManagementConfigurationPolicywithTemplateReference(DeviceManagementConfigurationPolicyTemplateReference templateReference)Returns an immutable copy ofthiswith just thetemplateReferencefield changed.DeviceManagementConfigurationPolicywithUnmappedField(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
-
templateReference
protected DeviceManagementConfigurationPolicyTemplateReference templateReference
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementConfigurationPolicy
public static DeviceManagementConfigurationPolicy.Builder builderDeviceManagementConfigurationPolicy()
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”- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceManagementConfigurationPolicy 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”
- 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 DeviceManagementConfigurationPolicy 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 DeviceManagementConfigurationPolicy 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 DeviceManagementConfigurationPolicy 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”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceManagementConfigurationPolicy 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”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
withName
public DeviceManagementConfigurationPolicy 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 DeviceManagementConfigurationPolicy 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 DeviceManagementConfigurationPolicy 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”- Returns:
- property settingCount
-
withSettingCount
public DeviceManagementConfigurationPolicy 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”
- 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 DeviceManagementConfigurationPolicy 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
-
getTemplateReference
public Optional<DeviceManagementConfigurationPolicyTemplateReference> getTemplateReference()
“Template reference information”- Returns:
- property templateReference
-
withTemplateReference
public DeviceManagementConfigurationPolicy withTemplateReference(DeviceManagementConfigurationPolicyTemplateReference templateReference)
Returns an immutable copy ofthiswith just thetemplateReferencefield 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.“Template reference information”
- Parameters:
templateReference- new value oftemplateReferencefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetemplateReferencefield changed
-
withUnmappedField
public DeviceManagementConfigurationPolicy withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceManagementConfigurationPolicyAssignmentCollectionRequest getAssignments()
“Policy assignments”- Returns:
- navigational property assignments
-
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 DeviceManagementConfigurationPolicy patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementConfigurationPolicy 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)
-
createCopy
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementConfigurationPolicy> createCopy(String displayName, String description)
-
-