SoftDeleteSettings Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. SoftDeleteSettings
- com.
Implements
public final class SoftDeleteSettings
implements JsonSerializable<SoftDeleteSettings>
Soft delete related settings.
Constructor Summary
| Constructor | Description |
|---|---|
| SoftDeleteSettings() |
Creates an instance of Soft |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Soft |
fromJson(JsonReader jsonReader)
Reads an instance of Soft |
| Double |
retentionDurationInDays()
Get the retention |
|
Soft |
state()
Get the state property: State of soft delete. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Soft |
withRetentionDurationInDays(Double retentionDurationInDays)
Set the retention |
|
Soft |
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:
Returns:
Throws:
retentionDurationInDays
public Double retentionDurationInDays()
Get the retentionDurationInDays property: Soft delete retention duration.
Returns:
state
public SoftDeleteState state()
Get the state property: State of soft delete.
Returns:
toJson
withRetentionDurationInDays
public SoftDeleteSettings withRetentionDurationInDays(Double retentionDurationInDays)
Set the retentionDurationInDays property: Soft delete retention duration.
Parameters:
Returns:
withState
public SoftDeleteSettings withState(SoftDeleteState state)
Set the state property: State of soft delete.
Parameters:
Returns: