AccessReviewHistoryScheduleSettings Class

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

Implements

public final class AccessReviewHistoryScheduleSettings
implements JsonSerializable<AccessReviewHistoryScheduleSettings>

Recurrence settings of an Access Review History Definition.

Constructor Summary

Constructor Description
AccessReviewHistoryScheduleSettings()

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

Reads an instance of AccessReviewHistoryScheduleSettings 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.

AccessReviewHistoryScheduleSettings withEndDate(OffsetDateTime endDate)

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

AccessReviewHistoryScheduleSettings withInterval(Integer interval)

Set the interval property: The interval for recurrence.

AccessReviewHistoryScheduleSettings withNumberOfOccurrences(Integer numberOfOccurrences)

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

AccessReviewHistoryScheduleSettings withStartDate(OffsetDateTime startDate)

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

AccessReviewHistoryScheduleSettings withType(AccessReviewRecurrencePatternType type)

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

AccessReviewHistoryScheduleSettings withTypeRangeType(AccessReviewRecurrenceRangeType type)

Set the type property: The recurrence range type.

Methods inherited from java.lang.Object

Constructor Details

AccessReviewHistoryScheduleSettings

public AccessReviewHistoryScheduleSettings()

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

Reads an instance of AccessReviewHistoryScheduleSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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

withInterval

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

withNumberOfOccurrences

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

withStartDate

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

withType

public AccessReviewHistoryScheduleSettings withType(AccessReviewRecurrencePatternType type)

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

Parameters:

type - the type value to set.

Returns:

the AccessReviewHistoryScheduleSettings object itself.

withTypeRangeType

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

Applies to