次の方法で共有


CheckNameAvailabilityResponseBodyInner Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.fluent.models.CheckNameAvailabilityResponseBodyInner

Implements

public final class CheckNameAvailabilityResponseBodyInner
implements JsonSerializable<CheckNameAvailabilityResponseBodyInner>

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

Constructor Summary

Constructor Description
CheckNameAvailabilityResponseBodyInner()

Creates an instance of CheckNameAvailabilityResponseBodyInner class.

Method Summary

Modifier and Type Method and Description
String absCode()

Get the absCode property: response code from ABS.

static CheckNameAvailabilityResponseBodyInner fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityResponseBodyInner from the JsonReader.

String message()

Get the message property: additional message from the bot management api showing why a bot name is not available.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean valid()

Get the valid property: indicates if the bot name is valid.

void validate()

Validates the instance.

CheckNameAvailabilityResponseBodyInner withAbsCode(String absCode)

Set the absCode property: response code from ABS.

CheckNameAvailabilityResponseBodyInner withMessage(String message)

Set the message property: additional message from the bot management api showing why a bot name is not available.

CheckNameAvailabilityResponseBodyInner withValid(Boolean valid)

Set the valid property: indicates if the bot name is valid.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityResponseBodyInner

public CheckNameAvailabilityResponseBodyInner()

Creates an instance of CheckNameAvailabilityResponseBodyInner class.

Method Details

absCode

public String absCode()

Get the absCode property: response code from ABS.

Returns:

the absCode value.

fromJson

public static CheckNameAvailabilityResponseBodyInner fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityResponseBodyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: additional message from the bot management api showing why a bot name is not available.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

valid

public Boolean valid()

Get the valid property: indicates if the bot name is valid.

Returns:

the valid value.

validate

public void validate()

Validates the instance.

withAbsCode

public CheckNameAvailabilityResponseBodyInner withAbsCode(String absCode)

Set the absCode property: response code from ABS.

Parameters:

absCode - the absCode value to set.

Returns:

the CheckNameAvailabilityResponseBodyInner object itself.

withMessage

public CheckNameAvailabilityResponseBodyInner withMessage(String message)

Set the message property: additional message from the bot management api showing why a bot name is not available.

Parameters:

message - the message value to set.

Returns:

the CheckNameAvailabilityResponseBodyInner object itself.

withValid

public CheckNameAvailabilityResponseBodyInner withValid(Boolean valid)

Set the valid property: indicates if the bot name is valid.

Parameters:

valid - the valid value to set.

Returns:

the CheckNameAvailabilityResponseBodyInner object itself.

Applies to