ScanResultProperties Class

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

Implements

public final class ScanResultProperties
implements JsonSerializable<ScanResultProperties>

A vulnerability assessment scan result properties for a single rule.

Method Summary

Modifier and Type Method and Description
BaselineAdjustedResult baselineAdjustedResult()

Get the baselineAdjustedResult property: The rule result adjusted with baseline.

static ScanResultProperties fromJson(JsonReader jsonReader)

Reads an instance of ScanResultProperties from the JsonReader.

Boolean isTrimmed()

Get the isTrimmed property: Indicates whether the results specified here are trimmed.

List<List<String>> queryResults()

Get the queryResults property: The results of the query that was run.

Remediation remediation()

Get the remediation property: Remediation details.

String ruleId()

Get the ruleId property: The rule Id.

VaRule ruleMetadata()

Get the ruleMetadata property: vulnerability assessment rule metadata details.

RuleStatus status()

Get the status property: The rule result status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

baselineAdjustedResult

public BaselineAdjustedResult baselineAdjustedResult()

Get the baselineAdjustedResult property: The rule result adjusted with baseline.

Returns:

the baselineAdjustedResult value.

fromJson

public static ScanResultProperties fromJson(JsonReader jsonReader)

Reads an instance of ScanResultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isTrimmed

public Boolean isTrimmed()

Get the isTrimmed property: Indicates whether the results specified here are trimmed.

Returns:

the isTrimmed value.

queryResults

public List<List<String>> queryResults()

Get the queryResults property: The results of the query that was run.

Returns:

the queryResults value.

remediation

public Remediation remediation()

Get the remediation property: Remediation details.

Returns:

the remediation value.

ruleId

public String ruleId()

Get the ruleId property: The rule Id.

Returns:

the ruleId value.

ruleMetadata

public VaRule ruleMetadata()

Get the ruleMetadata property: vulnerability assessment rule metadata details.

Returns:

the ruleMetadata value.

status

public RuleStatus status()

Get the status property: The rule result status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to