Diagnostic Class

  • java.lang.Object
    • com.azure.resourcemanager.selfhelp.models.Diagnostic

public final class Diagnostic

Properties returned with in an insight.

Constructor Summary

Constructor Description
Diagnostic()

Creates an instance of Diagnostic class.

Method Summary

Modifier and Type Method and Description
Error error()

Get the error property: Error definition.

List<Insight> insights()

Get the insights property: The problems (if any) detected by this insight.

String solutionId()

Get the solutionId property: Solution Id.

Status status()

Get the status property: Denotes the status of the diagnostic resource.

void validate()

Validates the instance.

Diagnostic withError(Error error)

Set the error property: Error definition.

Diagnostic withInsights(List<Insight> insights)

Set the insights property: The problems (if any) detected by this insight.

Diagnostic withSolutionId(String solutionId)

Set the solutionId property: Solution Id.

Diagnostic withStatus(Status status)

Set the status property: Denotes the status of the diagnostic resource.

Methods inherited from java.lang.Object

Constructor Details

Diagnostic

public Diagnostic()

Creates an instance of Diagnostic class.

Method Details

error

public Error error()

Get the error property: Error definition.

Returns:

the error value.

insights

public List<Insight> insights()

Get the insights property: The problems (if any) detected by this insight.

Returns:

the insights value.

solutionId

public String solutionId()

Get the solutionId property: Solution Id.

Returns:

the solutionId value.

status

public Status status()

Get the status property: Denotes the status of the diagnostic resource.

Returns:

the status value.

validate

public void validate()

Validates the instance.

withError

public Diagnostic withError(Error error)

Set the error property: Error definition.

Parameters:

error - the error value to set.

Returns:

the Diagnostic object itself.

withInsights

public Diagnostic withInsights(List<Insight> insights)

Set the insights property: The problems (if any) detected by this insight.

Parameters:

insights - the insights value to set.

Returns:

the Diagnostic object itself.

withSolutionId

public Diagnostic withSolutionId(String solutionId)

Set the solutionId property: Solution Id.

Parameters:

solutionId - the solutionId value to set.

Returns:

the Diagnostic object itself.

withStatus

public Diagnostic withStatus(Status status)

Set the status property: Denotes the status of the diagnostic resource.

Parameters:

status - the status value to set.

Returns:

the Diagnostic object itself.

Applies to