DdosSourcePolicyOverride Class

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

Implements

public final class DdosSourcePolicyOverride
implements JsonSerializable<DdosSourcePolicyOverride>

A source-specific action that overrides the default mitigations.

Constructor Summary

Constructor Description
DdosSourcePolicyOverride()

Creates an instance of DdosSourcePolicyOverride class.

Method Summary

Modifier and Type Method and Description
DdosSourceMatchConditions conditions()

Get the conditions property: The source conditions that select traffic for the action.

static DdosSourcePolicyOverride fromJson(JsonReader jsonReader)

Reads an instance of DdosSourcePolicyOverride from the JsonReader.

DdosSourcePolicyAction policyAction()

Get the policyAction property: The action to apply to matching traffic.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosSourcePolicyOverride withConditions(DdosSourceMatchConditions conditions)

Set the conditions property: The source conditions that select traffic for the action.

DdosSourcePolicyOverride withPolicyAction(DdosSourcePolicyAction policyAction)

Set the policyAction property: The action to apply to matching traffic.

Methods inherited from java.lang.Object

Constructor Details

DdosSourcePolicyOverride

public DdosSourcePolicyOverride()

Creates an instance of DdosSourcePolicyOverride class.

Method Details

conditions

public DdosSourceMatchConditions conditions()

Get the conditions property: The source conditions that select traffic for the action.

Returns:

the conditions value.

fromJson

public static DdosSourcePolicyOverride fromJson(JsonReader jsonReader)

Reads an instance of DdosSourcePolicyOverride from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DdosSourcePolicyOverride if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

policyAction

public DdosSourcePolicyAction policyAction()

Get the policyAction property: The action to apply to matching traffic.

Returns:

the policyAction value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConditions

public DdosSourcePolicyOverride withConditions(DdosSourceMatchConditions conditions)

Set the conditions property: The source conditions that select traffic for the action.

Parameters:

conditions - the conditions value to set.

Returns:

the DdosSourcePolicyOverride object itself.

withPolicyAction

public DdosSourcePolicyOverride withPolicyAction(DdosSourcePolicyAction policyAction)

Set the policyAction property: The action to apply to matching traffic.

Parameters:

policyAction - the policyAction value to set.

Returns:

the DdosSourcePolicyOverride object itself.

Applies to