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 Details

    • DdosCustomPolicyPropertiesFormat

      public DdosCustomPolicyPropertiesFormat()
      Creates an instance of DdosCustomPolicyPropertiesFormat class.
  • Method Details

    • 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.
    • provisioningState

      public ProvisioningState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.