Class WorkflowHealth

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

public final class WorkflowHealth extends Object implements com.azure.json.JsonSerializable<WorkflowHealth>
Represents the workflow health.
  • Constructor Details

    • WorkflowHealth

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

    • state

      public WorkflowHealthState state()
      Get the state property: Gets or sets the workflow health state.
      Returns:
      the state value.
    • withState

      public WorkflowHealth withState(WorkflowHealthState state)
      Set the state property: Gets or sets the workflow health state.
      Parameters:
      state - the state value to set.
      Returns:
      the WorkflowHealth object itself.
    • error

      public ErrorEntity error()
      Get the error property: Gets or sets the workflow error.
      Returns:
      the error value.
    • withError

      public WorkflowHealth withError(ErrorEntity error)
      Set the error property: Gets or sets the workflow error.
      Parameters:
      error - the error value to set.
      Returns:
      the WorkflowHealth 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<WorkflowHealth>
      Throws:
      IOException
    • fromJson

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