Class SubResource

java.lang.Object
com.azure.core.management.SubResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<SubResource>

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

    • SubResource

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

    • id

      public String id()
      Get the id value.
      Returns:
      the id value
    • withId

      public SubResource withId(String id)
      Set the id value.
      Parameters:
      id - the id value to set
      Returns:
      the sub resource itself
    • toJson

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

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