com.azure.resourcemanager.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-resourcemanager-sql Show documentation
Show all versions of azure-resourcemanager-sql Show documentation
This package contains Microsoft Azure Sql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.sql.implementation;
import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl;
import com.azure.resourcemanager.sql.models.CheckNameAvailabilityResult;
import com.azure.resourcemanager.sql.fluent.models.CheckNameAvailabilityResponseInner;
/** Implementation for CheckNameAvailabilityResult. */
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.innerModel().available();
}
@Override
public String unavailabilityReason() {
return this.innerModel().reason() != null ? this.innerModel().reason().toString() : null;
}
@Override
public String unavailabilityMessage() {
return this.innerModel().message();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy