Share via


SiteRecoveryPolicyCreateOrUpdateContent Class

Definition

Protection Policy input.

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

Constructors

Name Description
SiteRecoveryPolicyCreateOrUpdateContent()

Initializes a new instance of SiteRecoveryPolicyCreateOrUpdateContent.

Properties

Name Description
SiteRecoveryCreateProviderSpecificContent

The ReplicationProviderSettings. Please note PolicyProviderSpecificContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include A2APolicyCreationContent, A2ACrossClusterMigrationPolicyCreationContent, HyperVReplicaPolicyContent, HyperVReplicaBluePolicyContent, HyperVReplicaAzurePolicyContent, InMagePolicyContent, InMageAzureV2PolicyContent, InMageRcmPolicyCreationContent, InMageRcmFailbackPolicyCreationContent and VMwareCbtPolicyCreationContent.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<SiteRecoveryPolicyCreateOrUpdateContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SiteRecoveryPolicyCreateOrUpdateContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SiteRecoveryPolicyCreateOrUpdateContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SiteRecoveryPolicyCreateOrUpdateContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SiteRecoveryPolicyCreateOrUpdateContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to