ComplianceSegment Class

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

Implements

public final class ComplianceSegment
implements JsonSerializable<ComplianceSegment>

A segment of a compliance assessment.

Method Summary

Modifier and Type Method and Description
static ComplianceSegment fromJson(JsonReader jsonReader)

Reads an instance of ComplianceSegment from the JsonReader.

Double percentage()

Get the percentage property: The size (%) of the segment.

String segmentType()

Get the segmentType property: The segment type, e.g.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static ComplianceSegment fromJson(JsonReader jsonReader)

Reads an instance of ComplianceSegment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

percentage

public Double percentage()

Get the percentage property: The size (%) of the segment.

Returns:

the percentage value.

segmentType

public String segmentType()

Get the segmentType property: The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc.

Returns:

the segmentType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to