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.
/** * 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.
/** * Description of a Check Name availability request properties. */
public class CheckNameAvailabilityResultInner {
Value indicating namespace is availability, true if the namespace is available; otherwise, false.
/** * 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'.
/** * 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.
/** * 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.
Returns:the nameAvailable value
/** * Get the nameAvailable value. * * @return the nameAvailable value */
public Boolean nameAvailable() { return this.nameAvailable; }
Set the nameAvailable value.
Params:
  • nameAvailable – the nameAvailable value to set
Returns:the CheckNameAvailabilityResultInner object itself
/** * 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.
Returns:the unavailabilityReason value
/** * Get the unavailabilityReason value. * * @return the unavailabilityReason value */
public UnavailableReason reason() { return this.reason; }
Set the unavailabilityReason value.
Params:
  • reason – the unavailabilityReason value to set
Returns:the CheckNameAvailabilityResultInner object itself
/** * 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.
Returns:the message value
/** * Get the message value. * * @return the message value */
public String message() { return this.message; } }