Class ValidationTestInputDefinition

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

public final class ValidationTestInputDefinition extends Object implements com.azure.json.JsonSerializable<ValidationTestInputDefinition>
Declared contract for a validation test input parameter.
  • Method Details

    • description

      public String description()
      Get the description property: Description of the declared input parameter.
      Returns:
      the description value.
    • type

      Get the type property: The data type expected for this input parameter.
      Returns:
      the type value.
    • required

      public Boolean required()
      Get the required property: Whether this input parameter is required.
      Returns:
      the required value.
    • defaultValue

      public String defaultValue()
      Get the defaultValue property: Optional default value to use when input is not provided.
      Returns:
      the defaultValue value.
    • allowedValues

      public List<String> allowedValues()
      Get the allowedValues property: Allowed values for this input parameter.
      Returns:
      the allowedValues value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ValidationTestInputDefinition>
      Throws:
      IOException
    • fromJson

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