SnapshotPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. netapp. fluent. models. SnapshotPolicyInner
- com.
- com.
- com.
public final class SnapshotPolicyInner
extends Resource
Snapshot policy information.
Constructor Summary
Constructor | Description |
---|---|
SnapshotPolicyInner() |
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. |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
Hourly |
hourlySchedule()
Get the hourly |
Monthly |
monthlySchedule()
Get the monthly |
String |
provisioningState()
Get the provisioning |
System |
systemData()
Get the system |
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) |
Snapshot |
withMonthlySchedule(MonthlySchedule monthlySchedule)
Set the monthly |
Snapshot |
withTags(Map<String,String> tags) |
Snapshot |
withWeeklySchedule(WeeklySchedule weeklySchedule)
Set the weekly |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
SnapshotPolicyInner
public SnapshotPolicyInner()
Creates an instance of SnapshotPolicyInner 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:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
hourlySchedule
public HourlySchedule hourlySchedule()
Get the hourlySchedule property: Schedule for hourly snapshots.
Returns:
monthlySchedule
public MonthlySchedule monthlySchedule()
Get the monthlySchedule property: Schedule for monthly snapshots.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Azure lifecycle management.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
validate
public void validate()
Validates the instance.
weeklySchedule
public WeeklySchedule weeklySchedule()
Get the weeklySchedule property: Schedule for weekly snapshots.
Returns:
withDailySchedule
public SnapshotPolicyInner withDailySchedule(DailySchedule dailySchedule)
Set the dailySchedule property: Schedule for daily snapshots.
Parameters:
Returns:
withEnabled
public SnapshotPolicyInner withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not.
Parameters:
Returns:
withHourlySchedule
public SnapshotPolicyInner withHourlySchedule(HourlySchedule hourlySchedule)
Set the hourlySchedule property: Schedule for hourly snapshots.
Parameters:
Returns:
withLocation
public SnapshotPolicyInner withLocation(String location)
Overrides:
SnapshotPolicyInner.withLocation(String location)Parameters:
withMonthlySchedule
public SnapshotPolicyInner withMonthlySchedule(MonthlySchedule monthlySchedule)
Set the monthlySchedule property: Schedule for monthly snapshots.
Parameters:
Returns:
withTags
public SnapshotPolicyInner withTags(Map
Overrides:
SnapshotPolicyInner.withTags(Map<String,String> tags)Parameters:
withWeeklySchedule
public SnapshotPolicyInner 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