DdosSourcePolicyAction Class

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

Implements

public final class DdosSourcePolicyAction
implements JsonSerializable<DdosSourcePolicyAction>

The action to apply to traffic matching a source policy override.

Constructor Summary

Constructor Description
DdosSourcePolicyAction()

Creates an instance of DdosSourcePolicyAction class.

Method Summary

Modifier and Type Method and Description
DdosSourcePolicyActionType actionType()

Get the actionType property: The source policy action type.

static DdosSourcePolicyAction fromJson(JsonReader jsonReader)

Reads an instance of DdosSourcePolicyAction from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosSourcePolicyAction withActionType(DdosSourcePolicyActionType actionType)

Set the actionType property: The source policy action type.

Methods inherited from java.lang.Object

Constructor Details

DdosSourcePolicyAction

public DdosSourcePolicyAction()

Creates an instance of DdosSourcePolicyAction class.

Method Details

actionType

public DdosSourcePolicyActionType actionType()

Get the actionType property: The source policy action type.

Returns:

the actionType value.

fromJson

public static DdosSourcePolicyAction fromJson(JsonReader jsonReader)

Reads an instance of DdosSourcePolicyAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionType

public DdosSourcePolicyAction withActionType(DdosSourcePolicyActionType actionType)

Set the actionType property: The source policy action type.

Parameters:

actionType - the actionType value to set.

Returns:

the DdosSourcePolicyAction object itself.

Applies to