com.microsoft.azure.management.sql.implementation.CheckNameAvailabilityResultImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-sql Show documentation
Show all versions of azure-mgmt-sql Show documentation
This package contains Microsoft Azure SDK for SQL Management module.
/**
* 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.sql.implementation;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl;
import com.microsoft.azure.management.sql.CheckNameAvailabilityResult;
/**
* Implementation for CheckNameAvailabilityResult.
*/
@LangDefinition
public class CheckNameAvailabilityResultImpl
extends WrapperImpl
implements CheckNameAvailabilityResult {
/**
* Creates an instance of the check name availability result object.
*
* @param inner the inner object
*/
CheckNameAvailabilityResultImpl(CheckNameAvailabilityResponseInner inner) {
super(inner);
}
@Override
public boolean isAvailable() {
return this.inner().available();
}
@Override
public String unavailabilityReason() {
return this.inner().reason() != null ? this.inner().reason().toString() : null;
}
@Override
public String unavailabilityMessage() {
return this.inner().message();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy