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

com.azure.resourcemanager.servicebus.models.CheckNameAvailabilityResult 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

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.resourcemanager.servicebus.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel;
import com.azure.resourcemanager.servicebus.fluent.models.CheckNameAvailabilityResultInner;

/**
 * The result of checking for Service Bus namespace name availability.
 */
@Fluent
public interface CheckNameAvailabilityResult extends HasInnerModel {
    /**
     * @return a boolean value that indicates whether the name is available for
     * you to use. If true, the name is available. If false, the name has
     * already been taken or invalid and cannot be used.
     */
    boolean isAvailable();
    /**
     * @return the unavailabilityReason that a namespace name could not be used. The
     * Reason element is only returned if NameAvailable is false.
     */
    UnavailableReason unavailabilityReason();
    /**
     * @return an error message explaining the Reason value in more detail
     */
    String unavailabilityMessage();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy