ArmDataMigrationModelFactory.NameAvailabilityResponse Method

Definition

Initializes a new instance of NameAvailabilityResponse.

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

Parameters

nameAvailable
Nullable<Boolean>

If true, the name is valid and available. If false, 'reason' describes why not.

reason
Nullable<NameCheckFailureReason>

The reason why the name is not available, if nameAvailable is false.

message
String

The localized reason why the name is not available, if nameAvailable is false.

Returns

A new NameAvailabilityResponse instance for mocking.

Applies to