HealthReportStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.HealthReportStatus

Implements

public final class HealthReportStatus
implements JsonSerializable<HealthReportStatus>

The status of the health report.

Method Summary

Modifier and Type Method and Description
StatusName code()

Get the code property: The status of the health report.

OffsetDateTime firstEvaluationDate()

Get the firstEvaluationDate property: The date of when the resource of the health report was scanned in the first time.

static HealthReportStatus fromJson(JsonReader jsonReader)

Reads an instance of HealthReportStatus from the JsonReader.

OffsetDateTime lastScannedDate()

Get the lastScannedDate property: The date of when the resource was scanned in the last time.

String reason()

Get the reason property: The reason of the given status.

OffsetDateTime statusChangeDate()

Get the statusChangeDate property: The date of when the status of the health report was changed in the last time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

code

public StatusName code()

Get the code property: The status of the health report.

Returns:

the code value.

firstEvaluationDate

public OffsetDateTime firstEvaluationDate()

Get the firstEvaluationDate property: The date of when the resource of the health report was scanned in the first time.

Returns:

the firstEvaluationDate value.

fromJson

public static HealthReportStatus fromJson(JsonReader jsonReader)

Reads an instance of HealthReportStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HealthReportStatus if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the HealthReportStatus.

lastScannedDate

public OffsetDateTime lastScannedDate()

Get the lastScannedDate property: The date of when the resource was scanned in the last time.

Returns:

the lastScannedDate value.

reason

public String reason()

Get the reason property: The reason of the given status.

Returns:

the reason value.

statusChangeDate

public OffsetDateTime statusChangeDate()

Get the statusChangeDate property: The date of when the status of the health report was changed in the last time.

Returns:

the statusChangeDate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to