RelativeMonthlySchedule Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.RelativeMonthlySchedule

Implements

public final class RelativeMonthlySchedule
implements JsonSerializable<RelativeMonthlySchedule>

For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.

Constructor Summary

Constructor Description
RelativeMonthlySchedule()

Creates an instance of RelativeMonthlySchedule class.

Method Summary

Modifier and Type Method and Description
WeekDay dayOfWeek()

Get the dayOfWeek property: Specifies on which day of the week the maintenance occurs.

static RelativeMonthlySchedule fromJson(JsonReader jsonReader)

Reads an instance of RelativeMonthlySchedule from the JsonReader.

int intervalMonths()

Get the intervalMonths property: Specifies the number of months between each set of occurrences.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Type weekIndex()

Get the weekIndex property: Specifies on which week of the month the dayOfWeek applies.

RelativeMonthlySchedule withDayOfWeek(WeekDay dayOfWeek)

Set the dayOfWeek property: Specifies on which day of the week the maintenance occurs.

RelativeMonthlySchedule withIntervalMonths(int intervalMonths)

Set the intervalMonths property: Specifies the number of months between each set of occurrences.

RelativeMonthlySchedule withWeekIndex(Type weekIndex)

Set the weekIndex property: Specifies on which week of the month the dayOfWeek applies.

Methods inherited from java.lang.Object

Constructor Details

RelativeMonthlySchedule

public RelativeMonthlySchedule()

Creates an instance of RelativeMonthlySchedule class.

Method Details

dayOfWeek

public WeekDay dayOfWeek()

Get the dayOfWeek property: Specifies on which day of the week the maintenance occurs.

Returns:

the dayOfWeek value.

fromJson

public static RelativeMonthlySchedule fromJson(JsonReader jsonReader)

Reads an instance of RelativeMonthlySchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RelativeMonthlySchedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

intervalMonths

public int intervalMonths()

Get the intervalMonths property: Specifies the number of months between each set of occurrences.

Returns:

the intervalMonths value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weekIndex

public Type weekIndex()

Get the weekIndex property: Specifies on which week of the month the dayOfWeek applies.

Returns:

the weekIndex value.

withDayOfWeek

public RelativeMonthlySchedule withDayOfWeek(WeekDay dayOfWeek)

Set the dayOfWeek property: Specifies on which day of the week the maintenance occurs.

Parameters:

dayOfWeek - the dayOfWeek value to set.

Returns:

the RelativeMonthlySchedule object itself.

withIntervalMonths

public RelativeMonthlySchedule withIntervalMonths(int intervalMonths)

Set the intervalMonths property: Specifies the number of months between each set of occurrences.

Parameters:

intervalMonths - the intervalMonths value to set.

Returns:

the RelativeMonthlySchedule object itself.

withWeekIndex

public RelativeMonthlySchedule withWeekIndex(Type weekIndex)

Set the weekIndex property: Specifies on which week of the month the dayOfWeek applies.

Parameters:

weekIndex - the weekIndex value to set.

Returns:

the RelativeMonthlySchedule object itself.

Applies to