SnapshotPolicyPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch

public final class SnapshotPolicyPatch

Snapshot policy Details for create and update.

Constructor Summary

Constructor Description
SnapshotPolicyPatch()

Creates an instance of SnapshotPolicyPatch 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.

HourlySchedule hourlySchedule()

Get the hourlySchedule property: Schedule for hourly snapshots.

String id()

Get the id property: Resource Id.

String location()

Get the location property: Resource location.

MonthlySchedule monthlySchedule()

Get the monthlySchedule property: Schedule for monthly snapshots.

String name()

Get the name property: Resource name.

String provisioningState()

Get the provisioningState property: Azure lifecycle management.

Map<String,String> tags()

Get the tags property: Resource tags.

String type()

Get the type property: Resource type.

void validate()

Validates the instance.

WeeklySchedule weeklySchedule()

Get the weeklySchedule property: Schedule for weekly snapshots.

SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule)

Set the dailySchedule property: Schedule for daily snapshots.

SnapshotPolicyPatch withEnabled(Boolean enabled)

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

SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule)

Set the hourlySchedule property: Schedule for hourly snapshots.

SnapshotPolicyPatch withLocation(String location)

Set the location property: Resource location.

SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule)

Set the monthlySchedule property: Schedule for monthly snapshots.

SnapshotPolicyPatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule)

Set the weeklySchedule property: Schedule for weekly snapshots.

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:

the dailySchedule value.

enabled

public Boolean enabled()

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

Returns:

the enabled value.

hourlySchedule

public HourlySchedule hourlySchedule()

Get the hourlySchedule property: Schedule for hourly snapshots.

Returns:

the hourlySchedule value.

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

monthlySchedule

public MonthlySchedule monthlySchedule()

Get the monthlySchedule property: Schedule for monthly snapshots.

Returns:

the monthlySchedule value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

provisioningState

public String provisioningState()

Get the provisioningState property: Azure lifecycle management.

Returns:

the provisioningState value.

tags

public Map tags()

Get the tags property: Resource tags.

Returns:

the tags value.

type

public String type()

Get the type property: Resource type.

Returns:

the type 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 SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule)

Set the dailySchedule property: Schedule for daily snapshots.

Parameters:

dailySchedule - the dailySchedule value to set.

Returns:

the SnapshotPolicyPatch object itself.

withEnabled

public SnapshotPolicyPatch 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 SnapshotPolicyPatch object itself.

withHourlySchedule

public SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule)

Set the hourlySchedule property: Schedule for hourly snapshots.

Parameters:

hourlySchedule - the hourlySchedule value to set.

Returns:

the SnapshotPolicyPatch object itself.

withLocation

public SnapshotPolicyPatch withLocation(String location)

Set the location property: Resource location.

Parameters:

location - the location value to set.

Returns:

the SnapshotPolicyPatch object itself.

withMonthlySchedule

public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule)

Set the monthlySchedule property: Schedule for monthly snapshots.

Parameters:

monthlySchedule - the monthlySchedule value to set.

Returns:

the SnapshotPolicyPatch object itself.

withTags

public SnapshotPolicyPatch withTags(Map tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the SnapshotPolicyPatch object itself.

withWeeklySchedule

public SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule)

Set the weeklySchedule property: Schedule for weekly snapshots.

Parameters:

weeklySchedule - the weeklySchedule value to set.

Returns:

the SnapshotPolicyPatch object itself.

Applies to