Struct aws_sdk_macie2::operation::test_custom_data_identifier::builders::TestCustomDataIdentifierInputBuilder
source · #[non_exhaustive]pub struct TestCustomDataIdentifierInputBuilder { /* private fields */ }
Expand description
A builder for TestCustomDataIdentifierInput
.
Implementations§
source§impl TestCustomDataIdentifierInputBuilder
impl TestCustomDataIdentifierInputBuilder
sourcepub fn ignore_words(self, input: impl Into<String>) -> Self
pub fn ignore_words(self, input: impl Into<String>) -> Self
Appends an item to ignore_words
.
To override the contents of this collection use set_ignore_words
.
An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.
sourcepub fn set_ignore_words(self, input: Option<Vec<String>>) -> Self
pub fn set_ignore_words(self, input: Option<Vec<String>>) -> Self
An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.
sourcepub fn keywords(self, input: impl Into<String>) -> Self
pub fn keywords(self, input: impl Into<String>) -> Self
Appends an item to keywords
.
To override the contents of this collection use set_keywords
.
An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.
sourcepub fn set_keywords(self, input: Option<Vec<String>>) -> Self
pub fn set_keywords(self, input: Option<Vec<String>>) -> Self
An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.
sourcepub fn maximum_match_distance(self, input: i32) -> Self
pub fn maximum_match_distance(self, input: i32) -> Self
The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.
sourcepub fn set_maximum_match_distance(self, input: Option<i32>) -> Self
pub fn set_maximum_match_distance(self, input: Option<i32>) -> Self
The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.
sourcepub fn regex(self, input: impl Into<String>) -> Self
pub fn regex(self, input: impl Into<String>) -> Self
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
sourcepub fn set_regex(self, input: Option<String>) -> Self
pub fn set_regex(self, input: Option<String>) -> Self
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
sourcepub fn sample_text(self, input: impl Into<String>) -> Self
pub fn sample_text(self, input: impl Into<String>) -> Self
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
sourcepub fn set_sample_text(self, input: Option<String>) -> Self
pub fn set_sample_text(self, input: Option<String>) -> Self
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
sourcepub fn build(self) -> Result<TestCustomDataIdentifierInput, BuildError>
pub fn build(self) -> Result<TestCustomDataIdentifierInput, BuildError>
Consumes the builder and constructs a TestCustomDataIdentifierInput
.
Trait Implementations§
source§impl Clone for TestCustomDataIdentifierInputBuilder
impl Clone for TestCustomDataIdentifierInputBuilder
source§fn clone(&self) -> TestCustomDataIdentifierInputBuilder
fn clone(&self) -> TestCustomDataIdentifierInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TestCustomDataIdentifierInputBuilder
impl Default for TestCustomDataIdentifierInputBuilder
source§fn default() -> TestCustomDataIdentifierInputBuilder
fn default() -> TestCustomDataIdentifierInputBuilder
source§impl PartialEq<TestCustomDataIdentifierInputBuilder> for TestCustomDataIdentifierInputBuilder
impl PartialEq<TestCustomDataIdentifierInputBuilder> for TestCustomDataIdentifierInputBuilder
source§fn eq(&self, other: &TestCustomDataIdentifierInputBuilder) -> bool
fn eq(&self, other: &TestCustomDataIdentifierInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.