CheckProfileDnsNameAvailabilityResult Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.CheckProfileDnsNameAvailabilityResult

public class CheckProfileDnsNameAvailabilityResult

The result of checking for DNS name availability.

Constructor Summary

Constructor Description
CheckProfileDnsNameAvailabilityResult(TrafficManagerNameAvailabilityInner inner)

Creates an instance of CheckProfileDnsNameAvailabilityResult.

Method Summary

Modifier and Type Method and Description
boolean isAvailable()

Checks whether the DNS name is available to use.

String message()

Gets an error message explaining the reason value in more detail.

ProfileDnsNameUnavailableReason reason()

Gets the reason that the DNS name could not be used.

Methods inherited from java.lang.Object

Constructor Details

CheckProfileDnsNameAvailabilityResult

public CheckProfileDnsNameAvailabilityResult(TrafficManagerNameAvailabilityInner inner)

Creates an instance of CheckProfileDnsNameAvailabilityResult.

Parameters:

inner - the inner object

Method Details

isAvailable

public boolean isAvailable()

Checks whether the DNS name is available to use.

Returns:

true if the DNS name is available to use, false if the name has already been taken or invalid and cannot be used.

message

public String message()

Gets an error message explaining the reason value in more detail.

Returns:

an error message explaining the reason value in more detail

reason

public ProfileDnsNameUnavailableReason reason()

Gets the reason that the DNS name could not be used.

Returns:

the reason that the DNS name could not be used

Applies to