Share via


DdosDetectionRule Class

public final class DdosDetectionRule
extends SubResource

A DDoS detection rule resource.

Constructor Summary

Constructor Description
DdosDetectionRule()

Creates an instance of DdosDetectionRule class.

Method Summary

Modifier and Type Method and Description
DdosDetectionMode detectionMode()

Get the detectionMode property: The detection mode for the DDoS detection rule.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static DdosDetectionRule fromJson(JsonReader jsonReader)

Reads an instance of DdosDetectionRule from the JsonReader.

String name()

Get the name property: The name of the DDoS detection rule.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS detection rule.

JsonWriter toJson(JsonWriter jsonWriter)
TrafficDetectionRule trafficDetectionRule()

Get the trafficDetectionRule property: The traffic detection rule details.

String type()

Get the type property: The resource type.

void validate()

Validates the instance.

DdosDetectionRule withDetectionMode(DdosDetectionMode detectionMode)

Set the detectionMode property: The detection mode for the DDoS detection rule.

DdosDetectionRule withId(String id)
DdosDetectionRule withName(String name)

Set the name property: The name of the DDoS detection rule.

DdosDetectionRule withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule)

Set the trafficDetectionRule property: The traffic detection rule details.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

DdosDetectionRule

public DdosDetectionRule()

Creates an instance of DdosDetectionRule class.

Method Details

detectionMode

public DdosDetectionMode detectionMode()

Get the detectionMode property: The detection mode for the DDoS detection rule.

Returns:

the detectionMode value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static DdosDetectionRule fromJson(JsonReader jsonReader)

Reads an instance of DdosDetectionRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the DDoS detection rule.

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS detection rule.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DdosDetectionRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trafficDetectionRule

public TrafficDetectionRule trafficDetectionRule()

Get the trafficDetectionRule property: The traffic detection rule details.

Returns:

the trafficDetectionRule value.

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDetectionMode

public DdosDetectionRule withDetectionMode(DdosDetectionMode detectionMode)

Set the detectionMode property: The detection mode for the DDoS detection rule.

Parameters:

detectionMode - the detectionMode value to set.

Returns:

the DdosDetectionRule object itself.

withId

public DdosDetectionRule withId(String id)

Overrides:

DdosDetectionRule.withId(String id)

Parameters:

id

withName

public DdosDetectionRule withName(String name)

Set the name property: The name of the DDoS detection rule.

Parameters:

name - the name value to set.

Returns:

the DdosDetectionRule object itself.

withTrafficDetectionRule

public DdosDetectionRule withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule)

Set the trafficDetectionRule property: The traffic detection rule details.

Parameters:

trafficDetectionRule - the trafficDetectionRule value to set.

Returns:

the DdosDetectionRule object itself.

Applies to