ArmDataMigrationModelFactory.DataMigrationServiceNameAvailabilityResult 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 DataMigrationServiceNameAvailabilityResult.
public static Azure.ResourceManager.DataMigration.Models.DataMigrationServiceNameAvailabilityResult DataMigrationServiceNameAvailabilityResult(bool? isNameAvailable = default, Azure.ResourceManager.DataMigration.Models.DataMigrationServiceNameUnavailableReason? reason = default, string message = default);
static member DataMigrationServiceNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.DataMigration.Models.DataMigrationServiceNameUnavailableReason> * string -> Azure.ResourceManager.DataMigration.Models.DataMigrationServiceNameAvailabilityResult
Public Shared Function DataMigrationServiceNameAvailabilityResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of DataMigrationServiceNameUnavailableReason) = Nothing, Optional message As String = Nothing) As DataMigrationServiceNameAvailabilityResult
Parameters
If true, the name is valid and available. If false, 'reason' describes why not.
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 DataMigrationServiceNameAvailabilityResult instance for mocking.