Class MonthlyRecurrence
java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.Recurrence
com.azure.resourcemanager.alertsmanagement.models.MonthlyRecurrence
Monthly recurrence object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the daysOfMonth property: Specifies the values for monthly recurrence pattern.void
validate()
Validates the instance.withDaysOfMonth
(List<Integer> daysOfMonth) Set the daysOfMonth property: Specifies the values for monthly recurrence pattern.withEndTime
(String endTime) Set the endTime property: End time for recurrence.withStartTime
(String startTime) Set the startTime property: Start time for recurrence.Methods inherited from class com.azure.resourcemanager.alertsmanagement.models.Recurrence
endTime, startTime
-
Constructor Details
-
MonthlyRecurrence
public MonthlyRecurrence()
-
-
Method Details
-
daysOfMonth
Get the daysOfMonth property: Specifies the values for monthly recurrence pattern.- Returns:
- the daysOfMonth value.
-
withDaysOfMonth
Set the daysOfMonth property: Specifies the values for monthly recurrence pattern.- Parameters:
daysOfMonth
- the daysOfMonth value to set.- Returns:
- the MonthlyRecurrence object itself.
-
withStartTime
Set the startTime property: Start time for recurrence.- Overrides:
withStartTime
in classRecurrence
- Parameters:
startTime
- the startTime value to set.- Returns:
- the Recurrence object itself.
-
withEndTime
Set the endTime property: End time for recurrence.- Overrides:
withEndTime
in classRecurrence
- Parameters:
endTime
- the endTime value to set.- Returns:
- the Recurrence object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRecurrence
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-