public class RoleAssignment extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
RoleAssignment.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
displayName |
protected List<String> |
resourceScopes |
protected String |
resourceScopesNextLink |
protected List<String> |
scopeMembers |
protected String |
scopeMembersNextLink |
protected RoleAssignmentScopeType |
scopeType |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
RoleAssignment() |
| Modifier and Type | Method and Description |
|---|---|
static RoleAssignment.Builder |
builderRoleAssignment()
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.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getDescription()
“Description of the Role Assignment.”
|
Optional<String> |
getDisplayName()
“The display or friendly name of the role Assignment.”
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getResourceScopes()
“List of ids of role scope member security groups.
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getResourceScopes(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of ids of role scope member security groups.
|
RoleDefinitionRequest |
getRoleDefinition()
“Role definition this assignment is part of.”
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getScopeMembers()
“List of ids of role scope member security groups.
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getScopeMembers(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of ids of role scope member security groups.
|
Optional<RoleAssignmentScopeType> |
getScopeType()
“Specifies the type of scope for a Role Assignment.
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
RoleAssignment |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
RoleAssignment |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
RoleAssignment |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
RoleAssignment |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
RoleAssignment |
withScopeType(RoleAssignmentScopeType scopeType)
Returns an immutable copy of
this with just the scopeType field
changed. |
protected String displayName
protected String description
protected String scopeMembersNextLink
protected RoleAssignmentScopeType scopeType
protected String resourceScopesNextLink
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static RoleAssignment.Builder builderRoleAssignment()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getDisplayName()
public RoleAssignment withDisplayName(String displayName)
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 display or friendly name of the role Assignment.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getDescription()
public RoleAssignment withDescription(String description)
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.
“Description of the Role Assignment.”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic com.github.davidmoten.odata.client.CollectionPage<String> getScopeMembers()
public com.github.davidmoten.odata.client.CollectionPage<String> getScopeMembers(com.github.davidmoten.odata.client.HttpRequestOptions options)
public Optional<RoleAssignmentScopeType> getScopeType()
public RoleAssignment withScopeType(RoleAssignmentScopeType scopeType)
this with just the scopeType 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.
“Specifies the type of scope for a Role Assignment. Default type 'ResourceScope' allows assignment of ResourceScopes. For 'AllDevices', 'AllLicensedUsers', and ' AllDevicesAndLicensedUsers', the ResourceScopes property should be left empty.”
scopeType - new value of scopeType field (as defined in service metadata)this with just the scopeType field changedpublic com.github.davidmoten.odata.client.CollectionPage<String> getResourceScopes()
public com.github.davidmoten.odata.client.CollectionPage<String> getResourceScopes(com.github.davidmoten.odata.client.HttpRequestOptions options)
public RoleDefinitionRequest getRoleDefinition()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic RoleAssignment patch()
this with changed fields reset.public RoleAssignment put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.