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 TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DdosCustomPolicyPropertiesFormat from the JsonReader.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.Methods inherited from class java.lang.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.
-
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.
-