SnapshotPolicyPatch Class
- java.
lang. Object - com.
azure. resourcemanager. netapp. models. SnapshotPolicyPatch
- com.
public final class SnapshotPolicyPatch
Snapshot policy Details for create and update.
Constructor Summary
Constructor | Description |
---|---|
SnapshotPolicyPatch() |
Creates an instance of Snapshot |
Method Summary
Modifier and Type | Method and Description |
---|---|
Daily |
dailySchedule()
Get the daily |
Boolean |
enabled()
Get the enabled property: The property to decide policy is enabled or not. |
Hourly |
hourlySchedule()
Get the hourly |
String |
id()
Get the id property: Resource Id. |
String |
location()
Get the location property: Resource location. |
Monthly |
monthlySchedule()
Get the monthly |
String |
name()
Get the name property: Resource name. |
String |
provisioningState()
Get the provisioning |
Map<String,String> |
tags()
Get the tags property: Resource tags. |
String |
type()
Get the type property: Resource type. |
void |
validate()
Validates the instance. |
Weekly |
weeklySchedule()
Get the weekly |
Snapshot |
withDailySchedule(DailySchedule dailySchedule)
Set the daily |
Snapshot |
withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not. |
Snapshot |
withHourlySchedule(HourlySchedule hourlySchedule)
Set the hourly |
Snapshot |
withLocation(String location)
Set the location property: Resource location. |
Snapshot |
withMonthlySchedule(MonthlySchedule monthlySchedule)
Set the monthly |
Snapshot |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Snapshot |
withWeeklySchedule(WeeklySchedule weeklySchedule)
Set the weekly |
Methods inherited from java.lang.Object
Constructor Details
SnapshotPolicyPatch
public SnapshotPolicyPatch()
Creates an instance of SnapshotPolicyPatch class.
Method Details
dailySchedule
public DailySchedule dailySchedule()
Get the dailySchedule property: Schedule for daily snapshots.
Returns:
enabled
public Boolean enabled()
Get the enabled property: The property to decide policy is enabled or not.
Returns:
hourlySchedule
public HourlySchedule hourlySchedule()
Get the hourlySchedule property: Schedule for hourly snapshots.
Returns:
id
public String id()
Get the id property: Resource Id.
Returns:
location
public String location()
Get the location property: Resource location.
Returns:
monthlySchedule
public MonthlySchedule monthlySchedule()
Get the monthlySchedule property: Schedule for monthly snapshots.
Returns:
name
public String name()
Get the name property: Resource name.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Azure lifecycle management.
Returns:
tags
public Map
Get the tags property: Resource tags.
Returns:
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
weeklySchedule
public WeeklySchedule weeklySchedule()
Get the weeklySchedule property: Schedule for weekly snapshots.
Returns:
withDailySchedule
public SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule)
Set the dailySchedule property: Schedule for daily snapshots.
Parameters:
Returns:
withEnabled
public SnapshotPolicyPatch withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not.
Parameters:
Returns:
withHourlySchedule
public SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule)
Set the hourlySchedule property: Schedule for hourly snapshots.
Parameters:
Returns:
withLocation
public SnapshotPolicyPatch withLocation(String location)
Set the location property: Resource location.
Parameters:
Returns:
withMonthlySchedule
public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule)
Set the monthlySchedule property: Schedule for monthly snapshots.
Parameters:
Returns:
withTags
public SnapshotPolicyPatch withTags(Map
Set the tags property: Resource tags.
Parameters:
Returns:
withWeeklySchedule
public SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule)
Set the weeklySchedule property: Schedule for weekly snapshots.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for