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

com.microsoft.azure.management.servicebus.implementation.CheckNameAvailabilityResultInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Service Bus Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.servicebus.implementation;

import com.microsoft.azure.management.servicebus.UnavailableReason;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Description of a Check Name availability request properties.
 */
public class CheckNameAvailabilityResultInner {
    /**
     * Value indicating namespace is availability, true if the namespace is
     * available; otherwise, false.
     */
    @JsonProperty(value = "nameAvailable")
    private Boolean nameAvailable;

    /**
     * The unavailabilityReason for unavailability of a namespace. Possible values include:
     * 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse',
     * 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
     */
    @JsonProperty(value = "unavailabilityReason")
    private UnavailableReason reason;

    /**
     * The detailed info regarding the unavailabilityReason associated with the namespace.
     */
    @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
    private String message;

    /**
     * Get the nameAvailable value.
     *
     * @return the nameAvailable value
     */
    public Boolean nameAvailable() {
        return this.nameAvailable;
    }

    /**
     * Set the nameAvailable value.
     *
     * @param nameAvailable the nameAvailable value to set
     * @return the CheckNameAvailabilityResultInner object itself
     */
    public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
        this.nameAvailable = nameAvailable;
        return this;
    }

    /**
     * Get the unavailabilityReason value.
     *
     * @return the unavailabilityReason value
     */
    public UnavailableReason reason() {
        return this.reason;
    }

    /**
     * Set the unavailabilityReason value.
     *
     * @param reason the unavailabilityReason value to set
     * @return the CheckNameAvailabilityResultInner object itself
     */
    public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) {
        this.reason = reason;
        return this;
    }

    /**
     * Get the message value.
     *
     * @return the message value
     */
    public String message() {
        return this.message;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy