Class TopologyParameters

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

public final class TopologyParameters extends Object implements com.azure.json.JsonSerializable<TopologyParameters>
Parameters that define the representation of topology.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TopologyParameters from the JsonReader.
    Get the targetResourceGroupName property: The name of the target resource group to perform topology on.
    com.azure.core.management.SubResource
    Get the targetSubnet property: The reference to the Subnet resource.
    com.azure.core.management.SubResource
    Get the targetVirtualNetwork property: The reference to the Virtual Network resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withTargetResourceGroupName(String targetResourceGroupName)
    Set the targetResourceGroupName property: The name of the target resource group to perform topology on.
    withTargetSubnet(com.azure.core.management.SubResource targetSubnet)
    Set the targetSubnet property: The reference to the Subnet resource.
    withTargetVirtualNetwork(com.azure.core.management.SubResource targetVirtualNetwork)
    Set the targetVirtualNetwork property: The reference to the Virtual Network resource.

    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

    • TopologyParameters

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

    • targetResourceGroupName

      public String targetResourceGroupName()
      Get the targetResourceGroupName property: The name of the target resource group to perform topology on.
      Returns:
      the targetResourceGroupName value.
    • withTargetResourceGroupName

      public TopologyParameters withTargetResourceGroupName(String targetResourceGroupName)
      Set the targetResourceGroupName property: The name of the target resource group to perform topology on.
      Parameters:
      targetResourceGroupName - the targetResourceGroupName value to set.
      Returns:
      the TopologyParameters object itself.
    • targetVirtualNetwork

      public com.azure.core.management.SubResource targetVirtualNetwork()
      Get the targetVirtualNetwork property: The reference to the Virtual Network resource.
      Returns:
      the targetVirtualNetwork value.
    • withTargetVirtualNetwork

      public TopologyParameters withTargetVirtualNetwork(com.azure.core.management.SubResource targetVirtualNetwork)
      Set the targetVirtualNetwork property: The reference to the Virtual Network resource.
      Parameters:
      targetVirtualNetwork - the targetVirtualNetwork value to set.
      Returns:
      the TopologyParameters object itself.
    • targetSubnet

      public com.azure.core.management.SubResource targetSubnet()
      Get the targetSubnet property: The reference to the Subnet resource.
      Returns:
      the targetSubnet value.
    • withTargetSubnet

      public TopologyParameters withTargetSubnet(com.azure.core.management.SubResource targetSubnet)
      Set the targetSubnet property: The reference to the Subnet resource.
      Parameters:
      targetSubnet - the targetSubnet value to set.
      Returns:
      the TopologyParameters 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<TopologyParameters>
      Throws:
      IOException
    • fromJson

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