DdosDetectionRule Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. models. DdosDetectionRule
- com.
- com.
public final class DdosDetectionRule
extends SubResource
A DDoS detection rule resource.
Constructor Summary
| Constructor | Description |
|---|---|
| DdosDetectionRule() |
Creates an instance of Ddos |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Ddos |
detectionMode()
Get the detection |
| String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
|
static
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
| String |
name()
Get the name property: The name of the DDoS detection rule. |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Traffic |
trafficDetectionRule()
Get the traffic |
| String |
type()
Get the type property: The resource type. |
| void |
validate()
Validates the instance. |
|
Ddos |
withDetectionMode(DdosDetectionMode detectionMode)
Set the detection |
|
Ddos |
withId(String id) |
|
Ddos |
withName(String name)
Set the name property: The name of the DDoS detection rule. |
|
Ddos |
withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule)
Set the traffic |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
DdosDetectionRule
public DdosDetectionRule()
Creates an instance of DdosDetectionRule class.
Method Details
detectionMode
public DdosDetectionMode detectionMode()
Get the detectionMode property: The detection mode for the DDoS detection rule.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static DdosDetectionRule fromJson(JsonReader jsonReader)
Reads an instance of DdosDetectionRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the DDoS detection rule.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the DDoS detection rule.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DdosDetectionRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
trafficDetectionRule
public TrafficDetectionRule trafficDetectionRule()
Get the trafficDetectionRule property: The traffic detection rule details.
Returns:
type
public String type()
Get the type property: The resource type.
Returns:
validate
public void validate()
Validates the instance.
withDetectionMode
public DdosDetectionRule withDetectionMode(DdosDetectionMode detectionMode)
Set the detectionMode property: The detection mode for the DDoS detection rule.
Parameters:
Returns:
withId
public DdosDetectionRule withId(String id)
Overrides:
DdosDetectionRule.withId(String id)Parameters:
withName
public DdosDetectionRule withName(String name)
Set the name property: The name of the DDoS detection rule.
Parameters:
Returns:
withTrafficDetectionRule
public DdosDetectionRule withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule)
Set the trafficDetectionRule property: The traffic detection rule details.
Parameters:
Returns: