DdosMitigationRule Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. models. DdosMitigationRule
- com.
- com.
public final class DdosMitigationRule
extends SubResource
A DDoS mitigation rule resource.
Constructor Summary
| Constructor | Description |
|---|---|
| DdosMitigationRule() |
Creates an instance of Ddos |
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
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
| 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. |
|
Ddos |
properties()
Get the properties property: Properties of the DDoS mitigation rule. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The resource type. |
| void |
validate()
Validates the instance. |
|
Ddos |
withName(String name)
Set the name property: The name of the DDoS mitigation rule. |
|
Ddos |
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:
fromJson
public static DdosMitigationRule fromJson(JsonReader jsonReader)
Reads an instance of DdosMitigationRule from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The resource ID of the DDoS mitigation rule.
Overrides:
DdosMitigationRule.id()Returns:
name
public String name()
Get the name property: The name of the DDoS mitigation rule.
Returns:
properties
public DdosMitigationRulePropertiesFormat properties()
Get the properties property: Properties of the DDoS mitigation rule.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DdosMitigationRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The resource type.
Returns:
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:
Returns:
withProperties
public DdosMitigationRule withProperties(DdosMitigationRulePropertiesFormat properties)
Set the properties property: Properties of the DDoS mitigation rule.
Parameters:
Returns: