DdosCustomPolicyPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.DdosCustomPolicyPropertiesFormat

Implements

public final class DdosCustomPolicyPropertiesFormat
implements JsonSerializable<DdosCustomPolicyPropertiesFormat>

DDoS custom policy properties.

Constructor Summary

Constructor Description
DdosCustomPolicyPropertiesFormat()

Creates an instance of DdosCustomPolicyPropertiesFormat 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.

static DdosCustomPolicyPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of DdosCustomPolicyPropertiesFormat from the JsonReader.

List<SubResource> frontEndIpConfiguration()

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

ProvisioningState provisioningState()

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

List<SubResource> publicIPAddresses()

Get the publicIPAddresses property: The list of public IP addresses associated with the custom policy.

String resourceGuid()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosCustomPolicyPropertiesFormat withDetectionRules(List<DdosDetectionRule> detectionRules)

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

DdosCustomPolicyPropertiesFormat withFrontEndIpConfiguration(List<SubResource> frontEndIpConfiguration)

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

Methods inherited from java.lang.Object

Constructor Details

DdosCustomPolicyPropertiesFormat

public DdosCustomPolicyPropertiesFormat()

Creates an instance of DdosCustomPolicyPropertiesFormat 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.

fromJson

public static DdosCustomPolicyPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of DdosCustomPolicyPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontEndIpConfiguration

public List<SubResource> frontEndIpConfiguration()

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

Returns:

the frontEndIpConfiguration value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

publicIPAddresses

public List<SubResource> publicIPAddresses()

Get the publicIPAddresses property: The list of public IP addresses associated with the custom policy. This list is read-only.

Returns:

the publicIPAddresses 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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDetectionRules

public DdosCustomPolicyPropertiesFormat 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 DdosCustomPolicyPropertiesFormat object itself.

withFrontEndIpConfiguration

public DdosCustomPolicyPropertiesFormat 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 DdosCustomPolicyPropertiesFormat object itself.

Applies to