VaRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. VaRule
- com.
public final class VaRule
vulnerability assessment rule metadata details.
Constructor Summary
Constructor | Description |
---|---|
VaRule() |
Creates an instance of Va |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Benchmark |
benchmarkReferences()
Get the benchmark |
String |
category()
Get the category property: The rule category. |
String |
description()
Get the description property: The rule description. |
Query |
queryCheck()
Get the query |
String |
rationale()
Get the rationale property: The rule rationale. |
String |
ruleId()
Get the rule |
Rule |
ruleType()
Get the rule |
Rule |
severity()
Get the severity property: The rule severity. |
String |
title()
Get the title property: The rule title. |
void |
validate()
Validates the instance. |
Va |
withBenchmarkReferences(List<BenchmarkReference> benchmarkReferences)
Set the benchmark |
Va |
withCategory(String category)
Set the category property: The rule category. |
Va |
withDescription(String description)
Set the description property: The rule description. |
Va |
withQueryCheck(QueryCheck queryCheck)
Set the query |
Va |
withRationale(String rationale)
Set the rationale property: The rule rationale. |
Va |
withRuleId(String ruleId)
Set the rule |
Va |
withRuleType(RuleType ruleType)
Set the rule |
Va |
withSeverity(RuleSeverity severity)
Set the severity property: The rule severity. |
Va |
withTitle(String title)
Set the title property: The rule title. |
Methods inherited from java.lang.Object
Constructor Details
VaRule
public VaRule()
Creates an instance of VaRule class.
Method Details
benchmarkReferences
public List
Get the benchmarkReferences property: The benchmark references.
Returns:
category
public String category()
Get the category property: The rule category.
Returns:
description
public String description()
Get the description property: The rule description.
Returns:
queryCheck
public QueryCheck queryCheck()
Get the queryCheck property: The rule query details.
Returns:
rationale
public String rationale()
Get the rationale property: The rule rationale.
Returns:
ruleId
public String ruleId()
Get the ruleId property: The rule Id.
Returns:
ruleType
public RuleType ruleType()
Get the ruleType property: The rule type.
Returns:
severity
public RuleSeverity severity()
Get the severity property: The rule severity.
Returns:
title
public String title()
Get the title property: The rule title.
Returns:
validate
public void validate()
Validates the instance.
withBenchmarkReferences
public VaRule withBenchmarkReferences(List
Set the benchmarkReferences property: The benchmark references.
Parameters:
Returns:
withCategory
public VaRule withCategory(String category)
Set the category property: The rule category.
Parameters:
Returns:
withDescription
public VaRule withDescription(String description)
Set the description property: The rule description.
Parameters:
Returns:
withQueryCheck
public VaRule withQueryCheck(QueryCheck queryCheck)
Set the queryCheck property: The rule query details.
Parameters:
Returns:
withRationale
public VaRule withRationale(String rationale)
Set the rationale property: The rule rationale.
Parameters:
Returns:
withRuleId
public VaRule withRuleId(String ruleId)
Set the ruleId property: The rule Id.
Parameters:
Returns:
withRuleType
public VaRule withRuleType(RuleType ruleType)
Set the ruleType property: The rule type.
Parameters:
Returns:
withSeverity
public VaRule withSeverity(RuleSeverity severity)
Set the severity property: The rule severity.
Parameters:
Returns:
withTitle
public VaRule withTitle(String title)
Set the title property: The rule title.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for