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 Summary
Constructors Constructor Description SnapshotPolicyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DailySchedule
dailySchedule()
Get the dailySchedule property: Schedule for daily snapshots.Boolean
enabled()
Get the enabled property: The property to decide policy is enabled or not.String
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.HourlySchedule
hourlySchedule()
Get the hourlySchedule property: Schedule for hourly snapshots.MonthlySchedule
monthlySchedule()
Get the monthlySchedule property: Schedule for monthly snapshots.String
provisioningState()
Get the provisioningState property: Azure lifecycle management.com.azure.core.management.SystemData
systemData()
Get the systemData property: The system meta data relating to this resource.void
validate()
Validates the instance.WeeklySchedule
weeklySchedule()
Get the weeklySchedule property: Schedule for weekly snapshots.SnapshotPolicyInner
withDailySchedule(DailySchedule dailySchedule)
Set the dailySchedule property: Schedule for daily snapshots.SnapshotPolicyInner
withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not.SnapshotPolicyInner
withHourlySchedule(HourlySchedule hourlySchedule)
Set the hourlySchedule property: Schedule for hourly snapshots.SnapshotPolicyInner
withLocation(String location)
SnapshotPolicyInner
withMonthlySchedule(MonthlySchedule monthlySchedule)
Set the monthlySchedule property: Schedule for monthly snapshots.SnapshotPolicyInner
withTags(Map<String,String> tags)
SnapshotPolicyInner
withWeeklySchedule(WeeklySchedule weeklySchedule)
Set the weeklySchedule property: Schedule for weekly snapshots.
-
-
-
Method Detail
-
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: The system meta data relating to this resource.- Returns:
- the systemData value.
-
withLocation
public SnapshotPolicyInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public SnapshotPolicyInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.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.
-
-