Operation Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. Operation
- com.
Implements
public final class Operation
implements JsonSerializable<Operation>
Microsoft Insights API operation definition.
Constructor Summary
Constructor | Description |
---|---|
Operation() |
Creates an instance of Operation class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Operation |
display()
Get the display property: Display metadata associated with the operation. |
static Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation from the Json |
String |
name()
Get the name property: Operation name: {provider}/{resource}/{operation}. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Operation |
withDisplay(OperationDisplay display)
Set the display property: Display metadata associated with the operation. |
Operation |
withName(String name)
Set the name property: Operation name: {provider}/{resource}/{operation}. |
Methods inherited from java.lang.Object
Constructor Details
Operation
public Operation()
Creates an instance of Operation class.
Method Details
display
public OperationDisplay display()
Get the display property: Display metadata associated with the operation.
Returns:
fromJson
public static Operation fromJson(JsonReader jsonReader)
Reads an instance of Operation from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Operation name: {provider}/{resource}/{operation}.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDisplay
public Operation withDisplay(OperationDisplay display)
Set the display property: Display metadata associated with the operation.
Parameters:
Returns:
withName
public Operation withName(String name)
Set the name property: Operation name: {provider}/{resource}/{operation}.
Parameters:
Returns:
Applies to
Azure SDK for Java