Class RunCommandParameterDefinition

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

public final class RunCommandParameterDefinition extends Object implements com.azure.json.JsonSerializable<RunCommandParameterDefinition>
Describes the properties of a run command parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the defaultValue property: The run command parameter default value.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RunCommandParameterDefinition from the JsonReader.
    Get the name property: The run command parameter name.
    Get the required property: The run command parameter required.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The run command parameter type.
    void
    Validates the instance.

    Methods inherited from class Object

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

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • name

      public String name()
      Get the name property: The run command parameter name.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The run command parameter type.
      Returns:
      the type value.
    • defaultValue

      public String defaultValue()
      Get the defaultValue property: The run command parameter default value.
      Returns:
      the defaultValue value.
    • required

      public Boolean required()
      Get the required property: The run command parameter required.
      Returns:
      the required 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<RunCommandParameterDefinition>
      Throws:
      IOException
    • fromJson

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