Class FirewallPacketCaptureParameters
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPacketCaptureParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPacketCaptureParameters>
public final class FirewallPacketCaptureParameters
extends Object
implements com.azure.json.JsonSerializable<FirewallPacketCaptureParameters>
Azure Firewall Packet Capture Parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPacketCaptureParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the durationInSeconds property: Duration of packet capture in seconds.fileName()Get the fileName property: Name of file to be uploaded to sasURL.filters()Get the filters property: Rules to filter packet captures.flags()Get the flags property: The tcp-flag type to be captured.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPacketCaptureParameters from the JsonReader.Get the numberOfPacketsToCapture property: Number of packets to be captured.protocol()Get the protocol property: The protocol of packets to capture.sasUrl()Get the sasUrl property: Upload capture location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDurationInSeconds(Integer durationInSeconds) Set the durationInSeconds property: Duration of packet capture in seconds.withFileName(String fileName) Set the fileName property: Name of file to be uploaded to sasURL.withFilters(List<AzureFirewallPacketCaptureRule> filters) Set the filters property: Rules to filter packet captures.Set the flags property: The tcp-flag type to be captured.withNumberOfPacketsToCapture(Integer numberOfPacketsToCapture) Set the numberOfPacketsToCapture property: Number of packets to be captured.withProtocol(AzureFirewallNetworkRuleProtocol protocol) Set the protocol property: The protocol of packets to capture.withSasUrl(String sasUrl) Set the sasUrl property: Upload capture location.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
-
FirewallPacketCaptureParameters
public FirewallPacketCaptureParameters()Creates an instance of FirewallPacketCaptureParameters class.
-
-
Method Details
-
durationInSeconds
Get the durationInSeconds property: Duration of packet capture in seconds.- Returns:
- the durationInSeconds value.
-
withDurationInSeconds
Set the durationInSeconds property: Duration of packet capture in seconds.- Parameters:
durationInSeconds- the durationInSeconds value to set.- Returns:
- the FirewallPacketCaptureParameters object itself.
-
numberOfPacketsToCapture
Get the numberOfPacketsToCapture property: Number of packets to be captured.- Returns:
- the numberOfPacketsToCapture value.
-
withNumberOfPacketsToCapture
public FirewallPacketCaptureParameters withNumberOfPacketsToCapture(Integer numberOfPacketsToCapture) Set the numberOfPacketsToCapture property: Number of packets to be captured.- Parameters:
numberOfPacketsToCapture- the numberOfPacketsToCapture value to set.- Returns:
- the FirewallPacketCaptureParameters object itself.
-
sasUrl
Get the sasUrl property: Upload capture location.- Returns:
- the sasUrl value.
-
withSasUrl
Set the sasUrl property: Upload capture location.- Parameters:
sasUrl- the sasUrl value to set.- Returns:
- the FirewallPacketCaptureParameters object itself.
-
fileName
Get the fileName property: Name of file to be uploaded to sasURL.- Returns:
- the fileName value.
-
withFileName
Set the fileName property: Name of file to be uploaded to sasURL.- Parameters:
fileName- the fileName value to set.- Returns:
- the FirewallPacketCaptureParameters object itself.
-
protocol
Get the protocol property: The protocol of packets to capture.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: The protocol of packets to capture.- Parameters:
protocol- the protocol value to set.- Returns:
- the FirewallPacketCaptureParameters object itself.
-
flags
Get the flags property: The tcp-flag type to be captured. Used with protocol TCP.- Returns:
- the flags value.
-
withFlags
Set the flags property: The tcp-flag type to be captured. Used with protocol TCP.- Parameters:
flags- the flags value to set.- Returns:
- the FirewallPacketCaptureParameters object itself.
-
filters
Get the filters property: Rules to filter packet captures.- Returns:
- the filters value.
-
withFilters
Set the filters property: Rules to filter packet captures.- Parameters:
filters- the filters value to set.- Returns:
- the FirewallPacketCaptureParameters 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<FirewallPacketCaptureParameters>- Throws:
IOException
-
fromJson
public static FirewallPacketCaptureParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPacketCaptureParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPacketCaptureParameters 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 FirewallPacketCaptureParameters.
-