Udostępnij za pośrednictwem


ArmEnergyServicesModelFactory.EnergyServiceNameAvailabilityResult Method

Definition

Initializes a new instance of EnergyServiceNameAvailabilityResult.

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

Parameters

nameAvailable
Nullable<Boolean>

Indicates if the resource name is available.

reason
Nullable<EnergyServiceNameUnavailableReason>

The reason why the given name is not available.

message
String

Detailed reason why the given name is available.

Returns

A new EnergyServiceNameAvailabilityResult instance for mocking.

Applies to