DdosSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.DdosSettings

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 DdosSettings class.

Method Summary

Modifier and Type Method and Description
SubResource ddosProtectionPlan()

Get the ddosProtectionPlan property: The DDoS protection plan associated with the public IP.

static DdosSettings fromJson(JsonReader jsonReader)

Reads an instance of DdosSettings from the JsonReader.

DdosSettingsProtectionMode protectionMode()

Get the protectionMode property: The DDoS protection mode of the public IP.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosSettings withDdosProtectionPlan(SubResource ddosProtectionPlan)

Set the ddosProtectionPlan property: The DDoS protection plan associated with the public IP.

DdosSettings withProtectionMode(DdosSettingsProtectionMode protectionMode)

Set the protectionMode property: The DDoS protection mode of the public IP.

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:

the ddosProtectionPlan value.

fromJson

public static DdosSettings fromJson(JsonReader jsonReader)

Reads an instance of DdosSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DdosSettings 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 DdosSettings.

protectionMode

public DdosSettingsProtectionMode protectionMode()

Get the protectionMode property: The DDoS protection mode of the public IP.

Returns:

the protectionMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

ddosProtectionPlan - the ddosProtectionPlan value to set.

Returns:

the DdosSettings object itself.

withProtectionMode

public DdosSettings withProtectionMode(DdosSettingsProtectionMode protectionMode)

Set the protectionMode property: The DDoS protection mode of the public IP.

Parameters:

protectionMode - the protectionMode value to set.

Returns:

the DdosSettings object itself.

Applies to