Class ProxyResource

java.lang.Object
com.azure.core.management.ProxyResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<ProxyResource>
Direct Known Subclasses:
Resource

public class ProxyResource extends Object implements com.azure.json.JsonSerializable<ProxyResource>
The Proxy Resource model.
  • Constructor Details

    • ProxyResource

      public ProxyResource()
      Creates an instance of ProxyResource.
  • Method Details

    • id

      public String id()
      Get the id value.
      Returns:
      the fully qualified resource ID for the resource.
    • name

      public String name()
      Get the name value.
      Returns:
      the name of the resource.
    • type

      public String type()
      Get the type value.
      Returns:
      the type of the resource.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ProxyResource>
      Throws:
      IOException
    • fromJson

      public static ProxyResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads a JSON stream into a ProxyResource.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      The ProxyResource that the JSON stream represented, may return null.
      Throws:
      IOException - If a ProxyResource fails to be read from the jsonReader.