Class CheckNameAvailabilityResultInner
- java.lang.Object
-
- com.azure.resourcemanager.servicebus.fluent.models.CheckNameAvailabilityResultInner
-
public final class CheckNameAvailabilityResultInner extends Object
Description of a Check Name availability request properties.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityResultInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmessage()Get the message property: The detailed info regarding the reason associated with the namespace.BooleannameAvailable()Get the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.UnavailableReasonreason()Get the reason property: The reason for unavailability of a namespace.voidvalidate()Validates the instance.CheckNameAvailabilityResultInnerwithNameAvailable(Boolean nameAvailable)Set the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.CheckNameAvailabilityResultInnerwithReason(UnavailableReason reason)Set the reason property: The reason for unavailability of a namespace.
-
-
-
Method Detail
-
message
public String message()
Get the message property: The detailed info regarding the reason associated with the namespace.- Returns:
- the message value.
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.- Returns:
- the nameAvailable value.
-
withNameAvailable
public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.- Parameters:
nameAvailable- the nameAvailable value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
reason
public UnavailableReason reason()
Get the reason property: The reason for unavailability of a namespace.- Returns:
- the reason value.
-
withReason
public CheckNameAvailabilityResultInner withReason(UnavailableReason reason)
Set the reason property: The reason for unavailability of a namespace.- Parameters:
reason- the reason value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-