Class FirewallPacketCaptureParametersFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.FirewallPacketCaptureParametersFormat
Packet capture parameters on azure firewall.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPacketCaptureParametersFormat 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.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.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.
-
Constructor Details
-
FirewallPacketCaptureParametersFormat
public FirewallPacketCaptureParametersFormat()Creates an instance of FirewallPacketCaptureParametersFormat 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 FirewallPacketCaptureParametersFormat object itself.
-
numberOfPacketsToCapture
Get the numberOfPacketsToCapture property: Number of packets to be captured.- Returns:
- the numberOfPacketsToCapture value.
-
withNumberOfPacketsToCapture
public FirewallPacketCaptureParametersFormat withNumberOfPacketsToCapture(Integer numberOfPacketsToCapture) Set the numberOfPacketsToCapture property: Number of packets to be captured.- Parameters:
numberOfPacketsToCapture- the numberOfPacketsToCapture value to set.- Returns:
- the FirewallPacketCaptureParametersFormat 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 FirewallPacketCaptureParametersFormat 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 FirewallPacketCaptureParametersFormat object itself.
-
protocol
Get the protocol property: The protocol of packets to capture.- Returns:
- the protocol value.
-
withProtocol
public FirewallPacketCaptureParametersFormat withProtocol(AzureFirewallNetworkRuleProtocol protocol) Set the protocol property: The protocol of packets to capture.- Parameters:
protocol- the protocol value to set.- Returns:
- the FirewallPacketCaptureParametersFormat 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 FirewallPacketCaptureParametersFormat object itself.
-
filters
Get the filters property: Rules to filter packet captures.- Returns:
- the filters value.
-
withFilters
public FirewallPacketCaptureParametersFormat withFilters(List<AzureFirewallPacketCaptureRule> filters) Set the filters property: Rules to filter packet captures.- Parameters:
filters- the filters value to set.- Returns:
- the FirewallPacketCaptureParametersFormat object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-