Class VpnClientConnectionHealth
java.lang.Object
com.azure.resourcemanager.network.models.VpnClientConnectionHealth
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnClientConnectionHealth>
public final class VpnClientConnectionHealth
extends Object
implements com.azure.json.JsonSerializable<VpnClientConnectionHealth>
VpnClientConnectionHealth properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VpnClientConnectionHealth class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allocatedIpAddresses property: List of allocated ip addresses to the connected p2s vpn clients.static VpnClientConnectionHealthfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VpnClientConnectionHealth from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the totalEgressBytesTransferred property: Total of the Egress Bytes Transferred in this connection.Get the totalIngressBytesTransferred property: Total of the Ingress Bytes Transferred in this P2S Vpn connection.voidvalidate()Validates the instance.Get the vpnClientConnectionsCount property: The total of p2s vpn clients connected at this time to this P2SVpnGateway.withAllocatedIpAddresses(List<String> allocatedIpAddresses) Set the allocatedIpAddresses property: List of allocated ip addresses to the connected p2s vpn clients.withVpnClientConnectionsCount(Integer vpnClientConnectionsCount) Set the vpnClientConnectionsCount property: The total of p2s vpn clients connected at this time to this P2SVpnGateway.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
-
VpnClientConnectionHealth
public VpnClientConnectionHealth()Creates an instance of VpnClientConnectionHealth class.
-
-
Method Details
-
totalIngressBytesTransferred
Get the totalIngressBytesTransferred property: Total of the Ingress Bytes Transferred in this P2S Vpn connection.- Returns:
- the totalIngressBytesTransferred value.
-
totalEgressBytesTransferred
Get the totalEgressBytesTransferred property: Total of the Egress Bytes Transferred in this connection.- Returns:
- the totalEgressBytesTransferred value.
-
vpnClientConnectionsCount
Get the vpnClientConnectionsCount property: The total of p2s vpn clients connected at this time to this P2SVpnGateway.- Returns:
- the vpnClientConnectionsCount value.
-
withVpnClientConnectionsCount
Set the vpnClientConnectionsCount property: The total of p2s vpn clients connected at this time to this P2SVpnGateway.- Parameters:
vpnClientConnectionsCount- the vpnClientConnectionsCount value to set.- Returns:
- the VpnClientConnectionHealth object itself.
-
allocatedIpAddresses
Get the allocatedIpAddresses property: List of allocated ip addresses to the connected p2s vpn clients.- Returns:
- the allocatedIpAddresses value.
-
withAllocatedIpAddresses
Set the allocatedIpAddresses property: List of allocated ip addresses to the connected p2s vpn clients.- Parameters:
allocatedIpAddresses- the allocatedIpAddresses value to set.- Returns:
- the VpnClientConnectionHealth 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<VpnClientConnectionHealth>- Throws:
IOException
-
fromJson
public static VpnClientConnectionHealth fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VpnClientConnectionHealth from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VpnClientConnectionHealth 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 VpnClientConnectionHealth.
-