ApiManagementServiceNameAvailabilityResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. fluent. models. ApiManagementServiceNameAvailabilityResultInner
- com.
public final class ApiManagementServiceNameAvailabilityResultInner
Response of the CheckNameAvailability operation.
Constructor Summary
Constructor | Description |
---|---|
ApiManagementServiceNameAvailabilityResultInner() |
Creates an instance of Api |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
message()
Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. |
Boolean |
nameAvailable()
Get the name |
Name |
reason()
Get the reason property: Invalid indicates the name provided does not match the resource provider\u2019s naming requirements (incorrect length, unsupported characters, etc.) Already |
void |
validate()
Validates the instance. |
Api |
withReason(NameAvailabilityReason reason)
Set the reason property: Invalid indicates the name provided does not match the resource provider\u2019s naming requirements (incorrect length, unsupported characters, etc.) Already |
Methods inherited from java.lang.Object
Constructor Details
ApiManagementServiceNameAvailabilityResultInner
public ApiManagementServiceNameAvailabilityResultInner()
Creates an instance of ApiManagementServiceNameAvailabilityResultInner class.
Method Details
message
public String message()
Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: True if the name is available and can be used to create a new API Management service; otherwise false.
Returns:
reason
public NameAvailabilityReason reason()
Get 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.
Returns:
validate
public void validate()
Validates the instance.
withReason
public ApiManagementServiceNameAvailabilityResultInner withReason(NameAvailabilityReason reason)
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.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for