Class CheckNameAvailabilityResponseBodyInner
java.lang.Object
com.azure.resourcemanager.botservice.fluent.models.CheckNameAvailabilityResponseBodyInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckNameAvailabilityResponseBodyInner>
public final class CheckNameAvailabilityResponseBodyInner
extends Object
implements com.azure.json.JsonSerializable<CheckNameAvailabilityResponseBodyInner>
The response body returned for a request to Bot Service Management to check availability of a bot name.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckNameAvailabilityResponseBodyInner class. -
Method Summary
Modifier and TypeMethodDescriptionabsCode()Get the absCode property: response code from ABS.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckNameAvailabilityResponseBodyInner from the JsonReader.message()Get the message property: additional message from the bot management api showing why a bot name is not available.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) valid()Get the valid property: indicates if the bot name is valid.voidvalidate()Validates the instance.withAbsCode(String absCode) Set the absCode property: response code from ABS.withMessage(String message) Set the message property: additional message from the bot management api showing why a bot name is not available.Set the valid property: indicates if the bot name is valid.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
-
CheckNameAvailabilityResponseBodyInner
public CheckNameAvailabilityResponseBodyInner()Creates an instance of CheckNameAvailabilityResponseBodyInner class.
-
-
Method Details
-
valid
Get the valid property: indicates if the bot name is valid.- Returns:
- the valid value.
-
withValid
Set the valid property: indicates if the bot name is valid.- Parameters:
valid- the valid value to set.- Returns:
- the CheckNameAvailabilityResponseBodyInner object itself.
-
message
Get the message property: additional message from the bot management api showing why a bot name is not available.- Returns:
- the message value.
-
withMessage
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.
-
absCode
Get the absCode property: response code from ABS.- Returns:
- the absCode value.
-
withAbsCode
Set the absCode property: response code from ABS.- Parameters:
absCode- the absCode value to set.- Returns:
- the CheckNameAvailabilityResponseBodyInner 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<CheckNameAvailabilityResponseBodyInner>- Throws:
IOException
-
fromJson
public static CheckNameAvailabilityResponseBodyInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-