Class ValidateProbeInput

java.lang.Object
com.azure.resourcemanager.cdn.models.ValidateProbeInput
All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidateProbeInput>

public final class ValidateProbeInput extends Object implements com.azure.json.JsonSerializable<ValidateProbeInput>
Input of the validate probe API.
  • Constructor Details

    • ValidateProbeInput

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

    • probeUrl

      public String probeUrl()
      Get the probeUrl property: The probe URL to validate.
      Returns:
      the probeUrl value.
    • withProbeUrl

      public ValidateProbeInput withProbeUrl(String probeUrl)
      Set the probeUrl property: The probe URL to validate.
      Parameters:
      probeUrl - the probeUrl value to set.
      Returns:
      the ValidateProbeInput 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<ValidateProbeInput>
      Throws:
      IOException
    • fromJson

      public static ValidateProbeInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ValidateProbeInput from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ValidateProbeInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ValidateProbeInput.