Class OperationDisplayInfo
java.lang.Object
com.azure.resourcemanager.botservice.models.OperationDisplayInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationDisplayInfo>
public final class OperationDisplayInfo
extends Object
implements com.azure.json.JsonSerializable<OperationDisplayInfo>
The operation supported by Bot Service Management.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description of the operation.static OperationDisplayInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationDisplayInfo from the JsonReader.Get the operation property: The action that users can perform, based on their permission level.provider()Get the provider property: Service provider: Microsoft Bot Service.resource()Get the resource property: Resource on which the operation is performed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: The description of the operation.withOperation(String operation) Set the operation property: The action that users can perform, based on their permission level.withProvider(String provider) Set the provider property: Service provider: Microsoft Bot Service.withResource(String resource) Set the resource property: Resource on which the operation is performed.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
-
OperationDisplayInfo
public OperationDisplayInfo()Creates an instance of OperationDisplayInfo class.
-
-
Method Details
-
description
Get the description property: The description of the operation.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the operation.- Parameters:
description- the description value to set.- Returns:
- the OperationDisplayInfo object itself.
-
operation
Get the operation property: The action that users can perform, based on their permission level.- Returns:
- the operation value.
-
withOperation
Set the operation property: The action that users can perform, based on their permission level.- Parameters:
operation- the operation value to set.- Returns:
- the OperationDisplayInfo object itself.
-
provider
Get the provider property: Service provider: Microsoft Bot Service.- Returns:
- the provider value.
-
withProvider
Set the provider property: Service provider: Microsoft Bot Service.- Parameters:
provider- the provider value to set.- Returns:
- the OperationDisplayInfo object itself.
-
resource
Get the resource property: Resource on which the operation is performed.- Returns:
- the resource value.
-
withResource
Set the resource property: Resource on which the operation is performed.- Parameters:
resource- the resource value to set.- Returns:
- the OperationDisplayInfo 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<OperationDisplayInfo>- Throws:
IOException
-
fromJson
public static OperationDisplayInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationDisplayInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationDisplayInfo 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 OperationDisplayInfo.
-