TrafficDetectionRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. TrafficDetectionRule
- com.
Implements
public final class TrafficDetectionRule
implements JsonSerializable<TrafficDetectionRule>
Ddos Custom Policy traffic detection rule.
Constructor Summary
| Constructor | Description |
|---|---|
| TrafficDetectionRule() |
Creates an instance of Traffic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Traffic |
fromJson(JsonReader jsonReader)
Reads an instance of Traffic |
| Integer |
packetsPerSecond()
Get the packets |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Ddos |
trafficType()
Get the traffic |
| void |
validate()
Validates the instance. |
|
Traffic |
withPacketsPerSecond(Integer packetsPerSecond)
Set the packets |
|
Traffic |
withTrafficType(DdosTrafficType trafficType)
Set the traffic |
Methods inherited from java.lang.Object
Constructor Details
TrafficDetectionRule
public TrafficDetectionRule()
Creates an instance of TrafficDetectionRule class.
Method Details
fromJson
public static TrafficDetectionRule fromJson(JsonReader jsonReader)
Reads an instance of TrafficDetectionRule from the JsonReader.
Parameters:
Returns:
Throws:
packetsPerSecond
public Integer packetsPerSecond()
Get the packetsPerSecond property: The customized packets per second threshold.
Returns:
toJson
trafficType
public DdosTrafficType trafficType()
Get the trafficType property: The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon.
Returns:
validate
public void validate()
Validates the instance.
withPacketsPerSecond
public TrafficDetectionRule withPacketsPerSecond(Integer packetsPerSecond)
Set the packetsPerSecond property: The customized packets per second threshold.
Parameters:
Returns:
withTrafficType
public TrafficDetectionRule withTrafficType(DdosTrafficType trafficType)
Set the trafficType property: The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon.
Parameters:
Returns: