VaRule Class

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

public final class VaRule

vulnerability assessment rule metadata details.

Constructor Summary

Constructor Description
VaRule()

Creates an instance of VaRule class.

Method Summary

Modifier and Type Method and Description
List<BenchmarkReference> benchmarkReferences()

Get the benchmarkReferences property: The benchmark references.

String category()

Get the category property: The rule category.

String description()

Get the description property: The rule description.

QueryCheck queryCheck()

Get the queryCheck property: The rule query details.

String rationale()

Get the rationale property: The rule rationale.

String ruleId()

Get the ruleId property: The rule Id.

RuleType ruleType()

Get the ruleType property: The rule type.

RuleSeverity severity()

Get the severity property: The rule severity.

String title()

Get the title property: The rule title.

void validate()

Validates the instance.

VaRule withBenchmarkReferences(List<BenchmarkReference> benchmarkReferences)

Set the benchmarkReferences property: The benchmark references.

VaRule withCategory(String category)

Set the category property: The rule category.

VaRule withDescription(String description)

Set the description property: The rule description.

VaRule withQueryCheck(QueryCheck queryCheck)

Set the queryCheck property: The rule query details.

VaRule withRationale(String rationale)

Set the rationale property: The rule rationale.

VaRule withRuleId(String ruleId)

Set the ruleId property: The rule Id.

VaRule withRuleType(RuleType ruleType)

Set the ruleType property: The rule type.

VaRule withSeverity(RuleSeverity severity)

Set the severity property: The rule severity.

VaRule 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 benchmarkReferences()

Get the benchmarkReferences property: The benchmark references.

Returns:

the benchmarkReferences value.

category

public String category()

Get the category property: The rule category.

Returns:

the category value.

description

public String description()

Get the description property: The rule description.

Returns:

the description value.

queryCheck

public QueryCheck queryCheck()

Get the queryCheck property: The rule query details.

Returns:

the queryCheck value.

rationale

public String rationale()

Get the rationale property: The rule rationale.

Returns:

the rationale value.

ruleId

public String ruleId()

Get the ruleId property: The rule Id.

Returns:

the ruleId value.

ruleType

public RuleType ruleType()

Get the ruleType property: The rule type.

Returns:

the ruleType value.

severity

public RuleSeverity severity()

Get the severity property: The rule severity.

Returns:

the severity value.

title

public String title()

Get the title property: The rule title.

Returns:

the title value.

validate

public void validate()

Validates the instance.

withBenchmarkReferences

public VaRule withBenchmarkReferences(List benchmarkReferences)

Set the benchmarkReferences property: The benchmark references.

Parameters:

benchmarkReferences - the benchmarkReferences value to set.

Returns:

the VaRule object itself.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to