AbsoluteMonthlySchedule Class

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

Implements

public final class AbsoluteMonthlySchedule
implements JsonSerializable<AbsoluteMonthlySchedule>

For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.

Constructor Summary

Constructor Description
AbsoluteMonthlySchedule()

Creates an instance of AbsoluteMonthlySchedule class.

Method Summary

Modifier and Type Method and Description
int dayOfMonth()

Get the dayOfMonth property: The date of the month.

static AbsoluteMonthlySchedule fromJson(JsonReader jsonReader)

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

AbsoluteMonthlySchedule withDayOfMonth(int dayOfMonth)

Set the dayOfMonth property: The date of the month.

AbsoluteMonthlySchedule withIntervalMonths(int intervalMonths)

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

Methods inherited from java.lang.Object

Constructor Details

AbsoluteMonthlySchedule

public AbsoluteMonthlySchedule()

Creates an instance of AbsoluteMonthlySchedule class.

Method Details

dayOfMonth

public int dayOfMonth()

Get the dayOfMonth property: The date of the month.

Returns:

the dayOfMonth value.

fromJson

public static AbsoluteMonthlySchedule fromJson(JsonReader jsonReader)

Reads an instance of AbsoluteMonthlySchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

withDayOfMonth

public AbsoluteMonthlySchedule withDayOfMonth(int dayOfMonth)

Set the dayOfMonth property: The date of the month.

Parameters:

dayOfMonth - the dayOfMonth value to set.

Returns:

the AbsoluteMonthlySchedule object itself.

withIntervalMonths

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

Applies to