Class SnapshotPolicyProperties

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

public final class SnapshotPolicyProperties extends Object implements com.azure.json.JsonSerializable<SnapshotPolicyProperties>
Snapshot policy properties.
  • Constructor Details

    • SnapshotPolicyProperties

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

    • hourlySchedule

      public HourlySchedule hourlySchedule()
      Get the hourlySchedule property: Schedule for hourly snapshots.
      Returns:
      the hourlySchedule value.
    • withHourlySchedule

      public SnapshotPolicyProperties withHourlySchedule(HourlySchedule hourlySchedule)
      Set the hourlySchedule property: Schedule for hourly snapshots.
      Parameters:
      hourlySchedule - the hourlySchedule value to set.
      Returns:
      the SnapshotPolicyProperties object itself.
    • dailySchedule

      public DailySchedule dailySchedule()
      Get the dailySchedule property: Schedule for daily snapshots.
      Returns:
      the dailySchedule value.
    • withDailySchedule

      public SnapshotPolicyProperties withDailySchedule(DailySchedule dailySchedule)
      Set the dailySchedule property: Schedule for daily snapshots.
      Parameters:
      dailySchedule - the dailySchedule value to set.
      Returns:
      the SnapshotPolicyProperties object itself.
    • weeklySchedule

      public WeeklySchedule weeklySchedule()
      Get the weeklySchedule property: Schedule for weekly snapshots.
      Returns:
      the weeklySchedule value.
    • withWeeklySchedule

      public SnapshotPolicyProperties withWeeklySchedule(WeeklySchedule weeklySchedule)
      Set the weeklySchedule property: Schedule for weekly snapshots.
      Parameters:
      weeklySchedule - the weeklySchedule value to set.
      Returns:
      the SnapshotPolicyProperties object itself.
    • monthlySchedule

      public MonthlySchedule monthlySchedule()
      Get the monthlySchedule property: Schedule for monthly snapshots.
      Returns:
      the monthlySchedule value.
    • withMonthlySchedule

      public SnapshotPolicyProperties withMonthlySchedule(MonthlySchedule monthlySchedule)
      Set the monthlySchedule property: Schedule for monthly snapshots.
      Parameters:
      monthlySchedule - the monthlySchedule value to set.
      Returns:
      the SnapshotPolicyProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: The property to decide policy is enabled or not.
      Returns:
      the enabled value.
    • withEnabled

      public SnapshotPolicyProperties withEnabled(Boolean enabled)
      Set the enabled property: The property to decide policy is enabled or not.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the SnapshotPolicyProperties object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Azure lifecycle management.
      Returns:
      the provisioningState value.
    • 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<SnapshotPolicyProperties>
      Throws:
      IOException
    • fromJson

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