ArmRelayModelFactory.RelayNameAvailabilityResult Method

Definition

Initializes a new instance of RelayNameAvailabilityResult.

public static Azure.ResourceManager.Relay.Models.RelayNameAvailabilityResult RelayNameAvailabilityResult (string message = default, bool? isNameAvailable = default, Azure.ResourceManager.Relay.Models.RelayNameUnavailableReason? reason = default);
static member RelayNameAvailabilityResult : string * Nullable<bool> * Nullable<Azure.ResourceManager.Relay.Models.RelayNameUnavailableReason> -> Azure.ResourceManager.Relay.Models.RelayNameAvailabilityResult
Public Shared Function RelayNameAvailabilityResult (Optional message As String = Nothing, Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of RelayNameUnavailableReason) = Nothing) As RelayNameAvailabilityResult

Parameters

message
String

The detailed info regarding the reason associated with the namespace.

isNameAvailable
Nullable<Boolean>

Value indicating namespace is available. Returns true if the namespace is available; otherwise, false.

reason
Nullable<RelayNameUnavailableReason>

The reason for unavailability of a namespace.

Returns

A new RelayNameAvailabilityResult instance for mocking.

Applies to