DdosSourcePolicyOverride Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DdosSourcePolicyOverride
- com.
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 Ddos |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Ddos |
conditions()
Get the conditions property: The source conditions that select traffic for the action. |
|
static
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
|
Ddos |
policyAction()
Get the policy |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Ddos |
withConditions(DdosSourceMatchConditions conditions)
Set the conditions property: The source conditions that select traffic for the action. |
|
Ddos |
withPolicyAction(DdosSourcePolicyAction policyAction)
Set the policy |
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:
fromJson
public static DdosSourcePolicyOverride fromJson(JsonReader jsonReader)
Reads an instance of DdosSourcePolicyOverride from the JsonReader.
Parameters:
Returns:
Throws:
policyAction
public DdosSourcePolicyAction policyAction()
Get the policyAction property: The action to apply to matching traffic.
Returns:
toJson
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:
Returns:
withPolicyAction
public DdosSourcePolicyOverride withPolicyAction(DdosSourcePolicyAction policyAction)
Set the policyAction property: The action to apply to matching traffic.
Parameters:
Returns: