WeeklyRecurrence Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. Recurrence - com.
azure. resourcemanager. alertsmanagement. models. WeeklyRecurrence
- com.
- com.
public final class WeeklyRecurrence
extends Recurrence
Weekly recurrence object.
Constructor Summary
| Constructor | Description |
|---|---|
| WeeklyRecurrence() |
Creates an instance of Weekly |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Days |
daysOfWeek()
Get the days |
|
static
Weekly |
fromJson(JsonReader jsonReader)
Reads an instance of Weekly |
|
Recurrence |
recurrenceType()
Get the recurrence |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Weekly |
withDaysOfWeek(List<DaysOfWeek> daysOfWeek)
Set the days |
|
Weekly |
withEndTime(String endTime)
Set the end |
|
Weekly |
withStartTime(String startTime)
Set the start |
Methods inherited from Recurrence
Methods inherited from java.lang.Object
Constructor Details
WeeklyRecurrence
public WeeklyRecurrence()
Creates an instance of WeeklyRecurrence class.
Method Details
daysOfWeek
public List<DaysOfWeek> daysOfWeek()
Get the daysOfWeek property: Specifies the values for weekly recurrence pattern.
Returns:
fromJson
public static WeeklyRecurrence fromJson(JsonReader jsonReader)
Reads an instance of WeeklyRecurrence from the JsonReader.
Parameters:
Returns:
Throws:
recurrenceType
public RecurrenceType recurrenceType()
Get the recurrenceType property: Specifies when the recurrence should be applied.
Overrides:
WeeklyRecurrence.recurrenceType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
WeeklyRecurrence.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
WeeklyRecurrence.validate()withDaysOfWeek
public WeeklyRecurrence withDaysOfWeek(List<DaysOfWeek> daysOfWeek)
Set the daysOfWeek property: Specifies the values for weekly recurrence pattern.
Parameters:
Returns:
withEndTime
public WeeklyRecurrence withEndTime(String endTime)
Set the endTime property: End time for recurrence.
Overrides:
WeeklyRecurrence.withEndTime(String endTime)Parameters:
withStartTime
public WeeklyRecurrence withStartTime(String startTime)
Set the startTime property: Start time for recurrence.
Overrides:
WeeklyRecurrence.withStartTime(String startTime)Parameters: