Partager via


SoftDeleteSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.SoftDeleteSettings

Implements

public final class SoftDeleteSettings
implements JsonSerializable<SoftDeleteSettings>

Soft delete related settings.

Constructor Summary

Constructor Description
SoftDeleteSettings()

Creates an instance of SoftDeleteSettings class.

Method Summary

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

Reads an instance of SoftDeleteSettings from the JsonReader.

Double retentionDurationInDays()

Get the retentionDurationInDays property: Soft delete retention duration.

SoftDeleteState state()

Get the state property: State of soft delete.

JsonWriter toJson(JsonWriter jsonWriter)
SoftDeleteSettings withRetentionDurationInDays(Double retentionDurationInDays)

Set the retentionDurationInDays property: Soft delete retention duration.

SoftDeleteSettings withState(SoftDeleteState state)

Set the state property: State of soft delete.

Methods inherited from java.lang.Object

Constructor Details

SoftDeleteSettings

public SoftDeleteSettings()

Creates an instance of SoftDeleteSettings class.

Method Details

fromJson

public static SoftDeleteSettings fromJson(JsonReader jsonReader)

Reads an instance of SoftDeleteSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SoftDeleteSettings.

retentionDurationInDays

public Double retentionDurationInDays()

Get the retentionDurationInDays property: Soft delete retention duration.

Returns:

the retentionDurationInDays value.

state

public SoftDeleteState state()

Get the state property: State of soft delete.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withRetentionDurationInDays

public SoftDeleteSettings withRetentionDurationInDays(Double retentionDurationInDays)

Set the retentionDurationInDays property: Soft delete retention duration.

Parameters:

retentionDurationInDays - the retentionDurationInDays value to set.

Returns:

the SoftDeleteSettings object itself.

withState

public SoftDeleteSettings withState(SoftDeleteState state)

Set the state property: State of soft delete.

Parameters:

state - the state value to set.

Returns:

the SoftDeleteSettings object itself.

Applies to