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