All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.servicebus.implementation.CheckNameAvailabilityResultImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure ServiceBus 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.servicebus.implementation;

import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl;
import com.azure.resourcemanager.servicebus.fluent.models.CheckNameAvailabilityResultInner;
import com.azure.resourcemanager.servicebus.models.CheckNameAvailabilityResult;
import com.azure.resourcemanager.servicebus.models.UnavailableReason;

/**
 * Implementation for CheckNameAvailabilityResult.
 */
class CheckNameAvailabilityResultImpl
        extends WrapperImpl
        implements CheckNameAvailabilityResult {
    /**
     * Creates an instance of the check name availability result object.
     *
     * @param inner the inner object
     */
    CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner inner) {
        super(inner);
    }

    @Override
    public boolean isAvailable() {
        return innerModel().nameAvailable();
    }

    @Override
    public UnavailableReason unavailabilityReason() {
        return innerModel().reason();
    }

    @Override
    public String unavailabilityMessage() {
        return innerModel().message();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy