DdosSettings Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DdosSettings
- com.
Implements
public final class DdosSettings
implements JsonSerializable<DdosSettings>
Contains the DDoS protection settings of the public IP.
Constructor Summary
Constructor | Description |
---|---|
DdosSettings() |
Creates an instance of Ddos |
Method Summary
Modifier and Type | Method and Description |
---|---|
Sub |
ddosProtectionPlan()
Get the ddos |
static
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
Ddos |
protectionMode()
Get the protection |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ddos |
withDdosProtectionPlan(SubResource ddosProtectionPlan)
Set the ddos |
Ddos |
withProtectionMode(DdosSettingsProtectionMode protectionMode)
Set the protection |
Methods inherited from java.lang.Object
Constructor Details
DdosSettings
public DdosSettings()
Creates an instance of DdosSettings class.
Method Details
ddosProtectionPlan
public SubResource ddosProtectionPlan()
Get the ddosProtectionPlan property: The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled.
Returns:
fromJson
public static DdosSettings fromJson(JsonReader jsonReader)
Reads an instance of DdosSettings from the JsonReader.
Parameters:
Returns:
Throws:
protectionMode
public DdosSettingsProtectionMode protectionMode()
Get the protectionMode property: The DDoS protection mode of the public IP.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDdosProtectionPlan
public DdosSettings withDdosProtectionPlan(SubResource ddosProtectionPlan)
Set the ddosProtectionPlan property: The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled.
Parameters:
Returns:
withProtectionMode
public DdosSettings withProtectionMode(DdosSettingsProtectionMode protectionMode)
Set the protectionMode property: The DDoS protection mode of the public IP.
Parameters:
Returns:
Applies to
Azure SDK for Java