Class CheckNameAvailabilityRequestBody
- java.lang.Object
-
- com.azure.resourcemanager.botservice.models.CheckNameAvailabilityRequestBody
-
public final class CheckNameAvailabilityRequestBody extends Object
The request body for a request to Bot Service Management to check availability of a bot name.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityRequestBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: the name of the bot for which availability needs to be checked.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.
-
-
-
Method Detail
-
name
public String name()
Get the name property: the name of the bot for which availability needs to be checked.- Returns:
- the name value.
-
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.
-
type
public String type()
Get the type property: the type of the bot for which availability needs to be checked.- Returns:
- the type value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-