Class ScanResultProperties
java.lang.Object
com.azure.resourcemanager.security.models.ScanResultProperties
A vulnerability assessment scan result properties for a single rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the baselineAdjustedResult property: The rule result adjusted with baseline.Get the isTrimmed property: Indicated whether the results specified here are trimmed.Get the queryResults property: The results of the query that was run.Get the remediation property: Remediation details.ruleId()
Get the ruleId property: The rule Id.Get the ruleMetadata property: vulnerability assessment rule metadata details.status()
Get the status property: The rule result status.void
validate()
Validates the instance.withBaselineAdjustedResult
(BaselineAdjustedResult baselineAdjustedResult) Set the baselineAdjustedResult property: The rule result adjusted with baseline.withIsTrimmed
(Boolean isTrimmed) Set the isTrimmed property: Indicated whether the results specified here are trimmed.withQueryResults
(List<List<String>> queryResults) Set the queryResults property: The results of the query that was run.withRemediation
(Remediation remediation) Set the remediation property: Remediation details.withRuleId
(String ruleId) Set the ruleId property: The rule Id.withRuleMetadata
(VaRule ruleMetadata) Set the ruleMetadata property: vulnerability assessment rule metadata details.withStatus
(RuleStatus status) Set the status property: The rule result status.
-
Constructor Details
-
ScanResultProperties
public ScanResultProperties()
-
-
Method Details
-
ruleId
Get the ruleId property: The rule Id.- Returns:
- the ruleId value.
-
withRuleId
Set the ruleId property: The rule Id.- Parameters:
ruleId
- the ruleId value to set.- Returns:
- the ScanResultProperties object itself.
-
status
Get the status property: The rule result status.- Returns:
- the status value.
-
withStatus
Set the status property: The rule result status.- Parameters:
status
- the status value to set.- Returns:
- the ScanResultProperties object itself.
-
isTrimmed
Get the isTrimmed property: Indicated whether the results specified here are trimmed.- Returns:
- the isTrimmed value.
-
withIsTrimmed
Set the isTrimmed property: Indicated whether the results specified here are trimmed.- Parameters:
isTrimmed
- the isTrimmed value to set.- Returns:
- the ScanResultProperties object itself.
-
queryResults
Get the queryResults property: The results of the query that was run.- Returns:
- the queryResults value.
-
withQueryResults
Set the queryResults property: The results of the query that was run.- Parameters:
queryResults
- the queryResults value to set.- Returns:
- the ScanResultProperties object itself.
-
remediation
Get the remediation property: Remediation details.- Returns:
- the remediation value.
-
withRemediation
Set the remediation property: Remediation details.- Parameters:
remediation
- the remediation value to set.- Returns:
- the ScanResultProperties object itself.
-
baselineAdjustedResult
Get the baselineAdjustedResult property: The rule result adjusted with baseline.- Returns:
- the baselineAdjustedResult value.
-
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.
-
ruleMetadata
Get the ruleMetadata property: vulnerability assessment rule metadata details.- Returns:
- the ruleMetadata value.
-
withRuleMetadata
Set the ruleMetadata property: vulnerability assessment rule metadata details.- Parameters:
ruleMetadata
- the ruleMetadata value to set.- Returns:
- the ScanResultProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-