ArmKeyVaultModelFactory.ManagedHsmNameAvailabilityResult 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 ManagedHsmNameAvailabilityResult.
public static Azure.ResourceManager.KeyVault.Models.ManagedHsmNameAvailabilityResult ManagedHsmNameAvailabilityResult (bool? isNameAvailable = default, Azure.ResourceManager.KeyVault.Models.ManagedHsmNameUnavailableReason? reason = default, string message = default);
static member ManagedHsmNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.KeyVault.Models.ManagedHsmNameUnavailableReason> * string -> Azure.ResourceManager.KeyVault.Models.ManagedHsmNameAvailabilityResult
Public Shared Function ManagedHsmNameAvailabilityResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of ManagedHsmNameUnavailableReason) = Nothing, Optional message As String = Nothing) As ManagedHsmNameAvailabilityResult
Parameters
A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.
The reason that a managed hsm name could not be used. The reason element is only returned if NameAvailable is false.
- message
- String
An error message explaining the Reason value in more detail.
Returns
A new ManagedHsmNameAvailabilityResult instance for mocking.