DdosMitigationRule Class

public final class DdosMitigationRule
extends SubResource

A DDoS mitigation rule resource.

Constructor Summary

Constructor Description
DdosMitigationRule()

Creates an instance of DdosMitigationRule class.

Method Summary

Modifier and Type Method and Description
String etag()

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

static DdosMitigationRule fromJson(JsonReader jsonReader)

Reads an instance of DdosMitigationRule from the JsonReader.

String id()

Get the id property: The resource ID of the DDoS mitigation rule.

String name()

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

DdosMitigationRulePropertiesFormat properties()

Get the properties property: Properties of the DDoS mitigation rule.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type.

void validate()

Validates the instance.

DdosMitigationRule withName(String name)

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

DdosMitigationRule withProperties(DdosMitigationRulePropertiesFormat properties)

Set the properties property: Properties of the DDoS mitigation rule.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

DdosMitigationRule

public DdosMitigationRule()

Creates an instance of DdosMitigationRule class.

Method Details

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 DdosMitigationRule fromJson(JsonReader jsonReader)

Reads an instance of DdosMitigationRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The resource ID of the DDoS mitigation rule.

Overrides:

DdosMitigationRule.id()

Returns:

the id value.

name

public String name()

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

Returns:

the name value.

properties

public DdosMitigationRulePropertiesFormat properties()

Get the properties property: Properties of the DDoS mitigation rule.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DdosMitigationRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public DdosMitigationRule withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the DdosMitigationRule object itself.

withProperties

public DdosMitigationRule withProperties(DdosMitigationRulePropertiesFormat properties)

Set the properties property: Properties of the DDoS mitigation rule.

Parameters:

properties - the properties value to set.

Returns:

the DdosMitigationRule object itself.

Applies to