Class DdosDetectionRule
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.DdosDetectionRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class DdosDetectionRule
extends com.azure.core.management.SubResource
A DDoS detection rule resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the detectionMode property: The detection mode for the DDoS detection rule.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static DdosDetectionRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DdosDetectionRule from the JsonReader.name()Get the name property: The name of the DDoS detection rule.Get the provisioningState property: The provisioning state of the DDoS detection rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trafficDetectionRule property: The traffic detection rule details.type()Get the type property: The resource type.voidvalidate()Validates the instance.withDetectionMode(DdosDetectionMode detectionMode) Set the detectionMode property: The detection mode for the DDoS detection rule.Set the name property: The name of the DDoS detection rule.withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule) Set the trafficDetectionRule property: The traffic detection rule details.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class 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
-
DdosDetectionRule
public DdosDetectionRule()Creates an instance of DdosDetectionRule class.
-
-
Method Details
-
name
Get the name property: The name of the DDoS detection rule.- Returns:
- the name value.
-
withName
Set the name property: The name of the DDoS detection rule.- Parameters:
name- the name value to set.- Returns:
- the DdosDetectionRule object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
provisioningState
Get the provisioningState property: The provisioning state of the DDoS detection rule.- Returns:
- the provisioningState value.
-
detectionMode
Get the detectionMode property: The detection mode for the DDoS detection rule.- Returns:
- the detectionMode value.
-
withDetectionMode
Set the detectionMode property: The detection mode for the DDoS detection rule.- Parameters:
detectionMode- the detectionMode value to set.- Returns:
- the DdosDetectionRule object itself.
-
trafficDetectionRule
Get the trafficDetectionRule property: The traffic detection rule details.- Returns:
- the trafficDetectionRule value.
-
withTrafficDetectionRule
Set the trafficDetectionRule property: The traffic detection rule details.- Parameters:
trafficDetectionRule- the trafficDetectionRule value to set.- Returns:
- the DdosDetectionRule 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
Reads an instance of DdosDetectionRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DdosDetectionRule 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 DdosDetectionRule.
-