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 Summary
Modifier and TypeMethodDescriptionGet the allowedValues property: Allowed values for this input parameter.Get the defaultValue property: Optional default value to use when input is not provided.Get the description property: Description of the declared input parameter.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ValidationTestInputDefinition from the JsonReader.required()Get the required property: Whether this input parameter is required.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The data type expected for this input parameter.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
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
Get the required property: Whether this input parameter is required.- Returns:
- the required value.
-
defaultValue
Get the defaultValue property: Optional default value to use when input is not provided.- Returns:
- the defaultValue value.
-
allowedValues
-
toJson
- Specified by:
toJsonin interfacecom.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.
-