Struct aws_sdk_macie2::types::builders::SensitiveDataItemBuilder
source · #[non_exhaustive]pub struct SensitiveDataItemBuilder { /* private fields */ }
Expand description
A builder for SensitiveDataItem
.
Implementations§
source§impl SensitiveDataItemBuilder
impl SensitiveDataItemBuilder
sourcepub fn category(self, input: SensitiveDataItemCategory) -> Self
pub fn category(self, input: SensitiveDataItemCategory) -> Self
The category of sensitive data that was detected. For example: CREDENTIALS, for credentials data such as private keys or Amazon Web Services secret access keys; FINANCIAL_INFORMATION, for financial data such as credit card numbers; or, PERSONAL_INFORMATION, for personal health information, such as health insurance identification numbers, or personally identifiable information, such as passport numbers.
sourcepub fn set_category(self, input: Option<SensitiveDataItemCategory>) -> Self
pub fn set_category(self, input: Option<SensitiveDataItemCategory>) -> Self
The category of sensitive data that was detected. For example: CREDENTIALS, for credentials data such as private keys or Amazon Web Services secret access keys; FINANCIAL_INFORMATION, for financial data such as credit card numbers; or, PERSONAL_INFORMATION, for personal health information, such as health insurance identification numbers, or personally identifiable information, such as passport numbers.
sourcepub fn get_category(&self) -> &Option<SensitiveDataItemCategory>
pub fn get_category(&self) -> &Option<SensitiveDataItemCategory>
The category of sensitive data that was detected. For example: CREDENTIALS, for credentials data such as private keys or Amazon Web Services secret access keys; FINANCIAL_INFORMATION, for financial data such as credit card numbers; or, PERSONAL_INFORMATION, for personal health information, such as health insurance identification numbers, or personally identifiable information, such as passport numbers.
sourcepub fn detections(self, input: DefaultDetection) -> Self
pub fn detections(self, input: DefaultDetection) -> Self
Appends an item to detections
.
To override the contents of this collection use set_detections
.
An array of objects, one for each type of sensitive data that was detected. Each object reports the number of occurrences of a specific type of sensitive data that was detected, and the location of up to 15 of those occurrences.
sourcepub fn set_detections(self, input: Option<Vec<DefaultDetection>>) -> Self
pub fn set_detections(self, input: Option<Vec<DefaultDetection>>) -> Self
An array of objects, one for each type of sensitive data that was detected. Each object reports the number of occurrences of a specific type of sensitive data that was detected, and the location of up to 15 of those occurrences.
sourcepub fn get_detections(&self) -> &Option<Vec<DefaultDetection>>
pub fn get_detections(&self) -> &Option<Vec<DefaultDetection>>
An array of objects, one for each type of sensitive data that was detected. Each object reports the number of occurrences of a specific type of sensitive data that was detected, and the location of up to 15 of those occurrences.
sourcepub fn total_count(self, input: i64) -> Self
pub fn total_count(self, input: i64) -> Self
The total number of occurrences of the sensitive data that was detected.
sourcepub fn set_total_count(self, input: Option<i64>) -> Self
pub fn set_total_count(self, input: Option<i64>) -> Self
The total number of occurrences of the sensitive data that was detected.
sourcepub fn get_total_count(&self) -> &Option<i64>
pub fn get_total_count(&self) -> &Option<i64>
The total number of occurrences of the sensitive data that was detected.
sourcepub fn build(self) -> SensitiveDataItem
pub fn build(self) -> SensitiveDataItem
Consumes the builder and constructs a SensitiveDataItem
.
Trait Implementations§
source§impl Clone for SensitiveDataItemBuilder
impl Clone for SensitiveDataItemBuilder
source§fn clone(&self) -> SensitiveDataItemBuilder
fn clone(&self) -> SensitiveDataItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SensitiveDataItemBuilder
impl Debug for SensitiveDataItemBuilder
source§impl Default for SensitiveDataItemBuilder
impl Default for SensitiveDataItemBuilder
source§fn default() -> SensitiveDataItemBuilder
fn default() -> SensitiveDataItemBuilder
source§impl PartialEq for SensitiveDataItemBuilder
impl PartialEq for SensitiveDataItemBuilder
source§fn eq(&self, other: &SensitiveDataItemBuilder) -> bool
fn eq(&self, other: &SensitiveDataItemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SensitiveDataItemBuilder
Auto Trait Implementations§
impl Freeze for SensitiveDataItemBuilder
impl RefUnwindSafe for SensitiveDataItemBuilder
impl Send for SensitiveDataItemBuilder
impl Sync for SensitiveDataItemBuilder
impl Unpin for SensitiveDataItemBuilder
impl UnwindSafe for SensitiveDataItemBuilder
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