WeeklySchedule Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. WeeklySchedule
- com.
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 Weekly |
Method Summary
Modifier and Type | Method and Description |
---|---|
Week |
dayOfWeek()
Get the day |
static
Weekly |
fromJson(JsonReader jsonReader)
Reads an instance of Weekly |
int |
intervalWeeks()
Get the interval |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Weekly |
withDayOfWeek(WeekDay dayOfWeek)
Set the day |
Weekly |
withIntervalWeeks(int intervalWeeks)
Set the interval |
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:
fromJson
public static WeeklySchedule fromJson(JsonReader jsonReader)
Reads an instance of WeeklySchedule from the JsonReader.
Parameters:
Returns:
Throws:
intervalWeeks
public int intervalWeeks()
Get the intervalWeeks property: Specifies the number of weeks between each set of occurrences.
Returns:
toJson
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:
Returns:
withIntervalWeeks
public WeeklySchedule withIntervalWeeks(int intervalWeeks)
Set the intervalWeeks property: Specifies the number of weeks between each set of occurrences.
Parameters:
Returns:
Applies to
Azure SDK for Java