Class MonthlySchedule

java.lang.Object
com.azure.resourcemanager.netapp.models.MonthlySchedule
All Implemented Interfaces:
com.azure.json.JsonSerializable<MonthlySchedule>

public final class MonthlySchedule extends Object implements com.azure.json.JsonSerializable<MonthlySchedule>
Monthly Schedule properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of MonthlySchedule class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the daysOfMonth property: Indicates which days of the month snapshot should be taken.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of MonthlySchedule from the JsonReader.
    Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken.
    Get the minute property: Indicates which minute snapshot should be taken.
    Get the snapshotsToKeep property: Monthly 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
    Validates the instance.
    withDaysOfMonth(String daysOfMonth)
    Set the daysOfMonth property: Indicates which days of the month snapshot should be taken.
    Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken.
    Set the minute property: Indicates which minute snapshot should be taken.
    withSnapshotsToKeep(Integer snapshotsToKeep)
    Set the snapshotsToKeep property: Monthly 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

    • MonthlySchedule

      public MonthlySchedule()
      Creates an instance of MonthlySchedule class.
  • Method Details

    • snapshotsToKeep

      public Integer snapshotsToKeep()
      Get the snapshotsToKeep property: Monthly snapshot count to keep.
      Returns:
      the snapshotsToKeep value.
    • withSnapshotsToKeep

      public MonthlySchedule withSnapshotsToKeep(Integer snapshotsToKeep)
      Set the snapshotsToKeep property: Monthly snapshot count to keep.
      Parameters:
      snapshotsToKeep - the snapshotsToKeep value to set.
      Returns:
      the MonthlySchedule object itself.
    • daysOfMonth

      public String daysOfMonth()
      Get the daysOfMonth property: Indicates which days of the month snapshot should be taken. A comma delimited string.
      Returns:
      the daysOfMonth value.
    • withDaysOfMonth

      public MonthlySchedule withDaysOfMonth(String daysOfMonth)
      Set the daysOfMonth property: Indicates which days of the month snapshot should be taken. A comma delimited string.
      Parameters:
      daysOfMonth - the daysOfMonth value to set.
      Returns:
      the MonthlySchedule object itself.
    • hour

      public Integer hour()
      Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken.
      Returns:
      the hour value.
    • withHour

      public MonthlySchedule withHour(Integer hour)
      Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken.
      Parameters:
      hour - the hour value to set.
      Returns:
      the MonthlySchedule object itself.
    • minute

      public Integer minute()
      Get the minute property: Indicates which minute snapshot should be taken.
      Returns:
      the minute value.
    • withMinute

      public MonthlySchedule withMinute(Integer minute)
      Set the minute property: Indicates which minute snapshot should be taken.
      Parameters:
      minute - the minute value to set.
      Returns:
      the MonthlySchedule object itself.
    • usedBytes

      public Long usedBytes()
      Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.
      Returns:
      the usedBytes value.
    • withUsedBytes

      public MonthlySchedule withUsedBytes(Long usedBytes)
      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 MonthlySchedule object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MonthlySchedule>
      Throws:
      IOException
    • fromJson

      public static MonthlySchedule fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MonthlySchedule from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MonthlySchedule 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 MonthlySchedule.