ManagedInstanceLongTermRetentionPolicyInner Class

public final class ManagedInstanceLongTermRetentionPolicyInner
extends ProxyResource

A long term retention policy.

Constructor Summary

Constructor Description
ManagedInstanceLongTermRetentionPolicyInner()

Creates an instance of ManagedInstanceLongTermRetentionPolicyInner class.

Method Summary

Modifier and Type Method and Description
String monthlyRetention()

Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.

void validate()

Validates the instance.

Integer weekOfYear()

Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.

String weeklyRetention()

Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.

ManagedInstanceLongTermRetentionPolicyInner withMonthlyRetention(String monthlyRetention)

Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.

ManagedInstanceLongTermRetentionPolicyInner withWeekOfYear(Integer weekOfYear)

Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.

ManagedInstanceLongTermRetentionPolicyInner withWeeklyRetention(String weeklyRetention)

Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.

ManagedInstanceLongTermRetentionPolicyInner withYearlyRetention(String yearlyRetention)

Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.

String yearlyRetention()

Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceLongTermRetentionPolicyInner

public ManagedInstanceLongTermRetentionPolicyInner()

Creates an instance of ManagedInstanceLongTermRetentionPolicyInner class.

Method Details

monthlyRetention

public String monthlyRetention()

Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.

Returns:

the monthlyRetention value.

validate

public void validate()

Validates the instance.

weekOfYear

public Integer weekOfYear()

Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.

Returns:

the weekOfYear value.

weeklyRetention

public String weeklyRetention()

Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.

Returns:

the weeklyRetention value.

withMonthlyRetention

public ManagedInstanceLongTermRetentionPolicyInner withMonthlyRetention(String monthlyRetention)

Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.

Parameters:

monthlyRetention - the monthlyRetention value to set.

Returns:

the ManagedInstanceLongTermRetentionPolicyInner object itself.

withWeekOfYear

public ManagedInstanceLongTermRetentionPolicyInner withWeekOfYear(Integer weekOfYear)

Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.

Parameters:

weekOfYear - the weekOfYear value to set.

Returns:

the ManagedInstanceLongTermRetentionPolicyInner object itself.

withWeeklyRetention

public ManagedInstanceLongTermRetentionPolicyInner withWeeklyRetention(String weeklyRetention)

Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.

Parameters:

weeklyRetention - the weeklyRetention value to set.

Returns:

the ManagedInstanceLongTermRetentionPolicyInner object itself.

withYearlyRetention

public ManagedInstanceLongTermRetentionPolicyInner withYearlyRetention(String yearlyRetention)

Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.

Parameters:

yearlyRetention - the yearlyRetention value to set.

Returns:

the ManagedInstanceLongTermRetentionPolicyInner object itself.

yearlyRetention

public String yearlyRetention()

Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.

Returns:

the yearlyRetention value.

Applies to