CheckNameAvailabilityResponseInner Class

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

Implements

public final class CheckNameAvailabilityResponseInner
implements JsonSerializable<CheckNameAvailabilityResponseInner>

Check name availability response A response saying whether the workspace name is available.

Constructor Summary

Constructor Description
CheckNameAvailabilityResponseInner()

Creates an instance of CheckNameAvailabilityResponseInner class.

Method Summary

Modifier and Type Method and Description
Boolean available()

Get the available property: Whether the workspace name is available.

static CheckNameAvailabilityResponseInner fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityResponseInner from the JsonReader.

String message()

Get the message property: Validation message.

String name()

Get the name property: Workspace name.

String reason()

Get the reason property: Reason the workspace name is or is not available.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CheckNameAvailabilityResponseInner withAvailable(Boolean available)

Set the available property: Whether the workspace name is available.

CheckNameAvailabilityResponseInner withMessage(String message)

Set the message property: Validation message.

CheckNameAvailabilityResponseInner withName(String name)

Set the name property: Workspace name.

CheckNameAvailabilityResponseInner withReason(String reason)

Set the reason property: Reason the workspace name is or is not available.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityResponseInner

public CheckNameAvailabilityResponseInner()

Creates an instance of CheckNameAvailabilityResponseInner class.

Method Details

available

public Boolean available()

Get the available property: Whether the workspace name is available.

Returns:

the available value.

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

Returns:

the message value.

name

public String name()

Get the name property: Workspace name.

Returns:

the name value.

reason

public String reason()

Get the reason property: Reason the workspace name is or is not available.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvailable

public CheckNameAvailabilityResponseInner withAvailable(Boolean available)

Set the available property: Whether the workspace name is available.

Parameters:

available - the available value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

withMessage

public CheckNameAvailabilityResponseInner withMessage(String message)

Set the message property: Validation message.

Parameters:

message - the message value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

withName

public CheckNameAvailabilityResponseInner withName(String name)

Set the name property: Workspace name.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

withReason

public CheckNameAvailabilityResponseInner withReason(String reason)

Set the reason property: Reason the workspace name is or is not available.

Parameters:

reason - the reason value to set.

Returns:

the CheckNameAvailabilityResponseInner object itself.

Applies to