Struct aws_sdk_macie2::model::sensitive_data_item::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SensitiveDataItem
.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> SensitiveDataItem
pub fn build(self) -> SensitiveDataItem
Consumes the builder and constructs a SensitiveDataItem
.