Class 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”
    • Field Detail

      • description

        protected String description
      • displayName

        protected String displayName
      • isAssigned

        protected Boolean isAssigned
      • roleScopeTagIds

        protected List<String> roleScopeTagIds
      • roleScopeTagIdsNextLink

        protected String roleScopeTagIdsNextLink
      • templateId

        protected String templateId
    • Constructor Detail

      • DeviceManagementIntent

        protected DeviceManagementIntent()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getDescription

        public Optional<String> getDescription()
        “The user given description”
        Returns:
        property description
      • withDescription

        public DeviceManagementIntent withDescription​(String description)
        Returns an immutable copy of this with just the description field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The user given description”

        Parameters:
        description - new value of description field (as defined in service metadata)
        Returns:
        immutable copy of this with just the description field changed
      • getDisplayName

        public Optional<String> getDisplayName()
        “The user given display name”
        Returns:
        property displayName
      • withDisplayName

        public DeviceManagementIntent withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The user given display name”

        Parameters:
        displayName - new value of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field 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 of this with just the isAssigned field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of isAssigned field (as defined in service metadata)
        Returns:
        immutable copy of this with just the isAssigned field 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 of this with just the lastModifiedDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field 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 of this with just the roleScopeTagIds field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of roleScopeTagIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the roleScopeTagIds field 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 of this with just the templateId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of templateId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the templateId field changed
      • 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
      • 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
      • 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:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public DeviceManagementIntent patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DeviceManagementIntent put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • 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)