Class WeeklyRecurrence
java.lang.Object
com.azure.resourcemanager.storagemover.models.Recurrence
com.azure.resourcemanager.storagemover.models.WeeklyRecurrence
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Recurrence>
- Direct Known Subclasses:
UploadLimitWeeklyRecurrence
The weekly recurrence of the schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondays()Get the days property: The set of days of week for the schedule recurrence.static WeeklyRecurrencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WeeklyRecurrence from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the days property: The set of days of week for the schedule recurrence.withEndTime(Time endTime) Set the endTime property: The end time of the schedule recurrence.withStartTime(Time startTime) Set the startTime property: The start time of the schedule recurrence.Methods inherited from class com.azure.resourcemanager.storagemover.models.Recurrence
endTime, startTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WeeklyRecurrence
public WeeklyRecurrence()Creates an instance of WeeklyRecurrence class.
-
-
Method Details
-
days
Get the days property: The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence.- Returns:
- the days value.
-
withDays
Set the days property: The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence.- Parameters:
days- the days value to set.- Returns:
- the WeeklyRecurrence object itself.
-
withStartTime
Set the startTime property: The start time of the schedule recurrence. Full hour and 30-minute intervals are supported.- Overrides:
withStartTimein classRecurrence- Parameters:
startTime- the startTime value to set.- Returns:
- the Recurrence object itself.
-
withEndTime
Set the endTime property: The end time of the schedule recurrence. Full hour and 30-minute intervals are supported.- Overrides:
withEndTimein classRecurrence- Parameters:
endTime- the endTime value to set.- Returns:
- the Recurrence object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRecurrence- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Recurrence>- Overrides:
toJsonin classRecurrence- Throws:
IOException
-
fromJson
Reads an instance of WeeklyRecurrence from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WeeklyRecurrence if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WeeklyRecurrence.
-