Diagnostic Class
- java.
lang. Object - com.
azure. resourcemanager. selfhelp. models. Diagnostic
- com.
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 solution |
| 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 solution |
| 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:
insights
public List<Insight> insights()
Get the insights property: The problems (if any) detected by this insight.
Returns:
solutionId
public String solutionId()
Get the solutionId property: Solution Id.
Returns:
status
public Status status()
Get the status property: Denotes the status of the diagnostic resource.
Returns:
validate
public void validate()
Validates the instance.
withError
public Diagnostic withError(Error error)
Set the error property: Error definition.
Parameters:
Returns:
withInsights
public Diagnostic withInsights(List<Insight> insights)
Set the insights property: The problems (if any) detected by this insight.
Parameters:
Returns:
withSolutionId
public Diagnostic withSolutionId(String solutionId)
Set the solutionId property: Solution Id.
Parameters:
Returns:
withStatus
public Diagnostic withStatus(Status status)
Set the status property: Denotes the status of the diagnostic resource.
Parameters:
Returns: