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 Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNetworkConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkConfiguration from the JsonReader.Get the subnetname property: The name of the subnet.Get the subnetResourceId property: The full resource ID of a subnet in a virtual network to deploy the API Management service in.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vnetid()Get the vnetid property: The virtual network ID.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.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
-
VirtualNetworkConfiguration
public VirtualNetworkConfiguration()Creates an instance of VirtualNetworkConfiguration class.
-
-
Method Details
-
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
Get the subnetname property: The name of the subnet.- Returns:
- the subnetname value.
-
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
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
- Specified by:
toJsonin interfacecom.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.
-