OperationInfo Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. OperationInfo
- com.
Implements
public final class OperationInfo
implements JsonSerializable<OperationInfo>
Information about an operation.
Constructor Summary
| Constructor | Description |
|---|---|
| OperationInfo() |
Creates an instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
description()
Get the description property: Description of the operation. |
|
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
| 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Operation |
withDescription(String description)
Set the description property: Description of the operation. |
|
Operation |
withOperation(String operation)
Set the operation property: Name of the operation. |
|
Operation |
withProvider(String provider)
Set the provider property: Name of the provider. |
|
Operation |
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:
fromJson
public static OperationInfo fromJson(JsonReader jsonReader)
Reads an instance of OperationInfo from the JsonReader.
Parameters:
Returns:
Throws:
operation
public String operation()
Get the operation property: Name of the operation.
Returns:
provider
public String provider()
Get the provider property: Name of the provider.
Returns:
resource
public String resource()
Get the resource property: Name of the resource type.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public OperationInfo withDescription(String description)
Set the description property: Description of the operation.
Parameters:
Returns:
withOperation
public OperationInfo withOperation(String operation)
Set the operation property: Name of the operation.
Parameters:
Returns:
withProvider
public OperationInfo withProvider(String provider)
Set the provider property: Name of the provider.
Parameters:
Returns:
withResource
public OperationInfo withResource(String resource)
Set the resource property: Name of the resource type.
Parameters:
Returns: