CheckNameAvailabilityResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. servicebus. fluent. models. CheckNameAvailabilityResultInner
- com.
Implements
public final class CheckNameAvailabilityResultInner
implements JsonSerializable<CheckNameAvailabilityResultInner>
Description of a Check Name availability request properties.
Constructor Summary
Constructor | Description |
---|---|
CheckNameAvailabilityResultInner() |
Creates an instance of Check |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Check |
fromJson(JsonReader jsonReader)
Reads an instance of Check |
String |
message()
Get the message property: The detailed info regarding the reason associated with the namespace. |
Boolean |
nameAvailable()
Get the name |
Unavailable |
reason()
Get the reason property: The reason for unavailability of a namespace. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Check |
withNameAvailable(Boolean nameAvailable)
Set the name |
Check |
withReason(UnavailableReason reason)
Set the reason property: The reason for unavailability of a namespace. |
Methods inherited from java.lang.Object
Constructor Details
CheckNameAvailabilityResultInner
public CheckNameAvailabilityResultInner()
Creates an instance of CheckNameAvailabilityResultInner class.
Method Details
fromJson
public static CheckNameAvailabilityResultInner fromJson(JsonReader jsonReader)
Reads an instance of CheckNameAvailabilityResultInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The detailed info regarding the reason associated with the namespace.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.
Returns:
reason
public UnavailableReason reason()
Get the reason property: The reason for unavailability of a namespace.
Returns:
toJson
validate
public void validate()
Validates the instance.
withNameAvailable
public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.
Parameters:
Returns:
withReason
public CheckNameAvailabilityResultInner withReason(UnavailableReason reason)
Set the reason property: The reason for unavailability of a namespace.
Parameters:
Returns:
Applies to
Azure SDK for Java