CheckNameAvailabilityRequestBody Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.CheckNameAvailabilityRequestBody

Implements

public final class CheckNameAvailabilityRequestBody
implements JsonSerializable<CheckNameAvailabilityRequestBody>

The request body for a request to Bot Service Management to check availability of a bot name.

Constructor Summary

Constructor Description
CheckNameAvailabilityRequestBody()

Creates an instance of CheckNameAvailabilityRequestBody class.

Method Summary

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

Reads an instance of CheckNameAvailabilityRequestBody from the JsonReader.

String name()

Get the name property: the name of the bot for which availability needs to be checked.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: the type of the bot for which availability needs to be checked.

void validate()

Validates the instance.

CheckNameAvailabilityRequestBody withName(String name)

Set the name property: the name of the bot for which availability needs to be checked.

CheckNameAvailabilityRequestBody withType(String type)

Set the type property: the type of the bot for which availability needs to be checked.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityRequestBody

public CheckNameAvailabilityRequestBody()

Creates an instance of CheckNameAvailabilityRequestBody class.

Method Details

fromJson

public static CheckNameAvailabilityRequestBody fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityRequestBody from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: the name of the bot for which availability needs to be checked.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: the type of the bot for which availability needs to be checked.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameAvailabilityRequestBody withName(String name)

Set the name property: the name of the bot for which availability needs to be checked.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityRequestBody object itself.

withType

public CheckNameAvailabilityRequestBody withType(String type)

Set the type property: the type of the bot for which availability needs to be checked.

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailabilityRequestBody object itself.

Applies to