Class RunbookParameter

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

public final class RunbookParameter extends Object implements com.azure.json.JsonSerializable<RunbookParameter>
Definition of the runbook parameter type.
  • Constructor Details

    • RunbookParameter

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

    • type

      public String type()
      Get the type property: Gets or sets the type of the parameter.
      Returns:
      the type value.
    • withType

      public RunbookParameter withType(String type)
      Set the type property: Gets or sets the type of the parameter.
      Parameters:
      type - the type value to set.
      Returns:
      the RunbookParameter object itself.
    • isMandatory

      public Boolean isMandatory()
      Get the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
      Returns:
      the isMandatory value.
    • withIsMandatory

      public RunbookParameter withIsMandatory(Boolean isMandatory)
      Set the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
      Parameters:
      isMandatory - the isMandatory value to set.
      Returns:
      the RunbookParameter object itself.
    • position

      public Integer position()
      Get the position property: Get or sets the position of the parameter.
      Returns:
      the position value.
    • withPosition

      public RunbookParameter withPosition(Integer position)
      Set the position property: Get or sets the position of the parameter.
      Parameters:
      position - the position value to set.
      Returns:
      the RunbookParameter object itself.
    • defaultValue

      public String defaultValue()
      Get the defaultValue property: Gets or sets the default value of parameter.
      Returns:
      the defaultValue value.
    • withDefaultValue

      public RunbookParameter withDefaultValue(String defaultValue)
      Set the defaultValue property: Gets or sets the default value of parameter.
      Parameters:
      defaultValue - the defaultValue value to set.
      Returns:
      the RunbookParameter 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<RunbookParameter>
      Throws:
      IOException
    • fromJson

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