Aracılığıyla paylaş


CheckNameRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.digitaltwins.models.CheckNameRequest

Implements

public final class CheckNameRequest
implements JsonSerializable<CheckNameRequest>

The result returned from a database check name availability request.

Constructor Summary

Constructor Description
CheckNameRequest()

Creates an instance of CheckNameRequest class.

Method Summary

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

Reads an instance of CheckNameRequest from the JsonReader.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.

void validate()

Validates the instance.

CheckNameRequest withName(String name)

Set the name property: Resource name.

Methods inherited from java.lang.Object

Constructor Details

CheckNameRequest

public CheckNameRequest()

Creates an instance of CheckNameRequest class.

Method Details

fromJson

public static CheckNameRequest fromJson(JsonReader jsonReader)

Reads an instance of CheckNameRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameRequest 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 String type()

Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameRequest withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the CheckNameRequest object itself.

Applies to