AssessmentStatus Class

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

Implements

public class AssessmentStatus
implements JsonSerializable<AssessmentStatus>

The result of the assessment.

Constructor Summary

Constructor Description
AssessmentStatus()

Creates an instance of AssessmentStatus class.

Method Summary

Modifier and Type Method and Description
String cause()

Get the cause property: Programmatic code for the cause of the assessment status.

AssessmentStatusCode code()

Get the code property: Programmatic code for the status of the assessment.

String description()

Get the description property: Human readable description of the assessment status.

static AssessmentStatus fromJson(JsonReader jsonReader)

Reads an instance of AssessmentStatus from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AssessmentStatus withCause(String cause)

Set the cause property: Programmatic code for the cause of the assessment status.

AssessmentStatus withCode(AssessmentStatusCode code)

Set the code property: Programmatic code for the status of the assessment.

AssessmentStatus withDescription(String description)

Set the description property: Human readable description of the assessment status.

Methods inherited from java.lang.Object

Constructor Details

AssessmentStatus

public AssessmentStatus()

Creates an instance of AssessmentStatus class.

Method Details

cause

public String cause()

Get the cause property: Programmatic code for the cause of the assessment status.

Returns:

the cause value.

code

public AssessmentStatusCode code()

Get the code property: Programmatic code for the status of the assessment.

Returns:

the code value.

description

public String description()

Get the description property: Human readable description of the assessment status.

Returns:

the description value.

fromJson

public static AssessmentStatus fromJson(JsonReader jsonReader)

Reads an instance of AssessmentStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AssessmentStatus 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCause

public AssessmentStatus withCause(String cause)

Set the cause property: Programmatic code for the cause of the assessment status.

Parameters:

cause - the cause value to set.

Returns:

the AssessmentStatus object itself.

withCode

public AssessmentStatus withCode(AssessmentStatusCode code)

Set the code property: Programmatic code for the status of the assessment.

Parameters:

code - the code value to set.

Returns:

the AssessmentStatus object itself.

withDescription

public AssessmentStatus withDescription(String description)

Set the description property: Human readable description of the assessment status.

Parameters:

description - the description value to set.

Returns:

the AssessmentStatus object itself.

Applies to