Class DeviceManagementUserRightsSetting

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class DeviceManagementUserRightsSetting
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Represents a user rights setting.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • localUsersOrGroupsNextLink

        protected String localUsersOrGroupsNextLink
    • Constructor Detail

      • DeviceManagementUserRightsSetting

        protected DeviceManagementUserRightsSetting()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getLocalUsersOrGroups

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementUserRightsLocalUserOrGroup> getLocalUsersOrGroups()
        “Representing a collection of local users or groups which will be set on device if the state of this setting is Allowed. This collection can contain a maximum of 500 elements.”
        Returns:
        property localUsersOrGroups
      • getLocalUsersOrGroups

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementUserRightsLocalUserOrGroup> getLocalUsersOrGroups​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Representing a collection of local users or groups which will be set on device if the state of this setting is Allowed. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property localUsersOrGroups
      • getState

        public Optional<StateManagementSetting> getState()
        “Representing the current state of this user rights setting”
        Returns:
        property state
      • withState

        public DeviceManagementUserRightsSetting withState​(StateManagementSetting state)
        Returns an immutable copy of this with just the state 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.

        “Representing the current state of this user rights setting”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

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

        public static DeviceManagementUserRightsSetting.Builder builder()
        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