AccessReviewRecurrencePattern Class

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

Implements

public final class AccessReviewRecurrencePattern
implements JsonSerializable<AccessReviewRecurrencePattern>

Recurrence Pattern of an Access Review Schedule Definition.

Constructor Summary

Constructor Description
AccessReviewRecurrencePattern()

Creates an instance of AccessReviewRecurrencePattern class.

Method Summary

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

Reads an instance of AccessReviewRecurrencePattern from the JsonReader.

Integer interval()

Get the interval property: The interval for recurrence.

JsonWriter toJson(JsonWriter jsonWriter)
AccessReviewRecurrencePatternType type()

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

void validate()

Validates the instance.

AccessReviewRecurrencePattern withInterval(Integer interval)

Set the interval property: The interval for recurrence.

AccessReviewRecurrencePattern withType(AccessReviewRecurrencePatternType type)

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

Methods inherited from java.lang.Object

Constructor Details

AccessReviewRecurrencePattern

public AccessReviewRecurrencePattern()

Creates an instance of AccessReviewRecurrencePattern class.

Method Details

fromJson

public static AccessReviewRecurrencePattern fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewRecurrencePattern from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

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.

validate

public void validate()

Validates the instance.

withInterval

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

withType

public AccessReviewRecurrencePattern withType(AccessReviewRecurrencePatternType type)

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

Parameters:

type - the type value to set.

Returns:

the AccessReviewRecurrencePattern object itself.

Applies to