Share via


UserRoleAssignmentValue Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.UserRoleAssignmentValue

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 UserRoleAssignmentValue class.

Method Summary

Modifier and Type Method and Description
static UserRoleAssignmentValue fromJson(JsonReader jsonReader)

Reads an instance of UserRoleAssignmentValue from the JsonReader.

Map<String,EnvironmentRole> roles()

Get the roles property: A map of roles to assign to the parent user.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserRoleAssignmentValue 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:

jsonReader - The JsonReader being read.

Returns:

An instance of UserRoleAssignmentValue if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the UserRoleAssignmentValue.

roles

public Map<String,EnvironmentRole> roles()

Get the roles property: A map of roles to assign to the parent user.

Returns:

the roles value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

roles - the roles value to set.

Returns:

the UserRoleAssignmentValue object itself.

Applies to