Class CheckNameAvailabilityRequestBody
java.lang.Object
com.azure.resourcemanager.botservice.models.CheckNameAvailabilityRequestBody
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckNameAvailabilityRequestBody>
public final class CheckNameAvailabilityRequestBody
extends Object
implements com.azure.json.JsonSerializable<CheckNameAvailabilityRequestBody>
The request body for a request to Bot Service Management to check availability of a bot name.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckNameAvailabilityRequestBody class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckNameAvailabilityRequestBody from the JsonReader.name()Get the name property: the name of the bot for which availability needs to be checked.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: the type of the bot for which availability needs to be checked.voidvalidate()Validates the instance.Set the name property: the name of the bot for which availability needs to be checked.Set the type property: the type of the bot for which availability needs to be checked.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CheckNameAvailabilityRequestBody
public CheckNameAvailabilityRequestBody()Creates an instance of CheckNameAvailabilityRequestBody class.
-
-
Method Details
-
name
Get the name property: the name of the bot for which availability needs to be checked.- Returns:
- the name value.
-
withName
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.
-
type
Get the type property: the type of the bot for which availability needs to be checked.- Returns:
- the type value.
-
withType
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CheckNameAvailabilityRequestBody>- Throws:
IOException
-
fromJson
public static CheckNameAvailabilityRequestBody fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-