DdosSettings Class

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

public final class 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.

DdosSettingsProtectionMode protectionMode()

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

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.

protectionMode

public DdosSettingsProtectionMode protectionMode()

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

Returns:

the protectionMode value.

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