SnapshotPolicyInner Class

public final class SnapshotPolicyInner
extends Resource

Snapshot policy information.

Constructor Summary

Constructor Description
SnapshotPolicyInner()

Creates an instance of SnapshotPolicyInner class.

Method Summary

Modifier and Type Method and 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.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

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.

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:

the dailySchedule value.

enabled

public Boolean enabled()

Get the enabled property: The property to decide policy is enabled or not.

Returns:

the enabled value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

hourlySchedule

public HourlySchedule hourlySchedule()

Get the hourlySchedule property: Schedule for hourly snapshots.

Returns:

the hourlySchedule value.

monthlySchedule

public MonthlySchedule monthlySchedule()

Get the monthlySchedule property: Schedule for monthly snapshots.

Returns:

the monthlySchedule value.

provisioningState

public String provisioningState()

Get the provisioningState property: Azure lifecycle management.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

validate

public void validate()

Validates the instance.

weeklySchedule

public WeeklySchedule weeklySchedule()

Get the weeklySchedule property: Schedule for weekly snapshots.

Returns:

the weeklySchedule 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.

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.

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.

withLocation

public SnapshotPolicyInner withLocation(String location)

Overrides:

SnapshotPolicyInner.withLocation(String location)

Parameters:

location

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.

withTags

public SnapshotPolicyInner withTags(Map tags)

Overrides:

SnapshotPolicyInner.withTags(Map<String,String> tags)

Parameters:

tags

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.

Applies to