ArmDataMigrationModelFactory.NameAvailabilityResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Azure SDK for .NET