OperationDisplay Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.OperationDisplay

Implements

public final class OperationDisplay
implements JsonSerializable<OperationDisplay>

Display metadata associated with the operation.

Constructor Summary

Constructor Description
OperationDisplay()

Creates an instance of OperationDisplay class.

Method Summary

Modifier and Type Method and Description
static OperationDisplay fromJson(JsonReader jsonReader)

Reads an instance of OperationDisplay from the JsonReader.

String operation()

Get the operation property: Operation type: Read, write, delete, etc.

String provider()

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

String resource()

Get the resource property: Resource on which the operation is performed: AlertRules, Autoscale, etc.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationDisplay withOperation(String operation)

Set the operation property: Operation type: Read, write, delete, etc.

OperationDisplay withProvider(String provider)

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

OperationDisplay withResource(String resource)

Set the resource property: Resource on which the operation is performed: AlertRules, Autoscale, etc.

Methods inherited from java.lang.Object

Constructor Details

OperationDisplay

public OperationDisplay()

Creates an instance of OperationDisplay class.

Method Details

fromJson

public static OperationDisplay fromJson(JsonReader jsonReader)

Reads an instance of OperationDisplay from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operation

public String operation()

Get the operation property: Operation type: Read, write, delete, etc.

Returns:

the operation value.

provider

public String provider()

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

Returns:

the provider value.

resource

public String resource()

Get the resource property: Resource on which the operation is performed: AlertRules, Autoscale, etc.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOperation

public OperationDisplay withOperation(String operation)

Set the operation property: Operation type: Read, write, delete, etc.

Parameters:

operation - the operation value to set.

Returns:

the OperationDisplay object itself.

withProvider

public OperationDisplay withProvider(String provider)

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

Parameters:

provider - the provider value to set.

Returns:

the OperationDisplay object itself.

withResource

public OperationDisplay withResource(String resource)

Set the resource property: Resource on which the operation is performed: AlertRules, Autoscale, etc.

Parameters:

resource - the resource value to set.

Returns:

the OperationDisplay object itself.

Applies to