Freigeben über


CheckNameAvailabilityResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.servicebus.fluent.models.CheckNameAvailabilityResultInner

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 CheckNameAvailabilityResultInner class.

Method Summary

Modifier and Type Method and Description
static CheckNameAvailabilityResultInner fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityResultInner from the JsonReader.

String message()

Get the message property: The detailed info regarding the reason associated with the namespace.

Boolean nameAvailable()

Get the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.

UnavailableReason reason()

Get the reason property: The reason for unavailability of a namespace.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Value indicating namespace is availability, true if the namespace is available; otherwise, false.

CheckNameAvailabilityResultInner 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:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameAvailabilityResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CheckNameAvailabilityResultInner.

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.

reason

public UnavailableReason reason()

Get the reason property: The reason for unavailability of a namespace.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

nameAvailable - the nameAvailable value to set.

Returns:

the CheckNameAvailabilityResultInner object itself.

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.

Applies to