Condividi tramite


CheckNameAvailabilityRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest

Implements

public final class CheckNameAvailabilityRequest
implements JsonSerializable<CheckNameAvailabilityRequest>

Check name availability request A request about whether a workspace name is available.

Constructor Summary

Constructor Description
CheckNameAvailabilityRequest()

Creates an instance of CheckNameAvailabilityRequest class.

Method Summary

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

Reads an instance of CheckNameAvailabilityRequest from the JsonReader.

String name()

Get the name property: Workspace name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type: workspace.

void validate()

Validates the instance.

CheckNameAvailabilityRequest withName(String name)

Set the name property: Workspace name.

CheckNameAvailabilityRequest withType(String type)

Set the type property: Type: workspace.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityRequest

public CheckNameAvailabilityRequest()

Creates an instance of CheckNameAvailabilityRequest class.

Method Details

fromJson

public static CheckNameAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Workspace name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type: workspace.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameAvailabilityRequest withName(String name)

Set the name property: Workspace name.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityRequest object itself.

withType

public CheckNameAvailabilityRequest withType(String type)

Set the type property: Type: workspace.

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailabilityRequest object itself.

Applies to