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.eventhub.implementation; import com.microsoft.azure.management.eventhub.UnavailableReason; import com.fasterxml.jackson.annotation.JsonProperty;
The Result of the CheckNameAvailability operation.
/** * The Result of the CheckNameAvailability operation. */
public class CheckNameAvailabilityResultInner {
The detailed info regarding the reason associated with the Namespace.
/** * The detailed info regarding the reason associated with the Namespace. */
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message;
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 reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
/** * The reason for unavailability of a Namespace. Possible values include: * 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', * 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'. */
@JsonProperty(value = "reason") private UnavailableReason reason;
Get the detailed info regarding the reason associated with the Namespace.
Returns:the message value
/** * Get the detailed info regarding the reason associated with the Namespace. * * @return the message value */
public String message() { return this.message; }
Get value indicating Namespace is availability, true if the Namespace is available; otherwise, false.
Returns:the nameAvailable value
/** * Get value indicating Namespace is availability, true if the Namespace is available; otherwise, false. * * @return the nameAvailable value */
public Boolean nameAvailable() { return this.nameAvailable; }
Set value indicating Namespace is availability, true if the Namespace is available; otherwise, false.
Params:
  • nameAvailable – the nameAvailable value to set
Returns:the CheckNameAvailabilityResultInner object itself.
/** * Set value indicating Namespace is availability, true if the Namespace is available; otherwise, false. * * @param nameAvailable the nameAvailable value to set * @return the CheckNameAvailabilityResultInner object itself. */
public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) { this.nameAvailable = nameAvailable; return this; }
Get the reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
Returns:the reason value
/** * Get the reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'. * * @return the reason value */
public UnavailableReason reason() { return this.reason; }
Set the reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
Params:
  • reason – the reason value to set
Returns:the CheckNameAvailabilityResultInner object itself.
/** * Set the reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'. * * @param reason the reason value to set * @return the CheckNameAvailabilityResultInner object itself. */
public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) { this.reason = reason; return this; } }