AccessReviewRecurrenceSettings Class

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

Implements

public final class AccessReviewRecurrenceSettings
implements JsonSerializable<AccessReviewRecurrenceSettings>

Recurrence Settings of an Access Review Schedule Definition.

Constructor Summary

Constructor Description
AccessReviewRecurrenceSettings()

Creates an instance of AccessReviewRecurrenceSettings 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 AccessReviewRecurrenceSettings fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewRecurrenceSettings from the JsonReader.

Integer interval()

Get the interval property: The interval for recurrence.

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)
AccessReviewRecurrencePatternType type()

Get the type property: The recurrence type : weekly, monthly, etc.

AccessReviewRecurrenceRangeType typeRangeType()

Get the type property: The recurrence range type.

void validate()

Validates the instance.

AccessReviewRecurrenceSettings withEndDate(OffsetDateTime endDate)

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

AccessReviewRecurrenceSettings withInterval(Integer interval)

Set the interval property: The interval for recurrence.

AccessReviewRecurrenceSettings withNumberOfOccurrences(Integer numberOfOccurrences)

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

AccessReviewRecurrenceSettings withStartDate(OffsetDateTime startDate)

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

AccessReviewRecurrenceSettings withType(AccessReviewRecurrencePatternType type)

Set the type property: The recurrence type : weekly, monthly, etc.

AccessReviewRecurrenceSettings withTypeRangeType(AccessReviewRecurrenceRangeType type)

Set the type property: The recurrence range type.

Methods inherited from java.lang.Object

Constructor Details

AccessReviewRecurrenceSettings

public AccessReviewRecurrenceSettings()

Creates an instance of AccessReviewRecurrenceSettings 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 AccessReviewRecurrenceSettings fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewRecurrenceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

interval

public Integer interval()

Get the interval property: The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly.

Returns:

the interval value.

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 AccessReviewRecurrencePatternType type()

Get the type property: The recurrence type : weekly, monthly, etc.

Returns:

the type value.

typeRangeType

public AccessReviewRecurrenceRangeType typeRangeType()

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 AccessReviewRecurrenceSettings 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 AccessReviewRecurrenceSettings object itself.

withInterval

public AccessReviewRecurrenceSettings withInterval(Integer interval)

Set the interval property: The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly.

Parameters:

interval - the interval value to set.

Returns:

the AccessReviewRecurrenceSettings object itself.

withNumberOfOccurrences

public AccessReviewRecurrenceSettings 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 AccessReviewRecurrenceSettings object itself.

withStartDate

public AccessReviewRecurrenceSettings 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 AccessReviewRecurrenceSettings object itself.

withType

public AccessReviewRecurrenceSettings withType(AccessReviewRecurrencePatternType type)

Set the type property: The recurrence type : weekly, monthly, etc.

Parameters:

type - the type value to set.

Returns:

the AccessReviewRecurrenceSettings object itself.

withTypeRangeType

public AccessReviewRecurrenceSettings withTypeRangeType(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 AccessReviewRecurrenceSettings object itself.

Applies to