Class SnapshotPolicyPatch

java.lang.Object
com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch

public final class SnapshotPolicyPatch extends Object
Snapshot policy Details for create and update.
  • Constructor Details

    • SnapshotPolicyPatch

      public SnapshotPolicyPatch()
  • Method Details

    • location

      public String location()
      Get the location property: Resource location.
      Returns:
      the location value.
    • withLocation

      public SnapshotPolicyPatch withLocation(String location)
      Set the location property: Resource location.
      Parameters:
      location - the location value to set.
      Returns:
      the SnapshotPolicyPatch object itself.
    • id

      public String id()
      Get the id property: Resource Id.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Resource name.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public SnapshotPolicyPatch withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the SnapshotPolicyPatch object itself.
    • hourlySchedule

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

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

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

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

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

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

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

      public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule)
      Set the monthlySchedule property: Schedule for monthly snapshots.
      Parameters:
      monthlySchedule - the monthlySchedule value to set.
      Returns:
      the SnapshotPolicyPatch 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 SnapshotPolicyPatch 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 SnapshotPolicyPatch 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.