Condividi tramite


DdosCustomPolicyInner Class

public final class DdosCustomPolicyInner
extends Resource

A DDoS custom policy in a resource group.

Constructor Summary

Constructor Description
DdosCustomPolicyInner()

Creates an instance of DdosCustomPolicyInner class.

Method Summary

Modifier and Type Method and Description
List<DdosDetectionRule> detectionRules()

Get the detectionRules property: The list of DDoS detection rules associated with the custom policy.

String etag()

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

static DdosCustomPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of DdosCustomPolicyInner from the JsonReader.

List<SubResource> frontEndIpConfiguration()

Get the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.

String id()

Get the id property: Resource ID.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS custom policy resource.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the DDoS custom policy resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DdosCustomPolicyInner withDetectionRules(List<DdosDetectionRule> detectionRules)

Set the detectionRules property: The list of DDoS detection rules associated with the custom policy.

DdosCustomPolicyInner withFrontEndIpConfiguration(List<SubResource> frontEndIpConfiguration)

Set the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.

DdosCustomPolicyInner withId(String id)

Set the id property: Resource ID.

DdosCustomPolicyInner withLocation(String location)
DdosCustomPolicyInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DdosCustomPolicyInner

public DdosCustomPolicyInner()

Creates an instance of DdosCustomPolicyInner class.

Method Details

detectionRules

public List<DdosDetectionRule> detectionRules()

Get the detectionRules property: The list of DDoS detection rules associated with the custom policy.

Returns:

the detectionRules 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 DdosCustomPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of DdosCustomPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontEndIpConfiguration

public List<SubResource> frontEndIpConfiguration()

Get the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.

Returns:

the frontEndIpConfiguration value.

id

public String id()

Get the id property: Resource ID.

Overrides:

DdosCustomPolicyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DdosCustomPolicyInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS custom policy resource.

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.

Returns:

the resourceGuid value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DdosCustomPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DdosCustomPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDetectionRules

public DdosCustomPolicyInner withDetectionRules(List<DdosDetectionRule> detectionRules)

Set the detectionRules property: The list of DDoS detection rules associated with the custom policy.

Parameters:

detectionRules - the detectionRules value to set.

Returns:

the DdosCustomPolicyInner object itself.

withFrontEndIpConfiguration

public DdosCustomPolicyInner withFrontEndIpConfiguration(List<SubResource> frontEndIpConfiguration)

Set the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.

Parameters:

frontEndIpConfiguration - the frontEndIpConfiguration value to set.

Returns:

the DdosCustomPolicyInner object itself.

withId

public DdosCustomPolicyInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the DdosCustomPolicyInner object itself.

withLocation

public DdosCustomPolicyInner withLocation(String location)

Overrides:

DdosCustomPolicyInner.withLocation(String location)

Parameters:

location

withTags

public DdosCustomPolicyInner withTags(Map<String,String> tags)

Overrides:

DdosCustomPolicyInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to