Struct aws_sdk_glue::types::builders::CustomEntityTypeBuilder
source · #[non_exhaustive]pub struct CustomEntityTypeBuilder { /* private fields */ }
Expand description
A builder for CustomEntityType
.
Implementations§
source§impl CustomEntityTypeBuilder
impl CustomEntityTypeBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
sourcepub fn regex_string(self, input: impl Into<String>) -> Self
pub fn regex_string(self, input: impl Into<String>) -> Self
A regular expression string that is used for detecting sensitive data in a custom pattern.
This field is required.sourcepub fn set_regex_string(self, input: Option<String>) -> Self
pub fn set_regex_string(self, input: Option<String>) -> Self
A regular expression string that is used for detecting sensitive data in a custom pattern.
sourcepub fn get_regex_string(&self) -> &Option<String>
pub fn get_regex_string(&self) -> &Option<String>
A regular expression string that is used for detecting sensitive data in a custom pattern.
sourcepub fn context_words(self, input: impl Into<String>) -> Self
pub fn context_words(self, input: impl Into<String>) -> Self
Appends an item to context_words
.
To override the contents of this collection use set_context_words
.
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
sourcepub fn set_context_words(self, input: Option<Vec<String>>) -> Self
pub fn set_context_words(self, input: Option<Vec<String>>) -> Self
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
sourcepub fn get_context_words(&self) -> &Option<Vec<String>>
pub fn get_context_words(&self) -> &Option<Vec<String>>
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
sourcepub fn build(self) -> Result<CustomEntityType, BuildError>
pub fn build(self) -> Result<CustomEntityType, BuildError>
Consumes the builder and constructs a CustomEntityType
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomEntityTypeBuilder
impl Clone for CustomEntityTypeBuilder
source§fn clone(&self) -> CustomEntityTypeBuilder
fn clone(&self) -> CustomEntityTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomEntityTypeBuilder
impl Debug for CustomEntityTypeBuilder
source§impl Default for CustomEntityTypeBuilder
impl Default for CustomEntityTypeBuilder
source§fn default() -> CustomEntityTypeBuilder
fn default() -> CustomEntityTypeBuilder
source§impl PartialEq for CustomEntityTypeBuilder
impl PartialEq for CustomEntityTypeBuilder
source§fn eq(&self, other: &CustomEntityTypeBuilder) -> bool
fn eq(&self, other: &CustomEntityTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomEntityTypeBuilder
Auto Trait Implementations§
impl Freeze for CustomEntityTypeBuilder
impl RefUnwindSafe for CustomEntityTypeBuilder
impl Send for CustomEntityTypeBuilder
impl Sync for CustomEntityTypeBuilder
impl Unpin for CustomEntityTypeBuilder
impl UnwindSafe for CustomEntityTypeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more