Class SnapshotPolicyInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner

public final class SnapshotPolicyInner extends com.azure.core.management.Resource
Snapshot policy information.
  • Constructor Details

    • SnapshotPolicyInner

      public SnapshotPolicyInner()
  • Method Details

    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • withLocation

      public SnapshotPolicyInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public SnapshotPolicyInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • hourlySchedule

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

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

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

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

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

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

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

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