Share via


WeeklyRetentionSchedule Class

Definition

Weekly retention schedule.

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

Constructors

WeeklyRetentionSchedule()

Initializes a new instance of WeeklyRetentionSchedule.

Properties

DaysOfTheWeek

List of days of week for weekly retention policy.

RetentionDuration

Retention duration of retention Policy.

RetentionTimes

Retention times of retention policy.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<WeeklyRetentionSchedule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<WeeklyRetentionSchedule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<WeeklyRetentionSchedule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<WeeklyRetentionSchedule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<WeeklyRetentionSchedule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to