AccessReviewReviewer Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.AccessReviewReviewer

Implements

public final class AccessReviewReviewer
implements JsonSerializable<AccessReviewReviewer>

Descriptor for what needs to be reviewed.

Constructor Summary

Constructor Description
AccessReviewReviewer()

Creates an instance of AccessReviewReviewer class.

Method Summary

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

Reads an instance of AccessReviewReviewer from the JsonReader.

String principalId()

Get the principalId property: The id of the reviewer(user/servicePrincipal).

AccessReviewReviewerType principalType()

Get the principalType property: The identity type : user/servicePrincipal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccessReviewReviewer withPrincipalId(String principalId)

Set the principalId property: The id of the reviewer(user/servicePrincipal).

Methods inherited from java.lang.Object

Constructor Details

AccessReviewReviewer

public AccessReviewReviewer()

Creates an instance of AccessReviewReviewer class.

Method Details

fromJson

public static AccessReviewReviewer fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewReviewer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The id of the reviewer(user/servicePrincipal).

Returns:

the principalId value.

principalType

public AccessReviewReviewerType principalType()

Get the principalType property: The identity type : user/servicePrincipal.

Returns:

the principalType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrincipalId

public AccessReviewReviewer withPrincipalId(String principalId)

Set the principalId property: The id of the reviewer(user/servicePrincipal).

Parameters:

principalId - the principalId value to set.

Returns:

the AccessReviewReviewer object itself.

Applies to