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 Details

    • AzureFirewallPacketCaptureRule

      public AzureFirewallPacketCaptureRule()
      Creates an instance of AzureFirewallPacketCaptureRule class.
  • Method Details

    • sources

      public List<String> sources()
      Get the sources property: List of source IP addresses/subnets to be captured.
      Returns:
      the sources value.
    • withSources

      public AzureFirewallPacketCaptureRule withSources(List<String> sources)
      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

      public List<String> destinations()
      Get the destinations property: List of destination IP addresses/subnets to be captured.
      Returns:
      the destinations value.
    • withDestinations

      public AzureFirewallPacketCaptureRule withDestinations(List<String> destinations)
      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

      public List<String> destinationPorts()
      Get the destinationPorts property: List of ports to be captured.
      Returns:
      the destinationPorts value.
    • withDestinationPorts

      public AzureFirewallPacketCaptureRule withDestinationPorts(List<String> destinationPorts)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.