Class VirtualNetworkConfiguration

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

public final class VirtualNetworkConfiguration extends Object implements com.azure.json.JsonSerializable<VirtualNetworkConfiguration>
Configuration of a virtual network to which API Management service is deployed.
  • Constructor Details

    • VirtualNetworkConfiguration

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

    • vnetid

      public String vnetid()
      Get the vnetid property: The virtual network ID. This is typically a GUID. Expect a null GUID by default.
      Returns:
      the vnetid value.
    • subnetname

      public String subnetname()
      Get the subnetname property: The name of the subnet.
      Returns:
      the subnetname value.
    • subnetResourceId

      public String subnetResourceId()
      Get the subnetResourceId property: The full resource ID of a subnet in a virtual network to deploy the API Management service in.
      Returns:
      the subnetResourceId value.
    • withSubnetResourceId

      public VirtualNetworkConfiguration withSubnetResourceId(String subnetResourceId)
      Set the subnetResourceId property: The full resource ID of a subnet in a virtual network to deploy the API Management service in.
      Parameters:
      subnetResourceId - the subnetResourceId value to set.
      Returns:
      the VirtualNetworkConfiguration 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<VirtualNetworkConfiguration>
      Throws:
      IOException
    • fromJson

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