### YamlMime:JavaType
uid: "com.azure.resourcemanager.network.models.DdosSettings"
fullName: "com.azure.resourcemanager.network.models.DdosSettings"
name: "DdosSettings"
nameWithType: "DdosSettings"
summary: "Contains the DDoS protection settings of the public IP."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **DdosSettings** implements <>"
constructors:
- uid: "com.azure.resourcemanager.network.models.DdosSettings.DdosSettings()"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.DdosSettings()"
name: "DdosSettings()"
nameWithType: "DdosSettings.DdosSettings()"
summary: "Creates an instance of DdosSettings class."
syntax: "public DdosSettings()"
desc: "Creates an instance of DdosSettings class."
methods:
- uid: "com.azure.resourcemanager.network.models.DdosSettings.ddosProtectionPlan()"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.ddosProtectionPlan()"
name: "ddosProtectionPlan()"
nameWithType: "DdosSettings.ddosProtectionPlan()"
summary: "Get the ddosProtectionPlan property: The DDoS protection plan associated with the public IP."
syntax: "public SubResource ddosProtectionPlan()"
desc: "Get the ddosProtectionPlan property: The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled."
returns:
description: "the ddosProtectionPlan value."
type: ""
- uid: "com.azure.resourcemanager.network.models.DdosSettings.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "DdosSettings.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of DdosSettings from the JsonReader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: ""
syntax: "public static DdosSettings fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the DdosSettings."
type: "IOException"
desc: "Reads an instance of DdosSettings from the JsonReader."
returns:
description: "An instance of DdosSettings if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: ""
- uid: "com.azure.resourcemanager.network.models.DdosSettings.protectionMode()"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.protectionMode()"
name: "protectionMode()"
nameWithType: "DdosSettings.protectionMode()"
summary: "Get the protectionMode property: The DDoS protection mode of the public IP."
syntax: "public DdosSettingsProtectionMode protectionMode()"
desc: "Get the protectionMode property: The DDoS protection mode of the public IP."
returns:
description: "the protectionMode value."
type: ""
- uid: "com.azure.resourcemanager.network.models.DdosSettings.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "DdosSettings.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: ""
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "IOException"
returns:
type: ""
- uid: "com.azure.resourcemanager.network.models.DdosSettings.validate()"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.validate()"
name: "validate()"
nameWithType: "DdosSettings.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.network.models.DdosSettings.withDdosProtectionPlan(com.azure.core.management.SubResource)"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.withDdosProtectionPlan(SubResource ddosProtectionPlan)"
name: "withDdosProtectionPlan(SubResource ddosProtectionPlan)"
nameWithType: "DdosSettings.withDdosProtectionPlan(SubResource ddosProtectionPlan)"
summary: "Set the ddosProtectionPlan property: The DDoS protection plan associated with the public IP."
parameters:
- description: "the ddosProtectionPlan value to set."
name: "ddosProtectionPlan"
type: ""
syntax: "public DdosSettings withDdosProtectionPlan(SubResource ddosProtectionPlan)"
desc: "Set the ddosProtectionPlan property: The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled."
returns:
description: "the DdosSettings object itself."
type: ""
- uid: "com.azure.resourcemanager.network.models.DdosSettings.withProtectionMode(com.azure.resourcemanager.network.models.DdosSettingsProtectionMode)"
fullName: "com.azure.resourcemanager.network.models.DdosSettings.withProtectionMode(DdosSettingsProtectionMode protectionMode)"
name: "withProtectionMode(DdosSettingsProtectionMode protectionMode)"
nameWithType: "DdosSettings.withProtectionMode(DdosSettingsProtectionMode protectionMode)"
summary: "Set the protectionMode property: The DDoS protection mode of the public IP."
parameters:
- description: "the protectionMode value to set."
name: "protectionMode"
type: ""
syntax: "public DdosSettings withProtectionMode(DdosSettingsProtectionMode protectionMode)"
desc: "Set the protectionMode property: The DDoS protection mode of the public IP."
returns:
description: "the DdosSettings object itself."
type: ""
type: "class"
desc: "Contains the DDoS protection settings of the public IP."
implements:
- "<>"
metadata: {}
package: "com.azure.resourcemanager.network.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.44.0