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 -
Method Summary
Modifier and TypeMethodDescriptionstatic TopologyParametersfromJson(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.SubResourceGet the targetSubnet property: The reference to the Subnet resource.com.azure.core.management.SubResourceGet the targetVirtualNetwork property: The reference to the Virtual Network resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
Get the targetResourceGroupName property: The name of the target resource group to perform topology on.- Returns:
- the targetResourceGroupName value.
-
withTargetResourceGroupName
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TopologyParameters>- Throws:
IOException
-
fromJson
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.
-