Class ScanResultProperties

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

public final class ScanResultProperties extends Object
A vulnerability assessment scan result properties for a single rule.
  • Constructor Details

    • ScanResultProperties

      public ScanResultProperties()
  • Method Details

    • ruleId

      public String ruleId()
      Get the ruleId property: The rule Id.
      Returns:
      the ruleId value.
    • 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.
    • status

      public RuleStatus status()
      Get the status property: The rule result status.
      Returns:
      the status value.
    • 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.
    • isTrimmed

      public Boolean isTrimmed()
      Get the isTrimmed property: Indicated whether the results specified here are trimmed.
      Returns:
      the isTrimmed value.
    • 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.
    • queryResults

      public List<List<String>> queryResults()
      Get the queryResults property: The results of the query that was run.
      Returns:
      the queryResults value.
    • withQueryResults

      public ScanResultProperties withQueryResults(List<List<String>> 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.
    • remediation

      public Remediation remediation()
      Get the remediation property: Remediation details.
      Returns:
      the remediation value.
    • withRemediation

      public ScanResultProperties withRemediation(Remediation remediation)
      Set the remediation property: Remediation details.
      Parameters:
      remediation - the remediation value to set.
      Returns:
      the ScanResultProperties object itself.
    • baselineAdjustedResult

      public BaselineAdjustedResult 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

      public VaRule ruleMetadata()
      Get the ruleMetadata property: vulnerability assessment rule metadata details.
      Returns:
      the ruleMetadata value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.