Class VaRule
java.lang.Object
com.azure.resourcemanager.security.models.VaRule
vulnerability assessment rule metadata details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the benchmarkReferences property: The benchmark references.category()
Get the category property: The rule category.Get the description property: The rule description.Get the queryCheck property: The rule query details.Get the rationale property: The rule rationale.ruleId()
Get the ruleId property: The rule Id.ruleType()
Get the ruleType property: The rule type.severity()
Get the severity property: The rule severity.title()
Get the title property: The rule title.void
validate()
Validates the instance.withBenchmarkReferences
(List<BenchmarkReference> benchmarkReferences) Set the benchmarkReferences property: The benchmark references.withCategory
(String category) Set the category property: The rule category.withDescription
(String description) Set the description property: The rule description.withQueryCheck
(QueryCheck queryCheck) Set the queryCheck property: The rule query details.withRationale
(String rationale) Set the rationale property: The rule rationale.withRuleId
(String ruleId) Set the ruleId property: The rule Id.withRuleType
(RuleType ruleType) Set the ruleType property: The rule type.withSeverity
(RuleSeverity severity) Set the severity property: The rule severity.Set the title property: The rule title.
-
Constructor Details
-
VaRule
public VaRule()
-
-
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 VaRule object itself.
-
severity
Get the severity property: The rule severity.- Returns:
- the severity value.
-
withSeverity
Set the severity property: The rule severity.- Parameters:
severity
- the severity value to set.- Returns:
- the VaRule object itself.
-
category
Get the category property: The rule category.- Returns:
- the category value.
-
withCategory
Set the category property: The rule category.- Parameters:
category
- the category value to set.- Returns:
- the VaRule object itself.
-
ruleType
Get the ruleType property: The rule type.- Returns:
- the ruleType value.
-
withRuleType
Set the ruleType property: The rule type.- Parameters:
ruleType
- the ruleType value to set.- Returns:
- the VaRule object itself.
-
title
Get the title property: The rule title.- Returns:
- the title value.
-
withTitle
Set the title property: The rule title.- Parameters:
title
- the title value to set.- Returns:
- the VaRule object itself.
-
description
Get the description property: The rule description.- Returns:
- the description value.
-
withDescription
Set the description property: The rule description.- Parameters:
description
- the description value to set.- Returns:
- the VaRule object itself.
-
rationale
Get the rationale property: The rule rationale.- Returns:
- the rationale value.
-
withRationale
Set the rationale property: The rule rationale.- Parameters:
rationale
- the rationale value to set.- Returns:
- the VaRule object itself.
-
queryCheck
Get the queryCheck property: The rule query details.- Returns:
- the queryCheck value.
-
withQueryCheck
Set the queryCheck property: The rule query details.- Parameters:
queryCheck
- the queryCheck value to set.- Returns:
- the VaRule object itself.
-
benchmarkReferences
Get the benchmarkReferences property: The benchmark references.- Returns:
- the benchmarkReferences value.
-
withBenchmarkReferences
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.
-