PromoteReplicaContent Class

Definition

Promote replica request properties.

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

Constructors

PromoteReplicaContent(MongoClusterPromoteOption)

Initializes a new instance of PromoteReplicaContent.

Properties

Mode

The mode to apply to the promote operation. Value is optional and default value is 'Switchover'.

PromoteOption

The promote option to apply to the operation.

Explicit Interface Implementations

IJsonModel<PromoteReplicaContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PromoteReplicaContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PromoteReplicaContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PromoteReplicaContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PromoteReplicaContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to