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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: Gets or sets the workflow error.static WorkflowHealth
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WorkflowHealth from the JsonReader.state()
Get the state property: Gets or sets the workflow health state.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withError
(ErrorEntity error) Set the error property: Gets or sets the workflow error.withState
(WorkflowHealthState state) Set the state property: Gets or sets the workflow health state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WorkflowHealth
public WorkflowHealth()Creates an instance of WorkflowHealth class.
-
-
Method Details
-
state
Get the state property: Gets or sets the workflow health state.- Returns:
- the state value.
-
withState
Set the state property: Gets or sets the workflow health state.- Parameters:
state
- the state value to set.- Returns:
- the WorkflowHealth object itself.
-
error
Get the error property: Gets or sets the workflow error.- Returns:
- the error value.
-
withError
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<WorkflowHealth>
- Throws:
IOException
-
fromJson
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.
-