Share via


EnvironmentRole Class

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

Implements

public final class EnvironmentRole
implements JsonSerializable<EnvironmentRole>

A role that can be assigned to a user.

Constructor Summary

Constructor Description
EnvironmentRole()

Creates an instance of EnvironmentRole class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: This is a description of the Role Assignment.

static EnvironmentRole fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentRole from the JsonReader.

String roleName()

Get the roleName property: The common name of the Role Assignment.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

EnvironmentRole

public EnvironmentRole()

Creates an instance of EnvironmentRole class.

Method Details

description

public String description()

Get the description property: This is a description of the Role Assignment.

Returns:

the description value.

fromJson

public static EnvironmentRole fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentRole from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EnvironmentRole 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 EnvironmentRole.

roleName

public String roleName()

Get the roleName property: The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.

Returns:

the roleName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to