Class OperationDisplayInfo
java.lang.Object
com.azure.resourcemanager.peering.models.OperationDisplayInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationDisplayInfo>
public final class OperationDisplayInfo
extends Object
implements com.azure.json.JsonSerializable<OperationDisplayInfo>
The information related to the operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description of the operation.static OperationDisplayInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationDisplayInfo from the JsonReader.Get the operation property: The name of the operation.provider()Get the provider property: The name of the resource provider.resource()Get the resource property: The type of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OperationDisplayInfo
public OperationDisplayInfo()Creates an instance of OperationDisplayInfo class.
-
-
Method Details
-
provider
Get the provider property: The name of the resource provider.- Returns:
- the provider value.
-
resource
Get the resource property: The type of the resource.- Returns:
- the resource value.
-
operation
Get the operation property: The name of the operation.- Returns:
- the operation value.
-
description
Get the description property: The description of the operation.- Returns:
- the description value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationDisplayInfo>- Throws:
IOException
-
fromJson
public static OperationDisplayInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-