Class WeeklySchedule
java.lang.Object
com.azure.resourcemanager.netapp.models.WeeklySchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WeeklySchedule>
public final class WeeklySchedule
extends Object
implements com.azure.json.JsonSerializable<WeeklySchedule>
Weekly Schedule properties, make a snapshot every week at a specific day or days.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionday()
Get the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.static WeeklySchedule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WeeklySchedule from the JsonReader.hour()
Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken.minute()
Get the minute property: Indicates which minute snapshot should be taken.Get the snapshotsToKeep property: Weekly snapshot count to keep.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.void
validate()
Validates the instance.Set the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken.withMinute
(Integer minute) Set the minute property: Indicates which minute snapshot should be taken.withSnapshotsToKeep
(Integer snapshotsToKeep) Set the snapshotsToKeep property: Weekly snapshot count to keep.withUsedBytes
(Long usedBytes) Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WeeklySchedule
public WeeklySchedule()Creates an instance of WeeklySchedule class.
-
-
Method Details
-
snapshotsToKeep
Get the snapshotsToKeep property: Weekly snapshot count to keep.- Returns:
- the snapshotsToKeep value.
-
withSnapshotsToKeep
Set the snapshotsToKeep property: Weekly snapshot count to keep.- Parameters:
snapshotsToKeep
- the snapshotsToKeep value to set.- Returns:
- the WeeklySchedule object itself.
-
day
Get the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.- Returns:
- the day value.
-
withDay
Set the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.- Parameters:
day
- the day value to set.- Returns:
- the WeeklySchedule object itself.
-
hour
Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken.- Returns:
- the hour value.
-
withHour
Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken.- Parameters:
hour
- the hour value to set.- Returns:
- the WeeklySchedule object itself.
-
minute
Get the minute property: Indicates which minute snapshot should be taken.- Returns:
- the minute value.
-
withMinute
Set the minute property: Indicates which minute snapshot should be taken.- Parameters:
minute
- the minute value to set.- Returns:
- the WeeklySchedule object itself.
-
usedBytes
Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.- Returns:
- the usedBytes value.
-
withUsedBytes
Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.- Parameters:
usedBytes
- the usedBytes value to set.- Returns:
- the WeeklySchedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<WeeklySchedule>
- Throws:
IOException
-
fromJson
Reads an instance of WeeklySchedule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WeeklySchedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the WeeklySchedule.
-