Class PrivateLinkResource

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

public final class PrivateLinkResource extends Object implements com.azure.json.JsonSerializable<PrivateLinkResource>
A private link resource.
  • Method Details

    • id

      public String id()
      Get the id property: The id property.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Name of a private link resource.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The type property.
      Returns:
      the type value.
    • properties

      public PrivateLinkResourceProperties properties()
      Get the properties property: Properties of a private link resource.
      Returns:
      the properties 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<PrivateLinkResource>
      Throws:
      IOException
    • fromJson

      public static PrivateLinkResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PrivateLinkResource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PrivateLinkResource 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 PrivateLinkResource.