Partilhar via


WorkflowHealth Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.WorkflowHealth

Implements

public final class WorkflowHealth
implements JsonSerializable<WorkflowHealth>

Represents the workflow health.

Constructor Summary

Constructor Description
WorkflowHealth()

Creates an instance of WorkflowHealth class.

Method Summary

Modifier and Type Method and Description
ErrorEntity error()

Get the error property: Gets or sets the workflow error.

static WorkflowHealth fromJson(JsonReader jsonReader)

Reads an instance of WorkflowHealth from the JsonReader.

WorkflowHealthState state()

Get the state property: Gets or sets the workflow health state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkflowHealth withError(ErrorEntity error)

Set the error property: Gets or sets the workflow error.

WorkflowHealth withState(WorkflowHealthState state)

Set the state property: Gets or sets the workflow health state.

Methods inherited from java.lang.Object

Constructor Details

WorkflowHealth

public WorkflowHealth()

Creates an instance of WorkflowHealth class.

Method Details

error

public ErrorEntity error()

Get the error property: Gets or sets the workflow error.

Returns:

the error value.

fromJson

public static WorkflowHealth fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

state

public WorkflowHealthState state()

Get the state property: Gets or sets the workflow health state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to