Class DeviceAndAppManagementRoleAssignment

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

    public class DeviceAndAppManagementRoleAssignment
    extends RoleAssignment
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles.”
    • Field Detail

      • membersNextLink

        protected String membersNextLink
    • Constructor Detail

      • DeviceAndAppManagementRoleAssignment

        protected DeviceAndAppManagementRoleAssignment()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class RoleAssignment
      • builderDeviceAndAppManagementRoleAssignment

        public static DeviceAndAppManagementRoleAssignment.Builder builderDeviceAndAppManagementRoleAssignment()
        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 RoleAssignment
      • postInject

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getMembers()
        “The list of ids of role member security groups. These are IDs from Azure Active Directory.”
        Returns:
        property members
      • withMembers

        public DeviceAndAppManagementRoleAssignment withMembers​(List<String> members)
        Returns an immutable copy of this with just the members 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 list of ids of role member security groups. These are IDs from Azure Active Directory.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getMembers​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The list of ids of role member security groups. These are IDs from Azure Active Directory.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property members
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class RoleAssignment
      • patch

        public DeviceAndAppManagementRoleAssignment patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class RoleAssignment
        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 DeviceAndAppManagementRoleAssignment 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 RoleAssignment
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected