LongTermRetentionPolicyInner Class

public final class LongTermRetentionPolicyInner
extends ProxyResource

A long term retention policy.

Constructor Summary

Constructor Description
LongTermRetentionPolicyInner()

Creates an instance of LongTermRetentionPolicyInner class.

Method Summary

Modifier and Type Method and Description
static LongTermRetentionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of LongTermRetentionPolicyInner 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.

LongTermRetentionPolicyInner withMonthlyRetention(String monthlyRetention)

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

LongTermRetentionPolicyInner withWeekOfYear(Integer weekOfYear)

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

LongTermRetentionPolicyInner withWeeklyRetention(String weeklyRetention)

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

LongTermRetentionPolicyInner 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

LongTermRetentionPolicyInner

public LongTermRetentionPolicyInner()

Creates an instance of LongTermRetentionPolicyInner class.

Method Details

fromJson

public static LongTermRetentionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of LongTermRetentionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LongTermRetentionPolicyInner 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:

LongTermRetentionPolicyInner.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:

LongTermRetentionPolicyInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LongTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

LongTermRetentionPolicyInner.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 LongTermRetentionPolicyInner 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 LongTermRetentionPolicyInner object itself.

withWeekOfYear

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

withWeeklyRetention

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

withYearlyRetention

public LongTermRetentionPolicyInner 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 LongTermRetentionPolicyInner 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