次の方法で共有


OperationDisplayInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.OperationDisplayInfo

Implements

public final class OperationDisplayInfo
implements JsonSerializable<OperationDisplayInfo>

The operation supported by Bot Service Management.

Constructor Summary

Constructor Description
OperationDisplayInfo()

Creates an instance of OperationDisplayInfo class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description of the operation.

static OperationDisplayInfo fromJson(JsonReader jsonReader)

Reads an instance of OperationDisplayInfo from the JsonReader.

String operation()

Get the operation property: The action that users can perform, based on their permission level.

String provider()

Get the provider property: Service provider: Microsoft Bot Service.

String resource()

Get the resource property: Resource on which the operation is performed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationDisplayInfo withDescription(String description)

Set the description property: The description of the operation.

OperationDisplayInfo withOperation(String operation)

Set the operation property: The action that users can perform, based on their permission level.

OperationDisplayInfo withProvider(String provider)

Set the provider property: Service provider: Microsoft Bot Service.

OperationDisplayInfo withResource(String resource)

Set the resource property: Resource on which the operation is performed.

Methods inherited from java.lang.Object

Constructor Details

OperationDisplayInfo

public OperationDisplayInfo()

Creates an instance of OperationDisplayInfo class.

Method Details

description

public String description()

Get the description property: The description of the operation.

Returns:

the description value.

fromJson

public static OperationDisplayInfo fromJson(JsonReader jsonReader)

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.

operation

public String operation()

Get the operation property: The action that users can perform, based on their permission level.

Returns:

the operation value.

provider

public String provider()

Get the provider property: Service provider: Microsoft Bot Service.

Returns:

the provider value.

resource

public String resource()

Get the resource property: Resource on which the operation is performed.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public OperationDisplayInfo withDescription(String description)

Set the description property: The description of the operation.

Parameters:

description - the description value to set.

Returns:

the OperationDisplayInfo object itself.

withOperation

public OperationDisplayInfo withOperation(String operation)

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.

withProvider

public OperationDisplayInfo withProvider(String provider)

Set the provider property: Service provider: Microsoft Bot Service.

Parameters:

provider - the provider value to set.

Returns:

the OperationDisplayInfo object itself.

withResource

public OperationDisplayInfo withResource(String resource)

Set the resource property: Resource on which the operation is performed.

Parameters:

resource - the resource value to set.

Returns:

the OperationDisplayInfo object itself.

Applies to