Partager via


ManagedBackupShortTermRetentionPolicyInner Class

public final class ManagedBackupShortTermRetentionPolicyInner
extends ProxyResource

A short term retention policy.

Constructor Summary

Constructor Description
ManagedBackupShortTermRetentionPolicyInner()

Creates an instance of ManagedBackupShortTermRetentionPolicyInner class.

Method Summary

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

Reads an instance of ManagedBackupShortTermRetentionPolicyInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

Integer retentionDays()

Get the retentionDays property: The backup retention period in days.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagedBackupShortTermRetentionPolicyInner withRetentionDays(Integer retentionDays)

Set the retentionDays property: The backup retention period in days.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagedBackupShortTermRetentionPolicyInner

public ManagedBackupShortTermRetentionPolicyInner()

Creates an instance of ManagedBackupShortTermRetentionPolicyInner class.

Method Details

fromJson

public static ManagedBackupShortTermRetentionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedBackupShortTermRetentionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ManagedBackupShortTermRetentionPolicyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedBackupShortTermRetentionPolicyInner.name()

Returns:

the name value.

retentionDays

public Integer retentionDays()

Get the retentionDays property: The backup retention period in days. This is how many days Point-in-Time Restore will be supported.

Returns:

the retentionDays value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedBackupShortTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedBackupShortTermRetentionPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withRetentionDays

public ManagedBackupShortTermRetentionPolicyInner withRetentionDays(Integer retentionDays)

Set the retentionDays property: The backup retention period in days. This is how many days Point-in-Time Restore will be supported.

Parameters:

retentionDays - the retentionDays value to set.

Returns:

the ManagedBackupShortTermRetentionPolicyInner object itself.

Applies to