Schedule Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. Schedule
- com.
Implements
public final class Schedule
implements JsonSerializable<Schedule>
Scheduling configuration for a given alert processing rule.
Constructor Summary
| Constructor | Description |
|---|---|
| Schedule() |
Creates an instance of Schedule class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
effectiveFrom()
Get the effective |
| String |
effectiveUntil()
Get the effective |
| static Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule from the Json |
| List<Recurrence> |
recurrences()
Get the recurrences property: List of recurrences. |
| String |
timeZone()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Schedule |
withEffectiveFrom(String effectiveFrom)
Set the effective |
| Schedule |
withEffectiveUntil(String effectiveUntil)
Set the effective |
| Schedule |
withRecurrences(List<Recurrence> recurrences)
Set the recurrences property: List of recurrences. |
| Schedule |
withTimeZone(String timeZone)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
Schedule
public Schedule()
Creates an instance of Schedule class.
Method Details
effectiveFrom
public String effectiveFrom()
Get the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
Returns:
effectiveUntil
public String effectiveUntil()
Get the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
Returns:
fromJson
public static Schedule fromJson(JsonReader jsonReader)
Reads an instance of Schedule from the JsonReader.
Parameters:
Returns:
Throws:
recurrences
public List<Recurrence> recurrences()
Get the recurrences property: List of recurrences.
Returns:
timeZone
public String timeZone()
Get the timeZone property: Scheduling time zone.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEffectiveFrom
public Schedule withEffectiveFrom(String effectiveFrom)
Set the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
Parameters:
Returns:
withEffectiveUntil
public Schedule withEffectiveUntil(String effectiveUntil)
Set the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
Parameters:
Returns:
withRecurrences
public Schedule withRecurrences(List<Recurrence> recurrences)
Set the recurrences property: List of recurrences.
Parameters:
Returns:
withTimeZone
public Schedule withTimeZone(String timeZone)
Set the timeZone property: Scheduling time zone.
Parameters:
Returns: