VaRule Class

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

Implements

public final class VaRule
implements JsonSerializable<VaRule>

vulnerability assessment rule metadata details.

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.

static VaRule fromJson(JsonReader jsonReader)

Reads an instance of VaRule from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

benchmarkReferences

public List<BenchmarkReference> 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.

fromJson

public static VaRule fromJson(JsonReader jsonReader)

Reads an instance of VaRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VaRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VaRule.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to