Package odata.msgraph.client.beta.entity
Class DeviceManagementIntent
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementIntent
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementIntent extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that represents an intent to apply settings to a device”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementIntent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected StringdisplayNameprotected BooleanisAssignedprotected OffsetDateTimelastModifiedDateTimeprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected StringtemplateId-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementIntent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnassign(List<DeviceManagementIntentAssignment> assignments)static DeviceManagementIntent.BuilderbuilderDeviceManagementIntent()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.CollectionPageNonEntityRequest<DeviceManagementSettingComparison>compare(String templateId)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementIntent>createCopy(String displayName)DeviceManagementIntentAssignmentCollectionRequestgetAssignments()“Collection of assignments”DeviceManagementIntentSettingCategoryCollectionRequestgetCategories()“Collection of setting categories within the intent”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDescription()“The user given description”DeviceManagementIntentDeviceSettingStateSummaryCollectionRequestgetDeviceSettingStateSummaries()“Collection of settings and their states and counts of devices that belong to corresponding state for all settings within the intent”DeviceManagementIntentDeviceStateCollectionRequestgetDeviceStates()“Collection of states of all devices that the intent is applied to”DeviceManagementIntentDeviceStateSummaryRequestgetDeviceStateSummary()“A summary of device states and counts of devices that belong to corresponding state for all devices that the intent is applied to”Optional<String>getDisplayName()“The user given display name”Optional<Boolean>getIsAssigned()“Signifies whether or not the intent is assigned to users”Optional<OffsetDateTime>getLastModifiedDateTime()“When the intent 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.”DeviceManagementSettingInstanceCollectionRequestgetSettings()“Collection of all settings to be applied”Optional<String>getTemplateId()“The ID of the template this intent was created from (if any)”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()DeviceManagementIntentUserStateCollectionRequestgetUserStates()“Collection of states of all users that the intent is applied to”DeviceManagementIntentUserStateSummaryRequestgetUserStateSummary()“A summary of user states and counts of users that belong to corresponding state for all users that the intent is applied to”com.github.davidmoten.odata.client.ActionRequestNoReturnmigrateToTemplate(String newTemplateId, Boolean preserveCustomValues)StringodataTypeName()DeviceManagementIntentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementIntentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnupdateSettings(List<DeviceManagementSettingInstance> settings)DeviceManagementIntentwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementIntentwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementIntentwithIsAssigned(Boolean isAssigned)Returns an immutable copy ofthiswith just theisAssignedfield changed.DeviceManagementIntentwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceManagementIntentwithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.DeviceManagementIntentwithTemplateId(String templateId)Returns an immutable copy ofthiswith just thetemplateIdfield changed.DeviceManagementIntentwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
description
protected String description
-
displayName
protected String displayName
-
isAssigned
protected Boolean isAssigned
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
templateId
protected String templateId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementIntent
public static DeviceManagementIntent.Builder builderDeviceManagementIntent()
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
-
getDescription
public Optional<String> getDescription()
“The user given description”- Returns:
- property description
-
withDescription
public DeviceManagementIntent 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 user given description”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The user given display name”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementIntent 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 user given display name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getIsAssigned
public Optional<Boolean> getIsAssigned()
“Signifies whether or not the intent is assigned to users”- Returns:
- property isAssigned
-
withIsAssigned
public DeviceManagementIntent 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.“Signifies whether or not the intent is assigned to users”
- Parameters:
isAssigned- new value ofisAssignedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisAssignedfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“When the intent was last modified”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceManagementIntent 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.“When the intent 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 DeviceManagementIntent 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
-
getTemplateId
public Optional<String> getTemplateId()
“The ID of the template this intent was created from (if any)”- Returns:
- property templateId
-
withTemplateId
public DeviceManagementIntent withTemplateId(String templateId)
Returns an immutable copy ofthiswith just thetemplateIdfield 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 ID of the template this intent was created from (if any)”
- Parameters:
templateId- new value oftemplateIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetemplateIdfield changed
-
withUnmappedField
public DeviceManagementIntent withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public DeviceManagementIntentAssignmentCollectionRequest getAssignments()
“Collection of assignments”- Returns:
- navigational property assignments
-
getCategories
public DeviceManagementIntentSettingCategoryCollectionRequest getCategories()
“Collection of setting categories within the intent”- Returns:
- navigational property categories
-
getDeviceSettingStateSummaries
public DeviceManagementIntentDeviceSettingStateSummaryCollectionRequest getDeviceSettingStateSummaries()
“Collection of settings and their states and counts of devices that belong to corresponding state for all settings within the intent”- Returns:
- navigational property deviceSettingStateSummaries
-
getDeviceStates
public DeviceManagementIntentDeviceStateCollectionRequest getDeviceStates()
“Collection of states of all devices that the intent is applied to”- Returns:
- navigational property deviceStates
-
getDeviceStateSummary
public DeviceManagementIntentDeviceStateSummaryRequest getDeviceStateSummary()
“A summary of device states and counts of devices that belong to corresponding state for all devices that the intent is applied to”- Returns:
- navigational property deviceStateSummary
-
getSettings
public DeviceManagementSettingInstanceCollectionRequest getSettings()
“Collection of all settings to be applied”- Returns:
- navigational property settings
-
getUserStates
public DeviceManagementIntentUserStateCollectionRequest getUserStates()
“Collection of states of all users that the intent is applied to”- Returns:
- navigational property userStates
-
getUserStateSummary
public DeviceManagementIntentUserStateSummaryRequest getUserStateSummary()
“A summary of user states and counts of users that belong to corresponding state for all users that the intent is applied to”- Returns:
- navigational property userStateSummary
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementIntent patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementIntent 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.ActionRequestNoReturn assign(List<DeviceManagementIntentAssignment> assignments)
-
createCopy
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementIntent> createCopy(String displayName)
-
migrateToTemplate
public com.github.davidmoten.odata.client.ActionRequestNoReturn migrateToTemplate(String newTemplateId, Boolean preserveCustomValues)
-
updateSettings
public com.github.davidmoten.odata.client.ActionRequestNoReturn updateSettings(List<DeviceManagementSettingInstance> settings)
-
compare
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceManagementSettingComparison> compare(String templateId)
-
-