Class DdosCustomPolicyPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.DdosCustomPolicyPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DdosCustomPolicyPropertiesFormat>
public final class DdosCustomPolicyPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<DdosCustomPolicyPropertiesFormat>
DDoS custom policy properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DdosCustomPolicyPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the detectionRules property: The list of DDoS detection rules associated with the custom policy.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DdosCustomPolicyPropertiesFormat from the JsonReader.List<com.azure.core.management.SubResource> Get the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.Get the provisioningState property: The provisioning state of the DDoS custom policy resource.Get the resourceGuid property: The resource GUID property of the DDoS custom policy resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDetectionRules(List<DdosDetectionRule> detectionRules) Set the detectionRules property: The list of DDoS detection rules associated with the custom policy.withFrontEndIpConfiguration(List<com.azure.core.management.SubResource> frontEndIpConfiguration) Set the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DdosCustomPolicyPropertiesFormat
public DdosCustomPolicyPropertiesFormat()Creates an instance of DdosCustomPolicyPropertiesFormat class.
-
-
Method Details
-
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.
-
provisioningState
Get the provisioningState property: The provisioning state of the DDoS custom policy resource.- Returns:
- the provisioningState value.
-
detectionRules
Get the detectionRules property: The list of DDoS detection rules associated with the custom policy.- Returns:
- the detectionRules value.
-
withDetectionRules
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.
-
frontEndIpConfiguration
Get the frontEndIpConfiguration property: The list of frontend IP configurations associated with the custom policy.- Returns:
- the frontEndIpConfiguration value.
-
withFrontEndIpConfiguration
public DdosCustomPolicyPropertiesFormat withFrontEndIpConfiguration(List<com.azure.core.management.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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DdosCustomPolicyPropertiesFormat>- Throws:
IOException
-
fromJson
public static DdosCustomPolicyPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-