Class IpTraffic
java.lang.Object
com.azure.resourcemanager.network.models.IpTraffic
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IpTraffic>
IP traffic information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationIps property: List of destination IP addresses of the traffic..Get the destinationPorts property: The destination ports of the traffic.static IpTrafficfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpTraffic from the JsonReader.Get the protocols property: The protocols property.Get the sourceIps property: List of source IP addresses of the traffic..Get the sourcePorts property: The source ports of the traffic.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationIps(List<String> destinationIps) Set the destinationIps property: List of destination IP addresses of the traffic..withDestinationPorts(List<String> destinationPorts) Set the destinationPorts property: The destination ports of the traffic.withProtocols(List<NetworkProtocol> protocols) Set the protocols property: The protocols property.withSourceIps(List<String> sourceIps) Set the sourceIps property: List of source IP addresses of the traffic..withSourcePorts(List<String> sourcePorts) Set the sourcePorts property: The source ports of the traffic.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
-
IpTraffic
public IpTraffic()Creates an instance of IpTraffic class.
-
-
Method Details
-
sourceIps
Get the sourceIps property: List of source IP addresses of the traffic..- Returns:
- the sourceIps value.
-
withSourceIps
Set the sourceIps property: List of source IP addresses of the traffic..- Parameters:
sourceIps- the sourceIps value to set.- Returns:
- the IpTraffic object itself.
-
destinationIps
Get the destinationIps property: List of destination IP addresses of the traffic..- Returns:
- the destinationIps value.
-
withDestinationIps
Set the destinationIps property: List of destination IP addresses of the traffic..- Parameters:
destinationIps- the destinationIps value to set.- Returns:
- the IpTraffic object itself.
-
sourcePorts
Get the sourcePorts property: The source ports of the traffic.- Returns:
- the sourcePorts value.
-
withSourcePorts
Set the sourcePorts property: The source ports of the traffic.- Parameters:
sourcePorts- the sourcePorts value to set.- Returns:
- the IpTraffic object itself.
-
destinationPorts
Get the destinationPorts property: The destination ports of the traffic.- Returns:
- the destinationPorts value.
-
withDestinationPorts
Set the destinationPorts property: The destination ports of the traffic.- Parameters:
destinationPorts- the destinationPorts value to set.- Returns:
- the IpTraffic object itself.
-
protocols
Get the protocols property: The protocols property.- Returns:
- the protocols value.
-
withProtocols
Set the protocols property: The protocols property.- Parameters:
protocols- the protocols value to set.- Returns:
- the IpTraffic 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<IpTraffic>- Throws:
IOException
-
fromJson
Reads an instance of IpTraffic from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IpTraffic if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the IpTraffic.
-