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

public final class VaRule extends Object
vulnerability assessment rule metadata details.
  • Constructor Details

    • VaRule

      public VaRule()
  • Method Details

    • ruleId

      public String ruleId()
      Get the ruleId property: The rule Id.
      Returns:
      the ruleId value.
    • withRuleId

      public VaRule withRuleId(String ruleId)
      Set the ruleId property: The rule Id.
      Parameters:
      ruleId - the ruleId value to set.
      Returns:
      the VaRule object itself.
    • severity

      public RuleSeverity severity()
      Get the severity property: The rule severity.
      Returns:
      the severity value.
    • withSeverity

      public VaRule withSeverity(RuleSeverity severity)
      Set the severity property: The rule severity.
      Parameters:
      severity - the severity value to set.
      Returns:
      the VaRule object itself.
    • category

      public String category()
      Get the category property: The rule category.
      Returns:
      the category value.
    • withCategory

      public VaRule withCategory(String category)
      Set the category property: The rule category.
      Parameters:
      category - the category value to set.
      Returns:
      the VaRule object itself.
    • ruleType

      public RuleType ruleType()
      Get the ruleType property: The rule type.
      Returns:
      the ruleType value.
    • withRuleType

      public VaRule withRuleType(RuleType ruleType)
      Set the ruleType property: The rule type.
      Parameters:
      ruleType - the ruleType value to set.
      Returns:
      the VaRule object itself.
    • title

      public String title()
      Get the title property: The rule title.
      Returns:
      the title value.
    • withTitle

      public VaRule withTitle(String title)
      Set the title property: The rule title.
      Parameters:
      title - the title value to set.
      Returns:
      the VaRule object itself.
    • description

      public String description()
      Get the description property: The rule description.
      Returns:
      the description value.
    • withDescription

      public VaRule withDescription(String description)
      Set the description property: The rule description.
      Parameters:
      description - the description value to set.
      Returns:
      the VaRule object itself.
    • rationale

      public String rationale()
      Get the rationale property: The rule rationale.
      Returns:
      the rationale value.
    • withRationale

      public VaRule withRationale(String rationale)
      Set the rationale property: The rule rationale.
      Parameters:
      rationale - the rationale value to set.
      Returns:
      the VaRule object itself.
    • queryCheck

      public QueryCheck queryCheck()
      Get the queryCheck property: The rule query details.
      Returns:
      the queryCheck value.
    • withQueryCheck

      public VaRule withQueryCheck(QueryCheck queryCheck)
      Set the queryCheck property: The rule query details.
      Parameters:
      queryCheck - the queryCheck value to set.
      Returns:
      the VaRule object itself.
    • benchmarkReferences

      public List<BenchmarkReference> benchmarkReferences()
      Get the benchmarkReferences property: The benchmark references.
      Returns:
      the benchmarkReferences value.
    • withBenchmarkReferences

      public VaRule withBenchmarkReferences(List<BenchmarkReference> benchmarkReferences)
      Set the benchmarkReferences property: The benchmark references.
      Parameters:
      benchmarkReferences - the benchmarkReferences value to set.
      Returns:
      the VaRule object itself.
    • validate

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