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
static ManagedInstanceLongTermRetentionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceLongTermRetentionPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String monthlyRetention()

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

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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

fromJson

public static ManagedInstanceLongTermRetentionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceLongTermRetentionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedInstanceLongTermRetentionPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagedInstanceLongTermRetentionPolicyInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedInstanceLongTermRetentionPolicyInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedInstanceLongTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedInstanceLongTermRetentionPolicyInner.type()

Returns:

the type 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