Class Metadata

java.lang.Object
com.azure.resourcemanager.appnetwork.models.Metadata
All Implemented Interfaces:
com.azure.json.JsonSerializable<Metadata>

public final class Metadata extends Object implements com.azure.json.JsonSerializable<Metadata>
AppLinkMember metadata.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Metadata class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Metadata
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Metadata from the JsonReader.
    Get the resourceId property: Resource ID.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    withResourceId(String resourceId)
    Set the resourceId property: Resource ID.

    Methods inherited from class 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

    • Metadata

      public Metadata()
      Creates an instance of Metadata class.
  • Method Details

    • resourceId

      public String resourceId()
      Get the resourceId property: Resource ID.
      Returns:
      the resourceId value.
    • withResourceId

      public Metadata withResourceId(String resourceId)
      Set the resourceId property: Resource ID.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the Metadata object itself.
    • toJson

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

      public static Metadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Metadata from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Metadata if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the Metadata.