RecoveryPlanAction Class

Definition

Recovery plan action details.

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

Constructors

RecoveryPlanAction(String, IEnumerable<ReplicationProtectedItemOperation>, IEnumerable<PossibleOperationsDirection>, RecoveryPlanActionDetails)

Initializes a new instance of RecoveryPlanAction.

Properties

ActionName

The action name.

CustomDetails

The custom details. Please note RecoveryPlanActionDetails 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 RecoveryPlanAutomationRunbookActionDetails, RecoveryPlanManualActionDetails and RecoveryPlanScriptActionDetails.

FailoverDirections

The list of failover directions.

FailoverTypes

The list of failover types.

Explicit Interface Implementations

IJsonModel<RecoveryPlanAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RecoveryPlanAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RecoveryPlanAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RecoveryPlanAction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RecoveryPlanAction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to