Class P2SVpnConnectionRequest
java.lang.Object
com.azure.resourcemanager.network.models.P2SVpnConnectionRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<P2SVpnConnectionRequest>
public final class P2SVpnConnectionRequest
extends Object
implements com.azure.json.JsonSerializable<P2SVpnConnectionRequest>
List of p2s vpn connections to be disconnected.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of P2SVpnConnectionRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic P2SVpnConnectionRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of P2SVpnConnectionRequest from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vpnConnectionIds property: List of p2s vpn connection Ids.withVpnConnectionIds(List<String> vpnConnectionIds) Set the vpnConnectionIds property: List of p2s vpn connection Ids.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
-
P2SVpnConnectionRequest
public P2SVpnConnectionRequest()Creates an instance of P2SVpnConnectionRequest class.
-
-
Method Details
-
vpnConnectionIds
Get the vpnConnectionIds property: List of p2s vpn connection Ids.- Returns:
- the vpnConnectionIds value.
-
withVpnConnectionIds
Set the vpnConnectionIds property: List of p2s vpn connection Ids.- Parameters:
vpnConnectionIds- the vpnConnectionIds value to set.- Returns:
- the P2SVpnConnectionRequest 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<P2SVpnConnectionRequest>- Throws:
IOException
-
fromJson
public static P2SVpnConnectionRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of P2SVpnConnectionRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of P2SVpnConnectionRequest 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 P2SVpnConnectionRequest.
-