RelativeMonthlySchedule Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. RelativeMonthlySchedule
- com.
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 Relative |
Method Summary
Modifier and Type | Method and Description |
---|---|
Week |
dayOfWeek()
Get the day |
static
Relative |
fromJson(JsonReader jsonReader)
Reads an instance of Relative |
int |
intervalMonths()
Get the interval |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Type |
weekIndex()
Get the week |
Relative |
withDayOfWeek(WeekDay dayOfWeek)
Set the day |
Relative |
withIntervalMonths(int intervalMonths)
Set the interval |
Relative |
withWeekIndex(Type weekIndex)
Set the week |
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:
fromJson
public static RelativeMonthlySchedule fromJson(JsonReader jsonReader)
Reads an instance of RelativeMonthlySchedule from the JsonReader.
Parameters:
Returns:
Throws:
intervalMonths
public int intervalMonths()
Get the intervalMonths property: Specifies the number of months between each set of occurrences.
Returns:
toJson
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:
withDayOfWeek
public RelativeMonthlySchedule withDayOfWeek(WeekDay dayOfWeek)
Set the dayOfWeek property: Specifies on which day of the week the maintenance occurs.
Parameters:
Returns:
withIntervalMonths
public RelativeMonthlySchedule withIntervalMonths(int intervalMonths)
Set the intervalMonths property: Specifies the number of months between each set of occurrences.
Parameters:
Returns:
withWeekIndex
public RelativeMonthlySchedule withWeekIndex(Type weekIndex)
Set the weekIndex property: Specifies on which week of the month the dayOfWeek applies.
Parameters:
Returns:
Applies to
Azure SDK for Java