Class ValidateProbeOutputInner

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

public final class ValidateProbeOutputInner extends Object implements com.azure.json.JsonSerializable<ValidateProbeOutputInner>
Output of the validate probe API.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ValidateProbeOutputInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the errorCode property: Specifies the error code when the probe url is not accepted.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ValidateProbeOutputInner from the JsonReader.
    Get the isValid property: Indicates whether the probe URL is accepted or not.
    Get the message property: The detailed error message describing why the probe URL is not accepted.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ValidateProbeOutputInner

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

    • isValid

      public Boolean isValid()
      Get the isValid property: Indicates whether the probe URL is accepted or not.
      Returns:
      the isValid value.
    • errorCode

      public String errorCode()
      Get the errorCode property: Specifies the error code when the probe url is not accepted.
      Returns:
      the errorCode value.
    • message

      public String message()
      Get the message property: The detailed error message describing why the probe URL is not accepted.
      Returns:
      the message 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<ValidateProbeOutputInner>
      Throws:
      IOException
    • fromJson

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