次の方法で共有


OperationInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.OperationInfo

Implements

public final class OperationInfo
implements JsonSerializable<OperationInfo>

Information about an operation.

Constructor Summary

Constructor Description
OperationInfo()

Creates an instance of OperationInfo class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the operation.

static OperationInfo fromJson(JsonReader jsonReader)

Reads an instance of OperationInfo from the JsonReader.

String operation()

Get the operation property: Name of the operation.

String provider()

Get the provider property: Name of the provider.

String resource()

Get the resource property: Name of the resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationInfo withDescription(String description)

Set the description property: Description of the operation.

OperationInfo withOperation(String operation)

Set the operation property: Name of the operation.

OperationInfo withProvider(String provider)

Set the provider property: Name of the provider.

OperationInfo withResource(String resource)

Set the resource property: Name of the resource type.

Methods inherited from java.lang.Object

Constructor Details

OperationInfo

public OperationInfo()

Creates an instance of OperationInfo class.

Method Details

description

public String description()

Get the description property: Description of the operation.

Returns:

the description value.

fromJson

public static OperationInfo fromJson(JsonReader jsonReader)

Reads an instance of OperationInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationInfo 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 OperationInfo.

operation

public String operation()

Get the operation property: Name of the operation.

Returns:

the operation value.

provider

public String provider()

Get the provider property: Name of the provider.

Returns:

the provider value.

resource

public String resource()

Get the resource property: Name of the resource type.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public OperationInfo withDescription(String description)

Set the description property: Description of the operation.

Parameters:

description - the description value to set.

Returns:

the OperationInfo object itself.

withOperation

public OperationInfo withOperation(String operation)

Set the operation property: Name of the operation.

Parameters:

operation - the operation value to set.

Returns:

the OperationInfo object itself.

withProvider

public OperationInfo withProvider(String provider)

Set the provider property: Name of the provider.

Parameters:

provider - the provider value to set.

Returns:

the OperationInfo object itself.

withResource

public OperationInfo withResource(String resource)

Set the resource property: Name of the resource type.

Parameters:

resource - the resource value to set.

Returns:

the OperationInfo object itself.

Applies to