Struct aws_sdk_macie2::model::severity_level::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for SeverityLevel
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn occurrences_threshold(self, input: i64) -> Self
pub fn occurrences_threshold(self, input: i64) -> Self
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
sourcepub fn set_occurrences_threshold(self, input: Option<i64>) -> Self
pub fn set_occurrences_threshold(self, input: Option<i64>) -> Self
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
sourcepub fn severity(self, input: DataIdentifierSeverity) -> Self
pub fn severity(self, input: DataIdentifierSeverity) -> Self
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
sourcepub fn set_severity(self, input: Option<DataIdentifierSeverity>) -> Self
pub fn set_severity(self, input: Option<DataIdentifierSeverity>) -> Self
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
sourcepub fn build(self) -> SeverityLevel
pub fn build(self) -> SeverityLevel
Consumes the builder and constructs a SeverityLevel
.