Class AzureFirewallPacketCaptureRule
java.lang.Object
com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFirewallPacketCaptureRule>
public final class AzureFirewallPacketCaptureRule
extends Object
implements com.azure.json.JsonSerializable<AzureFirewallPacketCaptureRule>
Group of src/dest ips and ports to be captured.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureFirewallPacketCaptureRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationPorts property: List of ports to be captured.Get the destinations property: List of destination IP addresses/subnets to be captured.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFirewallPacketCaptureRule from the JsonReader.sources()Get the sources property: List of source IP addresses/subnets to be captured.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationPorts(List<String> destinationPorts) Set the destinationPorts property: List of ports to be captured.withDestinations(List<String> destinations) Set the destinations property: List of destination IP addresses/subnets to be captured.withSources(List<String> sources) Set the sources property: List of source IP addresses/subnets to be captured.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
-
AzureFirewallPacketCaptureRule
public AzureFirewallPacketCaptureRule()Creates an instance of AzureFirewallPacketCaptureRule class.
-
-
Method Details
-
sources
Get the sources property: List of source IP addresses/subnets to be captured.- Returns:
- the sources value.
-
withSources
Set the sources property: List of source IP addresses/subnets to be captured.- Parameters:
sources- the sources value to set.- Returns:
- the AzureFirewallPacketCaptureRule object itself.
-
destinations
Get the destinations property: List of destination IP addresses/subnets to be captured.- Returns:
- the destinations value.
-
withDestinations
Set the destinations property: List of destination IP addresses/subnets to be captured.- Parameters:
destinations- the destinations value to set.- Returns:
- the AzureFirewallPacketCaptureRule object itself.
-
destinationPorts
Get the destinationPorts property: List of ports to be captured.- Returns:
- the destinationPorts value.
-
withDestinationPorts
Set the destinationPorts property: List of ports to be captured.- Parameters:
destinationPorts- the destinationPorts value to set.- Returns:
- the AzureFirewallPacketCaptureRule 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<AzureFirewallPacketCaptureRule>- Throws:
IOException
-
fromJson
public static AzureFirewallPacketCaptureRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureFirewallPacketCaptureRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFirewallPacketCaptureRule 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 AzureFirewallPacketCaptureRule.
-