WeeklySchedule Class

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

Implements

public final class WeeklySchedule
implements JsonSerializable<WeeklySchedule>

For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.

Constructor Summary

Constructor Description
WeeklySchedule()

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

Reads an instance of WeeklySchedule from the JsonReader.

int intervalWeeks()

Get the intervalWeeks property: Specifies the number of weeks between each set of occurrences.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WeeklySchedule withDayOfWeek(WeekDay dayOfWeek)

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

WeeklySchedule withIntervalWeeks(int intervalWeeks)

Set the intervalWeeks property: Specifies the number of weeks between each set of occurrences.

Methods inherited from java.lang.Object

Constructor Details

WeeklySchedule

public WeeklySchedule()

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

Reads an instance of WeeklySchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

intervalWeeks

public int intervalWeeks()

Get the intervalWeeks property: Specifies the number of weeks between each set of occurrences.

Returns:

the intervalWeeks value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDayOfWeek

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

withIntervalWeeks

public WeeklySchedule withIntervalWeeks(int intervalWeeks)

Set the intervalWeeks property: Specifies the number of weeks between each set of occurrences.

Parameters:

intervalWeeks - the intervalWeeks value to set.

Returns:

the WeeklySchedule object itself.

Applies to