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
    Constructor
    Description
    Creates an instance of OperationDisplayInfo class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the description property: The description of the operation.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of OperationDisplayInfo from the JsonReader.
    Get the operation property: The name of the operation.
    Get the provider property: The name of the resource provider.
    Get the resource property: The type of the resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public String provider()
      Get the provider property: The name of the resource provider.
      Returns:
      the provider value.
    • resource

      public String resource()
      Get the resource property: The type of the resource.
      Returns:
      the resource value.
    • operation

      public String operation()
      Get the operation property: The name of the operation.
      Returns:
      the operation value.
    • description

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.