Class AfdEndpointPropertiesUpdateParameters

java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdEndpointPropertiesUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdEndpointPropertiesUpdateParameters>
Direct Known Subclasses:
AfdEndpointProperties

public class AfdEndpointPropertiesUpdateParameters extends Object implements com.azure.json.JsonSerializable<AfdEndpointPropertiesUpdateParameters>
The JSON object containing endpoint update parameters.
  • Constructor Details

    • AfdEndpointPropertiesUpdateParameters

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

    • profileName

      public String profileName()
      Get the profileName property: The name of the profile which holds the endpoint.
      Returns:
      the profileName value.
    • enabledState

      public EnabledState enabledState()
      Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
      Returns:
      the enabledState value.
    • withEnabledState

      public AfdEndpointPropertiesUpdateParameters withEnabledState(EnabledState enabledState)
      Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
      Parameters:
      enabledState - the enabledState value to set.
      Returns:
      the AfdEndpointPropertiesUpdateParameters object itself.
    • 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<AfdEndpointPropertiesUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static AfdEndpointPropertiesUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AfdEndpointPropertiesUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AfdEndpointPropertiesUpdateParameters 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 AfdEndpointPropertiesUpdateParameters.