DatabaseCheckNameRequest Class

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

Implements

public final class DatabaseCheckNameRequest
implements JsonSerializable<DatabaseCheckNameRequest>

The result returned from a database check name availability request.

Constructor Summary

Constructor Description
DatabaseCheckNameRequest()

Creates an instance of DatabaseCheckNameRequest class.

Method Summary

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

Reads an instance of DatabaseCheckNameRequest from the JsonReader.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases.

void validate()

Validates the instance.

DatabaseCheckNameRequest withName(String name)

Set the name property: Resource name.

DatabaseCheckNameRequest withType(Type type)

Set the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases.

Methods inherited from java.lang.Object

Constructor Details

DatabaseCheckNameRequest

public DatabaseCheckNameRequest()

Creates an instance of DatabaseCheckNameRequest class.

Method Details

fromJson

public static DatabaseCheckNameRequest fromJson(JsonReader jsonReader)

Reads an instance of DatabaseCheckNameRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseCheckNameRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public DatabaseCheckNameRequest withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the DatabaseCheckNameRequest object itself.

withType

public DatabaseCheckNameRequest withType(Type type)

Set the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases.

Parameters:

type - the type value to set.

Returns:

the DatabaseCheckNameRequest object itself.

Applies to