ApiManagementServiceNameAvailabilityResultInner.withReason(NameAvailabilityReason reason) Method

Definition

Set the reason property: Invalid indicates the name provided does not match the resource provider\u2019s naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable.

public ApiManagementServiceNameAvailabilityResultInner withReason(NameAvailabilityReason reason)

Parameters

reason
NameAvailabilityReason

the reason value to set.

Returns

the ApiManagementServiceNameAvailabilityResultInner object itself.

Applies to