
com.microsoft.azure.management.trafficmanager.CheckProfileDnsNameAvailabilityResult Maven / Gradle / Ivy
/**
* 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.
*/
@LangDefinition
public class CheckProfileDnsNameAvailabilityResult {
private TrafficManagerNameAvailabilityInner inner;
/**
* Creates an instance of CheckProfileDnsNameAvailabilityResult.
*
* @param inner the inner object
*/
public CheckProfileDnsNameAvailabilityResult(TrafficManagerNameAvailabilityInner inner) {
this.inner = inner;
}
/**
* @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();
}
/**
* @return the reason that the DNS name could not be used
*/
public ProfileDnsNameUnavailableReason reason() {
return new ProfileDnsNameUnavailableReason(inner.reason());
}
/**
* @return an error message explaining the reason value in more detail
*/
public String message() {
return inner.message();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy