Compartilhar via


ArmMongoClusterModelFactory.MongoClusterReplicationProperties Method

Definition

Initializes a new instance of MongoClusterReplicationProperties.

public static Azure.ResourceManager.MongoCluster.Models.MongoClusterReplicationProperties MongoClusterReplicationProperties (Azure.Core.ResourceIdentifier sourceResourceId = default, Azure.ResourceManager.MongoCluster.Models.MongoClusterReplicationRole? role = default, Azure.ResourceManager.MongoCluster.Models.MongoClusterReplicationState? replicationState = default);
static member MongoClusterReplicationProperties : Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.MongoCluster.Models.MongoClusterReplicationRole> * Nullable<Azure.ResourceManager.MongoCluster.Models.MongoClusterReplicationState> -> Azure.ResourceManager.MongoCluster.Models.MongoClusterReplicationProperties
Public Shared Function MongoClusterReplicationProperties (Optional sourceResourceId As ResourceIdentifier = Nothing, Optional role As Nullable(Of MongoClusterReplicationRole) = Nothing, Optional replicationState As Nullable(Of MongoClusterReplicationState) = Nothing) As MongoClusterReplicationProperties

Parameters

sourceResourceId
ResourceIdentifier

The resource id the source cluster for the replica cluster.

role
Nullable<MongoClusterReplicationRole>

The replication role of the cluster.

replicationState
Nullable<MongoClusterReplicationState>

The replication link state of the replica cluster.

Returns

A new MongoClusterReplicationProperties instance for mocking.

Applies to