다음을 통해 공유


CheckNameResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.digitaltwins.fluent.models.CheckNameResultInner

Implements

public final class CheckNameResultInner
implements JsonSerializable<CheckNameResultInner>

The result returned from a check name availability request.

Constructor Summary

Constructor Description
CheckNameResultInner()

Creates an instance of CheckNameResultInner class.

Method Summary

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

Reads an instance of CheckNameResultInner from the JsonReader.

String message()

Get the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.

Boolean nameAvailable()

Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

Reason reason()

Get the reason property: Message providing the reason why the given name is invalid.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CheckNameResultInner withMessage(String message)

Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.

CheckNameResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

CheckNameResultInner withReason(Reason reason)

Set the reason property: Message providing the reason why the given name is invalid.

Methods inherited from java.lang.Object

Constructor Details

CheckNameResultInner

public CheckNameResultInner()

Creates an instance of CheckNameResultInner class.

Method Details

fromJson

public static CheckNameResultInner fromJson(JsonReader jsonReader)

Reads an instance of CheckNameResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

Returns:

the nameAvailable value.

reason

public Reason reason()

Get the reason property: Message providing the reason why the given name is invalid.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessage

public CheckNameResultInner withMessage(String message)

Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.

Parameters:

message - the message value to set.

Returns:

the CheckNameResultInner object itself.

withNameAvailable

public CheckNameResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the CheckNameResultInner object itself.

withReason

public CheckNameResultInner withReason(Reason reason)

Set the reason property: Message providing the reason why the given name is invalid.

Parameters:

reason - the reason value to set.

Returns:

the CheckNameResultInner object itself.

Applies to