Class DdosDetectionRulePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.DdosDetectionRulePropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DdosDetectionRulePropertiesFormat>
public final class DdosDetectionRulePropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<DdosDetectionRulePropertiesFormat>
DDoS detection rule properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DdosDetectionRulePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the detectionMode property: The detection mode for the DDoS detection rule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DdosDetectionRulePropertiesFormat from the JsonReader.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.voidvalidate()Validates the instance.withDetectionMode(DdosDetectionMode detectionMode) Set the detectionMode property: The detection mode for the DDoS detection rule.withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule) Set the trafficDetectionRule property: The traffic detection rule details.Methods 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
-
DdosDetectionRulePropertiesFormat
public DdosDetectionRulePropertiesFormat()Creates an instance of DdosDetectionRulePropertiesFormat class.
-
-
Method Details
-
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 DdosDetectionRulePropertiesFormat object itself.
-
trafficDetectionRule
Get the trafficDetectionRule property: The traffic detection rule details.- Returns:
- the trafficDetectionRule value.
-
withTrafficDetectionRule
public DdosDetectionRulePropertiesFormat withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule) Set the trafficDetectionRule property: The traffic detection rule details.- Parameters:
trafficDetectionRule- the trafficDetectionRule value to set.- Returns:
- the DdosDetectionRulePropertiesFormat 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<DdosDetectionRulePropertiesFormat>- Throws:
IOException
-
fromJson
public static DdosDetectionRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DdosDetectionRulePropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DdosDetectionRulePropertiesFormat 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 DdosDetectionRulePropertiesFormat.
-