CategoryConfiguration Class

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

public final class CategoryConfiguration

Severity level per category configuration for PR Annotations.

Constructor Summary

Constructor Description
CategoryConfiguration()

Creates an instance of CategoryConfiguration class.

Method Summary

Modifier and Type Method and Description
RuleCategory category()

Get the category property: Rule categories.

String minimumSeverityLevel()

Get the minimumSeverityLevel property: Gets or sets minimum severity level for a given category.

void validate()

Validates the instance.

CategoryConfiguration withCategory(RuleCategory category)

Set the category property: Rule categories.

CategoryConfiguration withMinimumSeverityLevel(String minimumSeverityLevel)

Set the minimumSeverityLevel property: Gets or sets minimum severity level for a given category.

Methods inherited from java.lang.Object

Constructor Details

CategoryConfiguration

public CategoryConfiguration()

Creates an instance of CategoryConfiguration class.

Method Details

category

public RuleCategory category()

Get the category property: Rule categories. Code - code scanning results. Artifact scanning results. Dependencies scanning results. IaC results. Secrets scanning results. Container scanning results.

Returns:

the category value.

minimumSeverityLevel

public String minimumSeverityLevel()

Get the minimumSeverityLevel property: Gets or sets minimum severity level for a given category.

Returns:

the minimumSeverityLevel value.

validate

public void validate()

Validates the instance.

withCategory

public CategoryConfiguration withCategory(RuleCategory category)

Set the category property: Rule categories. Code - code scanning results. Artifact scanning results. Dependencies scanning results. IaC results. Secrets scanning results. Container scanning results.

Parameters:

category - the category value to set.

Returns:

the CategoryConfiguration object itself.

withMinimumSeverityLevel

public CategoryConfiguration withMinimumSeverityLevel(String minimumSeverityLevel)

Set the minimumSeverityLevel property: Gets or sets minimum severity level for a given category.

Parameters:

minimumSeverityLevel - the minimumSeverityLevel value to set.

Returns:

the CategoryConfiguration object itself.

Applies to