AccessReviewRecurrenceRange Class

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

Implements

public final class AccessReviewRecurrenceRange
implements JsonSerializable<AccessReviewRecurrenceRange>

Recurrence Range of an Access Review Schedule Definition.

Constructor Summary

Constructor Description
AccessReviewRecurrenceRange()

Creates an instance of AccessReviewRecurrenceRange class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endDate()

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

static AccessReviewRecurrenceRange fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewRecurrenceRange from the JsonReader.

Integer numberOfOccurrences()

Get the numberOfOccurrences property: The number of times to repeat the access review.

OffsetDateTime startDate()

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

JsonWriter toJson(JsonWriter jsonWriter)
AccessReviewRecurrenceRangeType type()

Get the type property: The recurrence range type.

void validate()

Validates the instance.

AccessReviewRecurrenceRange withEndDate(OffsetDateTime endDate)

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

AccessReviewRecurrenceRange withNumberOfOccurrences(Integer numberOfOccurrences)

Set the numberOfOccurrences property: The number of times to repeat the access review.

AccessReviewRecurrenceRange withStartDate(OffsetDateTime startDate)

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

AccessReviewRecurrenceRange withType(AccessReviewRecurrenceRangeType type)

Set the type property: The recurrence range type.

Methods inherited from java.lang.Object

Constructor Details

AccessReviewRecurrenceRange

public AccessReviewRecurrenceRange()

Creates an instance of AccessReviewRecurrenceRange class.

Method Details

endDate

public OffsetDateTime endDate()

Get the endDate property: The DateTime when the review is scheduled to end. Required if type is endDate.

Returns:

the endDate value.

fromJson

public static AccessReviewRecurrenceRange fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewRecurrenceRange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

numberOfOccurrences

public Integer numberOfOccurrences()

Get the numberOfOccurrences property: The number of times to repeat the access review. Required and must be positive if type is numbered.

Returns:

the numberOfOccurrences value.

startDate

public OffsetDateTime startDate()

Get the startDate property: The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.

Returns:

the startDate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public AccessReviewRecurrenceRangeType type()

Get the type property: The recurrence range type. The possible values are: endDate, noEnd, numbered.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEndDate

public AccessReviewRecurrenceRange withEndDate(OffsetDateTime endDate)

Set the endDate property: The DateTime when the review is scheduled to end. Required if type is endDate.

Parameters:

endDate - the endDate value to set.

Returns:

the AccessReviewRecurrenceRange object itself.

withNumberOfOccurrences

public AccessReviewRecurrenceRange withNumberOfOccurrences(Integer numberOfOccurrences)

Set the numberOfOccurrences property: The number of times to repeat the access review. Required and must be positive if type is numbered.

Parameters:

numberOfOccurrences - the numberOfOccurrences value to set.

Returns:

the AccessReviewRecurrenceRange object itself.

withStartDate

public AccessReviewRecurrenceRange withStartDate(OffsetDateTime startDate)

Set the startDate property: The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.

Parameters:

startDate - the startDate value to set.

Returns:

the AccessReviewRecurrenceRange object itself.

withType

public AccessReviewRecurrenceRange withType(AccessReviewRecurrenceRangeType type)

Set the type property: The recurrence range type. The possible values are: endDate, noEnd, numbered.

Parameters:

type - the type value to set.

Returns:

the AccessReviewRecurrenceRange object itself.

Applies to