IpTraffic Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. IpTraffic
- com.
Implements
public final class IpTraffic
implements JsonSerializable<IpTraffic>
IP traffic information.
Constructor Summary
Constructor | Description |
---|---|
IpTraffic() |
Creates an instance of Ip |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
destinationIps()
Get the destination |
List<String> |
destinationPorts()
Get the destination |
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
List<Network |
protocols()
Get the protocols property: The protocols property. |
List<String> |
sourceIps()
Get the source |
List<String> |
sourcePorts()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ip |
withDestinationIps(List<String> destinationIps)
Set the destination |
Ip |
withDestinationPorts(List<String> destinationPorts)
Set the destination |
Ip |
withProtocols(List<NetworkProtocol> protocols)
Set the protocols property: The protocols property. |
Ip |
withSourceIps(List<String> sourceIps)
Set the source |
Ip |
withSourcePorts(List<String> sourcePorts)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
IpTraffic
public IpTraffic()
Creates an instance of IpTraffic class.
Method Details
destinationIps
public List
Get the destinationIps property: List of destination IP addresses of the traffic..
Returns:
destinationPorts
public List
Get the destinationPorts property: The destination ports of the traffic.
Returns:
fromJson
public static IpTraffic fromJson(JsonReader jsonReader)
Reads an instance of IpTraffic from the JsonReader.
Parameters:
Returns:
Throws:
protocols
public List
Get the protocols property: The protocols property.
Returns:
sourceIps
public List
Get the sourceIps property: List of source IP addresses of the traffic..
Returns:
sourcePorts
public List
Get the sourcePorts property: The source ports of the traffic.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDestinationIps
public IpTraffic withDestinationIps(List
Set the destinationIps property: List of destination IP addresses of the traffic..
Parameters:
Returns:
withDestinationPorts
public IpTraffic withDestinationPorts(List
Set the destinationPorts property: The destination ports of the traffic.
Parameters:
Returns:
withProtocols
public IpTraffic withProtocols(List
Set the protocols property: The protocols property.
Parameters:
Returns:
withSourceIps
public IpTraffic withSourceIps(List
Set the sourceIps property: List of source IP addresses of the traffic..
Parameters:
Returns:
withSourcePorts
public IpTraffic withSourcePorts(List
Set the sourcePorts property: The source ports of the traffic.
Parameters:
Returns: