Class WorkflowParameter

java.lang.Object
com.azure.resourcemanager.appservice.models.WorkflowParameter
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkflowParameter>
Direct Known Subclasses:
WorkflowOutputParameter

public class WorkflowParameter extends Object implements com.azure.json.JsonSerializable<WorkflowParameter>
The workflow parameters.
  • Constructor Details

    • WorkflowParameter

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

    • type

      public ParameterType type()
      Get the type property: The type.
      Returns:
      the type value.
    • withType

      public WorkflowParameter withType(ParameterType type)
      Set the type property: The type.
      Parameters:
      type - the type value to set.
      Returns:
      the WorkflowParameter object itself.
    • value

      public Object value()
      Get the value property: The value.
      Returns:
      the value value.
    • withValue

      public WorkflowParameter withValue(Object value)
      Set the value property: The value.
      Parameters:
      value - the value value to set.
      Returns:
      the WorkflowParameter object itself.
    • metadata

      public Object metadata()
      Get the metadata property: The metadata.
      Returns:
      the metadata value.
    • withMetadata

      public WorkflowParameter withMetadata(Object metadata)
      Set the metadata property: The metadata.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the WorkflowParameter object itself.
    • description

      public String description()
      Get the description property: The description.
      Returns:
      the description value.
    • withDescription

      public WorkflowParameter withDescription(String description)
      Set the description property: The description.
      Parameters:
      description - the description value to set.
      Returns:
      the WorkflowParameter 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<WorkflowParameter>
      Throws:
      IOException
    • fromJson

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