AccessReviewInstanceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.AccessReviewInstanceProperties

Implements

public final class AccessReviewInstanceProperties
implements JsonSerializable<AccessReviewInstanceProperties>

Access Review Instance properties.

Constructor Summary

Constructor Description
AccessReviewInstanceProperties()

Creates an instance of AccessReviewInstanceProperties class.

Method Summary

Modifier and Type Method and Description
List<AccessReviewReviewer> backupReviewers()

Get the backupReviewers property: This is the collection of backup reviewers.

OffsetDateTime endDateTime()

Get the endDateTime property: The DateTime when the review instance is scheduled to end.

static AccessReviewInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewInstanceProperties from the JsonReader.

List<AccessReviewReviewer> reviewers()

Get the reviewers property: This is the collection of reviewers.

AccessReviewInstanceReviewersType reviewersType()

Get the reviewersType property: This field specifies the type of reviewers for a review.

OffsetDateTime startDateTime()

Get the startDateTime property: The DateTime when the review instance is scheduled to be start.

AccessReviewInstanceStatus status()

Get the status property: This read-only field specifies the status of an access review instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccessReviewInstanceProperties withBackupReviewers(List<AccessReviewReviewer> backupReviewers)

Set the backupReviewers property: This is the collection of backup reviewers.

AccessReviewInstanceProperties withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The DateTime when the review instance is scheduled to end.

AccessReviewInstanceProperties withReviewers(List<AccessReviewReviewer> reviewers)

Set the reviewers property: This is the collection of reviewers.

AccessReviewInstanceProperties withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The DateTime when the review instance is scheduled to be start.

Methods inherited from java.lang.Object

Constructor Details

AccessReviewInstanceProperties

public AccessReviewInstanceProperties()

Creates an instance of AccessReviewInstanceProperties class.

Method Details

backupReviewers

public List<AccessReviewReviewer> backupReviewers()

Get the backupReviewers property: This is the collection of backup reviewers.

Returns:

the backupReviewers value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime property: The DateTime when the review instance is scheduled to end.

Returns:

the endDateTime value.

fromJson

public static AccessReviewInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewInstanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reviewers

public List<AccessReviewReviewer> reviewers()

Get the reviewers property: This is the collection of reviewers.

Returns:

the reviewers value.

reviewersType

public AccessReviewInstanceReviewersType reviewersType()

Get the reviewersType property: This field specifies the type of reviewers for a review. Usually for a review, reviewers are explicitly assigned. However, in some cases, the reviewers may not be assigned and instead be chosen dynamically. For example managers review or self review.

Returns:

the reviewersType value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: The DateTime when the review instance is scheduled to be start.

Returns:

the startDateTime value.

status

public AccessReviewInstanceStatus status()

Get the status property: This read-only field specifies the status of an access review instance.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackupReviewers

public AccessReviewInstanceProperties withBackupReviewers(List<AccessReviewReviewer> backupReviewers)

Set the backupReviewers property: This is the collection of backup reviewers.

Parameters:

backupReviewers - the backupReviewers value to set.

Returns:

the AccessReviewInstanceProperties object itself.

withEndDateTime

public AccessReviewInstanceProperties withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The DateTime when the review instance is scheduled to end.

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the AccessReviewInstanceProperties object itself.

withReviewers

public AccessReviewInstanceProperties withReviewers(List<AccessReviewReviewer> reviewers)

Set the reviewers property: This is the collection of reviewers.

Parameters:

reviewers - the reviewers value to set.

Returns:

the AccessReviewInstanceProperties object itself.

withStartDateTime

public AccessReviewInstanceProperties withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The DateTime when the review instance is scheduled to be start.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the AccessReviewInstanceProperties object itself.

Applies to