Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.trafficmanager;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.trafficmanager.implementation.TrafficManagerNameAvailabilityInner;
The result of checking for DNS name availability.
/**
* The result of checking for DNS name availability.
*/
@LangDefinition
public class CheckProfileDnsNameAvailabilityResult {
private TrafficManagerNameAvailabilityInner inner;
Creates an instance of CheckProfileDnsNameAvailabilityResult.
Params: - inner – the inner object
/**
* Creates an instance of CheckProfileDnsNameAvailabilityResult.
*
* @param inner the inner object
*/
public CheckProfileDnsNameAvailabilityResult(TrafficManagerNameAvailabilityInner inner) {
this.inner = inner;
}
Returns: true if the DNS name is available to use, false if the name has already been taken
or invalid and cannot be used.
/**
* @return true if the DNS name is available to use, false if the name has already been taken
* or invalid and cannot be used.
*/
public boolean isAvailable() {
return inner.nameAvailable();
}
Returns: the reason that the DNS name could not be used
/**
* @return the reason that the DNS name could not be used
*/
public ProfileDnsNameUnavailableReason reason() {
return new ProfileDnsNameUnavailableReason(inner.reason());
}
Returns: an error message explaining the reason value in more detail
/**
* @return an error message explaining the reason value in more detail
*/
public String message() {
return inner.message();
}
}