你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CheckNameAvailabilityResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.confidentialledger.fluent.models.CheckNameAvailabilityResponseInner

Implements

public final class CheckNameAvailabilityResponseInner
implements JsonSerializable<CheckNameAvailabilityResponseInner>

The check availability result.

Constructor Summary

Constructor Description
CheckNameAvailabilityResponseInner()

Creates an instance of CheckNameAvailabilityResponseInner class.

Method Summary

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

Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.

String message()

Get the message property: Detailed reason why the given name is available.

Boolean nameAvailable()

Get the nameAvailable property: Indicates if the resource name is available.

CheckNameAvailabilityReason reason()

Get the reason property: The reason why the given name is not available.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CheckNameAvailabilityResponseInner withMessage(String message)

Set the message property: Detailed reason why the given name is available.

CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates if the resource name is available.

CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason reason)

Set the reason property: The reason why the given name is not available.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityResponseInner

public CheckNameAvailabilityResponseInner()

Creates an instance of CheckNameAvailabilityResponseInner class.

Method Details

fromJson

public static CheckNameAvailabilityResponseInner fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameAvailabilityResponseInner 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 CheckNameAvailabilityResponseInner.

message

public String message()

Get the message property: Detailed reason why the given name is available.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Indicates if the resource name is available.

Returns:

the nameAvailable value.

reason

public CheckNameAvailabilityReason reason()

Get the reason property: The reason why the given name is not available.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessage

public CheckNameAvailabilityResponseInner withMessage(String message)

Set the message property: Detailed reason why the given name is available.

Parameters:

message - the message value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

withNameAvailable

public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates if the resource name is available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

withReason

public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason reason)

Set the reason property: The reason why the given name is not available.

Parameters:

reason - the reason value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

Applies to