ScanResultProperties Class

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

public final class ScanResultProperties

A vulnerability assessment scan result properties for a single rule.

Constructor Summary

Constructor Description
ScanResultProperties()

Creates an instance of ScanResultProperties class.

Method Summary

Modifier and Type Method and Description
BaselineAdjustedResult baselineAdjustedResult()

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

Boolean isTrimmed()

Get the isTrimmed property: Indicated 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.

void validate()

Validates the instance.

ScanResultProperties withBaselineAdjustedResult(BaselineAdjustedResult baselineAdjustedResult)

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

ScanResultProperties withIsTrimmed(Boolean isTrimmed)

Set the isTrimmed property: Indicated whether the results specified here are trimmed.

ScanResultProperties withQueryResults(List<List<String>> queryResults)

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

ScanResultProperties withRemediation(Remediation remediation)

Set the remediation property: Remediation details.

ScanResultProperties withRuleId(String ruleId)

Set the ruleId property: The rule Id.

ScanResultProperties withRuleMetadata(VaRule ruleMetadata)

Set the ruleMetadata property: vulnerability assessment rule metadata details.

ScanResultProperties withStatus(RuleStatus status)

Set the status property: The rule result status.

Methods inherited from java.lang.Object

Constructor Details

ScanResultProperties

public ScanResultProperties()

Creates an instance of ScanResultProperties class.

Method Details

baselineAdjustedResult

public BaselineAdjustedResult baselineAdjustedResult()

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

Returns:

the baselineAdjustedResult value.

isTrimmed

public Boolean isTrimmed()

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

Returns:

the isTrimmed value.

queryResults

public List<>> 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.

validate

public void validate()

Validates the instance.

withBaselineAdjustedResult

public ScanResultProperties withBaselineAdjustedResult(BaselineAdjustedResult baselineAdjustedResult)

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

Parameters:

baselineAdjustedResult - the baselineAdjustedResult value to set.

Returns:

the ScanResultProperties object itself.

withIsTrimmed

public ScanResultProperties withIsTrimmed(Boolean isTrimmed)

Set the isTrimmed property: Indicated whether the results specified here are trimmed.

Parameters:

isTrimmed - the isTrimmed value to set.

Returns:

the ScanResultProperties object itself.

withQueryResults

public ScanResultProperties withQueryResults(List<>> queryResults)

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

Parameters:

queryResults - the queryResults value to set.

Returns:

the ScanResultProperties object itself.

withRemediation

public ScanResultProperties withRemediation(Remediation remediation)

Set the remediation property: Remediation details.

Parameters:

remediation - the remediation value to set.

Returns:

the ScanResultProperties object itself.

withRuleId

public ScanResultProperties withRuleId(String ruleId)

Set the ruleId property: The rule Id.

Parameters:

ruleId - the ruleId value to set.

Returns:

the ScanResultProperties object itself.

withRuleMetadata

public ScanResultProperties withRuleMetadata(VaRule ruleMetadata)

Set the ruleMetadata property: vulnerability assessment rule metadata details.

Parameters:

ruleMetadata - the ruleMetadata value to set.

Returns:

the ScanResultProperties object itself.

withStatus

public ScanResultProperties withStatus(RuleStatus status)

Set the status property: The rule result status.

Parameters:

status - the status value to set.

Returns:

the ScanResultProperties object itself.

Applies to