Поделиться через


SimpleRetentionPolicy Class

Definition

Simple policy retention.

public class SimpleRetentionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RecoveryServicesBackup.Models.SimpleRetentionPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RecoveryServicesBackup.Models.SimpleRetentionPolicy>
type SimpleRetentionPolicy = class
    inherit BackupRetentionPolicy
    interface IJsonModel<SimpleRetentionPolicy>
    interface IPersistableModel<SimpleRetentionPolicy>
Public Class SimpleRetentionPolicy
Inherits BackupRetentionPolicy
Implements IJsonModel(Of SimpleRetentionPolicy), IPersistableModel(Of SimpleRetentionPolicy)
Inheritance
SimpleRetentionPolicy
Implements

Constructors

SimpleRetentionPolicy()

Initializes a new instance of SimpleRetentionPolicy.

Properties

RetentionDuration

Retention duration of the protection policy.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BackupRetentionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from BackupRetentionPolicy)
IJsonModel<BackupRetentionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from BackupRetentionPolicy)
IJsonModel<SimpleRetentionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SimpleRetentionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BackupRetentionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from BackupRetentionPolicy)
IPersistableModel<BackupRetentionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from BackupRetentionPolicy)
IPersistableModel<BackupRetentionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from BackupRetentionPolicy)
IPersistableModel<SimpleRetentionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SimpleRetentionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SimpleRetentionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to