Class VirtualNetworkProfile

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

public final class VirtualNetworkProfile extends Object implements com.azure.json.JsonSerializable<VirtualNetworkProfile>
Specification for using a Virtual Network.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of VirtualNetworkProfile from the JsonReader.
    id()
    Get the id property: Resource id of the Virtual Network.
    Get the name property: Name of the Virtual Network (read-only).
    Get the subnet property: Subnet within the Virtual Network.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Resource type of the Virtual Network (read-only).
    void
    Validates the instance.
    Set the id property: Resource id of the Virtual Network.
    Set the subnet property: Subnet within the Virtual Network.

    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

    • VirtualNetworkProfile

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

    • id

      public String id()
      Get the id property: Resource id of the Virtual Network.
      Returns:
      the id value.
    • withId

      public VirtualNetworkProfile withId(String id)
      Set the id property: Resource id of the Virtual Network.
      Parameters:
      id - the id value to set.
      Returns:
      the VirtualNetworkProfile object itself.
    • name

      public String name()
      Get the name property: Name of the Virtual Network (read-only).
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: Resource type of the Virtual Network (read-only).
      Returns:
      the type value.
    • subnet

      public String subnet()
      Get the subnet property: Subnet within the Virtual Network.
      Returns:
      the subnet value.
    • withSubnet

      public VirtualNetworkProfile withSubnet(String subnet)
      Set the subnet property: Subnet within the Virtual Network.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the VirtualNetworkProfile object itself.
    • 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<VirtualNetworkProfile>
      Throws:
      IOException
    • fromJson

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