/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Provides information about the category, types, and occurrences of sensitive * data that produced a sensitive data finding.

See Also:

AWS * API Reference

*/ class SensitiveDataItem { public: AWS_MACIE2_API SensitiveDataItem(); AWS_MACIE2_API SensitiveDataItem(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API SensitiveDataItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const SensitiveDataItemCategory& GetCategory() const{ return m_category; } /** *

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.

*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *

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.

*/ inline void SetCategory(const SensitiveDataItemCategory& value) { m_categoryHasBeenSet = true; m_category = value; } /** *

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.

*/ inline void SetCategory(SensitiveDataItemCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *

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.

*/ inline SensitiveDataItem& WithCategory(const SensitiveDataItemCategory& value) { SetCategory(value); return *this;} /** *

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.

*/ inline SensitiveDataItem& WithCategory(SensitiveDataItemCategory&& value) { SetCategory(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Vector& GetDetections() const{ return m_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.

*/ inline bool DetectionsHasBeenSet() const { return m_detectionsHasBeenSet; } /** *

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.

*/ inline void SetDetections(const Aws::Vector& value) { m_detectionsHasBeenSet = true; m_detections = value; } /** *

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.

*/ inline void SetDetections(Aws::Vector&& value) { m_detectionsHasBeenSet = true; m_detections = std::move(value); } /** *

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.

*/ inline SensitiveDataItem& WithDetections(const Aws::Vector& value) { SetDetections(value); return *this;} /** *

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.

*/ inline SensitiveDataItem& WithDetections(Aws::Vector&& value) { SetDetections(std::move(value)); return *this;} /** *

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.

*/ inline SensitiveDataItem& AddDetections(const DefaultDetection& value) { m_detectionsHasBeenSet = true; m_detections.push_back(value); return *this; } /** *

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.

*/ inline SensitiveDataItem& AddDetections(DefaultDetection&& value) { m_detectionsHasBeenSet = true; m_detections.push_back(std::move(value)); return *this; } /** *

The total number of occurrences of the sensitive data that was detected.

*/ inline long long GetTotalCount() const{ return m_totalCount; } /** *

The total number of occurrences of the sensitive data that was detected.

*/ inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } /** *

The total number of occurrences of the sensitive data that was detected.

*/ inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; } /** *

The total number of occurrences of the sensitive data that was detected.

*/ inline SensitiveDataItem& WithTotalCount(long long value) { SetTotalCount(value); return *this;} private: SensitiveDataItemCategory m_category; bool m_categoryHasBeenSet = false; Aws::Vector m_detections; bool m_detectionsHasBeenSet = false; long long m_totalCount; bool m_totalCountHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws