BackupShortTermRetentionPolicyInner Class

public final class BackupShortTermRetentionPolicyInner
extends ProxyResource

A short term retention policy.

Constructor Summary

Constructor Description
BackupShortTermRetentionPolicyInner()

Creates an instance of BackupShortTermRetentionPolicyInner class.

Method Summary

Modifier and Type Method and Description
DiffBackupIntervalInHours diffBackupIntervalInHours()

Get the diffBackupIntervalInHours property: The differential backup interval in hours.

static BackupShortTermRetentionPolicyInner fromJson(JsonReader jsonReader)

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

BackupShortTermRetentionPolicyInner withDiffBackupIntervalInHours(DiffBackupIntervalInHours diffBackupIntervalInHours)

Set the diffBackupIntervalInHours property: The differential backup interval in hours.

BackupShortTermRetentionPolicyInner 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

BackupShortTermRetentionPolicyInner

public BackupShortTermRetentionPolicyInner()

Creates an instance of BackupShortTermRetentionPolicyInner class.

Method Details

diffBackupIntervalInHours

public DiffBackupIntervalInHours diffBackupIntervalInHours()

Get the diffBackupIntervalInHours property: The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.

Returns:

the diffBackupIntervalInHours value.

fromJson

public static BackupShortTermRetentionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of BackupShortTermRetentionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

BackupShortTermRetentionPolicyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

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

BackupShortTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

BackupShortTermRetentionPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDiffBackupIntervalInHours

public BackupShortTermRetentionPolicyInner withDiffBackupIntervalInHours(DiffBackupIntervalInHours diffBackupIntervalInHours)

Set the diffBackupIntervalInHours property: The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.

Parameters:

diffBackupIntervalInHours - the diffBackupIntervalInHours value to set.

Returns:

the BackupShortTermRetentionPolicyInner object itself.

withRetentionDays

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

Applies to