/** * 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 SecurityHub { namespace Model { /** *

Contains a detected instance of sensitive data that are based on built-in * identifiers.

See Also:

AWS * API Reference

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

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

*/ inline const Aws::String& GetCategory() const{ return m_category; } /** *

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

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

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

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

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

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

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

*/ inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); } /** *

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

*/ inline SensitiveDataResult& WithCategory(const Aws::String& value) { SetCategory(value); return *this;} /** *

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

*/ inline SensitiveDataResult& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;} /** *

The category of sensitive data that was detected. For example, the category * can indicate that the sensitive data involved credentials, financial * information, or personal information.

*/ inline SensitiveDataResult& WithCategory(const char* value) { SetCategory(value); return *this;} /** *

The list of detected instances of sensitive data.

*/ inline const Aws::Vector& GetDetections() const{ return m_detections; } /** *

The list of detected instances of sensitive data.

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

The list of detected instances of sensitive data.

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

The list of detected instances of sensitive data.

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

The list of detected instances of sensitive data.

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

The list of detected instances of sensitive data.

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

The list of detected instances of sensitive data.

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

The list of detected instances of sensitive data.

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

The total number of occurrences of sensitive data.

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

The total number of occurrences of sensitive data.

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

The total number of occurrences of sensitive data.

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

The total number of occurrences of sensitive data.

*/ inline SensitiveDataResult& WithTotalCount(long long value) { SetTotalCount(value); return *this;} private: Aws::String 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 SecurityHub } // namespace Aws