共用方式為


IpTraffic Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.IpTraffic

Implements

public final class IpTraffic
implements JsonSerializable<IpTraffic>

IP traffic information.

Constructor Summary

Constructor Description
IpTraffic()

Creates an instance of IpTraffic class.

Method Summary

Modifier and Type Method and Description
List<String> destinationIps()

Get the destinationIps property: List of destination IP addresses of the traffic..

List<String> destinationPorts()

Get the destinationPorts property: The destination ports of the traffic.

static IpTraffic fromJson(JsonReader jsonReader)

Reads an instance of IpTraffic from the JsonReader.

List<NetworkProtocol> protocols()

Get the protocols property: The protocols property.

List<String> sourceIps()

Get the sourceIps property: List of source IP addresses of the traffic..

List<String> sourcePorts()

Get the sourcePorts property: The source ports of the traffic.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpTraffic withDestinationIps(List<String> destinationIps)

Set the destinationIps property: List of destination IP addresses of the traffic..

IpTraffic withDestinationPorts(List<String> destinationPorts)

Set the destinationPorts property: The destination ports of the traffic.

IpTraffic withProtocols(List<NetworkProtocol> protocols)

Set the protocols property: The protocols property.

IpTraffic withSourceIps(List<String> sourceIps)

Set the sourceIps property: List of source IP addresses of the traffic..

IpTraffic withSourcePorts(List<String> sourcePorts)

Set the sourcePorts property: The source ports of the traffic.

Methods inherited from java.lang.Object

Constructor Details

IpTraffic

public IpTraffic()

Creates an instance of IpTraffic class.

Method Details

destinationIps

public List destinationIps()

Get the destinationIps property: List of destination IP addresses of the traffic..

Returns:

the destinationIps value.

destinationPorts

public List destinationPorts()

Get the destinationPorts property: The destination ports of the traffic.

Returns:

the destinationPorts value.

fromJson

public static IpTraffic fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

protocols

public List protocols()

Get the protocols property: The protocols property.

Returns:

the protocols value.

sourceIps

public List sourceIps()

Get the sourceIps property: List of source IP addresses of the traffic..

Returns:

the sourceIps value.

sourcePorts

public List sourcePorts()

Get the sourcePorts property: The source ports of the traffic.

Returns:

the sourcePorts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinationIps

public IpTraffic withDestinationIps(List destinationIps)

Set the destinationIps property: List of destination IP addresses of the traffic..

Parameters:

destinationIps - the destinationIps value to set.

Returns:

the IpTraffic object itself.

withDestinationPorts

public IpTraffic withDestinationPorts(List destinationPorts)

Set the destinationPorts property: The destination ports of the traffic.

Parameters:

destinationPorts - the destinationPorts value to set.

Returns:

the IpTraffic object itself.

withProtocols

public IpTraffic withProtocols(List protocols)

Set the protocols property: The protocols property.

Parameters:

protocols - the protocols value to set.

Returns:

the IpTraffic object itself.

withSourceIps

public IpTraffic withSourceIps(List sourceIps)

Set the sourceIps property: List of source IP addresses of the traffic..

Parameters:

sourceIps - the sourceIps value to set.

Returns:

the IpTraffic object itself.

withSourcePorts

public IpTraffic withSourcePorts(List sourcePorts)

Set the sourcePorts property: The source ports of the traffic.

Parameters:

sourcePorts - the sourcePorts value to set.

Returns:

the IpTraffic object itself.

Applies to