CheckNameAvailabilityResultInner Class

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

Implements

public final class CheckNameAvailabilityResultInner
implements JsonSerializable<CheckNameAvailabilityResultInner>

The response payload for CheckNameAvailability API.

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: Error message.

Boolean nameAvailable()

Get the nameAvailable property: Indicates if name is valid and available.

Reason reason()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CheckNameAvailabilityResultInner withMessage(String message)

Set the message property: Error message.

CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates if name is valid and available.

CheckNameAvailabilityResultInner withReason(Reason reason)

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

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: Error message.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Indicates if name is valid and available.

Returns:

the nameAvailable value.

reason

public Reason reason()

Get the reason property: The reason the 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 CheckNameAvailabilityResultInner withMessage(String message)

Set the message property: Error message.

Parameters:

message - the message value to set.

Returns:

the CheckNameAvailabilityResultInner object itself.

withNameAvailable

public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates if name is valid and available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the CheckNameAvailabilityResultInner object itself.

withReason

public CheckNameAvailabilityResultInner withReason(Reason reason)

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

Parameters:

reason - the reason value to set.

Returns:

the CheckNameAvailabilityResultInner object itself.

Applies to