UserRoleAssignmentValue Class
- java.
lang. Object - com.
azure. resourcemanager. devcenter. models. UserRoleAssignmentValue
- com.
Implements
public final class UserRoleAssignmentValue
implements JsonSerializable<UserRoleAssignmentValue>
Mapping of user object ID to role assignments.
Constructor Summary
| Constructor | Description |
|---|---|
| UserRoleAssignmentValue() |
Creates an instance of User |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Map<String,Environment |
roles()
Get the roles property: A map of roles to assign to the parent user. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
User |
withRoles(Map<String,EnvironmentRole> roles)
Set the roles property: A map of roles to assign to the parent user. |
Methods inherited from java.lang.Object
Constructor Details
UserRoleAssignmentValue
public UserRoleAssignmentValue()
Creates an instance of UserRoleAssignmentValue class.
Method Details
fromJson
public static UserRoleAssignmentValue fromJson(JsonReader jsonReader)
Reads an instance of UserRoleAssignmentValue from the JsonReader.
Parameters:
Returns:
Throws:
roles
public Map<String,EnvironmentRole> roles()
Get the roles property: A map of roles to assign to the parent user.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRoles
public UserRoleAssignmentValue withRoles(Map<String,EnvironmentRole> roles)
Set the roles property: A map of roles to assign to the parent user.
Parameters:
Returns: