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

Provides detailed information about a sensitive data finding, including the * types and number of occurrences of the sensitive data that was * found.

See Also:

AWS * API Reference

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

The number of occurrences of the data that produced the finding, and the * custom data identifiers that detected the data.

*/ inline const CustomDataIdentifiers& GetCustomDataIdentifiers() const{ return m_customDataIdentifiers; } /** *

The number of occurrences of the data that produced the finding, and the * custom data identifiers that detected the data.

*/ inline bool CustomDataIdentifiersHasBeenSet() const { return m_customDataIdentifiersHasBeenSet; } /** *

The number of occurrences of the data that produced the finding, and the * custom data identifiers that detected the data.

*/ inline void SetCustomDataIdentifiers(const CustomDataIdentifiers& value) { m_customDataIdentifiersHasBeenSet = true; m_customDataIdentifiers = value; } /** *

The number of occurrences of the data that produced the finding, and the * custom data identifiers that detected the data.

*/ inline void SetCustomDataIdentifiers(CustomDataIdentifiers&& value) { m_customDataIdentifiersHasBeenSet = true; m_customDataIdentifiers = std::move(value); } /** *

The number of occurrences of the data that produced the finding, and the * custom data identifiers that detected the data.

*/ inline ClassificationResult& WithCustomDataIdentifiers(const CustomDataIdentifiers& value) { SetCustomDataIdentifiers(value); return *this;} /** *

The number of occurrences of the data that produced the finding, and the * custom data identifiers that detected the data.

*/ inline ClassificationResult& WithCustomDataIdentifiers(CustomDataIdentifiers&& value) { SetCustomDataIdentifiers(std::move(value)); return *this;} /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline const Aws::String& GetMimeType() const{ return m_mimeType; } /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; } /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline void SetMimeType(const Aws::String& value) { m_mimeTypeHasBeenSet = true; m_mimeType = value; } /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline void SetMimeType(Aws::String&& value) { m_mimeTypeHasBeenSet = true; m_mimeType = std::move(value); } /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline void SetMimeType(const char* value) { m_mimeTypeHasBeenSet = true; m_mimeType.assign(value); } /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline ClassificationResult& WithMimeType(const Aws::String& value) { SetMimeType(value); return *this;} /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline ClassificationResult& WithMimeType(Aws::String&& value) { SetMimeType(std::move(value)); return *this;} /** *

The type of content, expressed as a MIME type, that the finding applies to. * For example, application/gzip, for a GNU Gzip compressed archive file, or * application/pdf, for an Adobe PDF file.

*/ inline ClassificationResult& WithMimeType(const char* value) { SetMimeType(value); return *this;} /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline const Aws::Vector& GetSensitiveData() const{ return m_sensitiveData; } /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline bool SensitiveDataHasBeenSet() const { return m_sensitiveDataHasBeenSet; } /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline void SetSensitiveData(const Aws::Vector& value) { m_sensitiveDataHasBeenSet = true; m_sensitiveData = value; } /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline void SetSensitiveData(Aws::Vector&& value) { m_sensitiveDataHasBeenSet = true; m_sensitiveData = std::move(value); } /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline ClassificationResult& WithSensitiveData(const Aws::Vector& value) { SetSensitiveData(value); return *this;} /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline ClassificationResult& WithSensitiveData(Aws::Vector&& value) { SetSensitiveData(std::move(value)); return *this;} /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline ClassificationResult& AddSensitiveData(const SensitiveDataItem& value) { m_sensitiveDataHasBeenSet = true; m_sensitiveData.push_back(value); return *this; } /** *

The category and number of occurrences of the sensitive data that produced * the finding.

*/ inline ClassificationResult& AddSensitiveData(SensitiveDataItem&& value) { m_sensitiveDataHasBeenSet = true; m_sensitiveData.push_back(std::move(value)); return *this; } /** *

The total size, in bytes, of the data that the finding applies to.

*/ inline long long GetSizeClassified() const{ return m_sizeClassified; } /** *

The total size, in bytes, of the data that the finding applies to.

*/ inline bool SizeClassifiedHasBeenSet() const { return m_sizeClassifiedHasBeenSet; } /** *

The total size, in bytes, of the data that the finding applies to.

*/ inline void SetSizeClassified(long long value) { m_sizeClassifiedHasBeenSet = true; m_sizeClassified = value; } /** *

The total size, in bytes, of the data that the finding applies to.

*/ inline ClassificationResult& WithSizeClassified(long long value) { SetSizeClassified(value); return *this;} /** *

The status of the finding.

*/ inline const ClassificationResultStatus& GetStatus() const{ return m_status; } /** *

The status of the finding.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the finding.

*/ inline void SetStatus(const ClassificationResultStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the finding.

*/ inline void SetStatus(ClassificationResultStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the finding.

*/ inline ClassificationResult& WithStatus(const ClassificationResultStatus& value) { SetStatus(value); return *this;} /** *

The status of the finding.

*/ inline ClassificationResult& WithStatus(ClassificationResultStatus&& value) { SetStatus(std::move(value)); return *this;} private: CustomDataIdentifiers m_customDataIdentifiers; bool m_customDataIdentifiersHasBeenSet; Aws::String m_mimeType; bool m_mimeTypeHasBeenSet; Aws::Vector m_sensitiveData; bool m_sensitiveDataHasBeenSet; long long m_sizeClassified; bool m_sizeClassifiedHasBeenSet; ClassificationResultStatus m_status; bool m_statusHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws