/** * 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 the details of a sensitive data finding, including the types, number * of occurrences, and locations of the sensitive data that was * detected.

See Also:

AWS * API Reference

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

Specifies whether Amazon Macie detected additional occurrences of sensitive * data in the S3 object. A finding includes location data for a maximum of 15 * occurrences of sensitive data.

This value can help you determine whether * to investigate additional occurrences of sensitive data in an object. You can do * this by referring to the corresponding sensitive data discovery result for the * finding (classificationDetails.detailedResultsLocation).

*/ inline bool GetAdditionalOccurrences() const{ return m_additionalOccurrences; } /** *

Specifies whether Amazon Macie detected additional occurrences of sensitive * data in the S3 object. A finding includes location data for a maximum of 15 * occurrences of sensitive data.

This value can help you determine whether * to investigate additional occurrences of sensitive data in an object. You can do * this by referring to the corresponding sensitive data discovery result for the * finding (classificationDetails.detailedResultsLocation).

*/ inline bool AdditionalOccurrencesHasBeenSet() const { return m_additionalOccurrencesHasBeenSet; } /** *

Specifies whether Amazon Macie detected additional occurrences of sensitive * data in the S3 object. A finding includes location data for a maximum of 15 * occurrences of sensitive data.

This value can help you determine whether * to investigate additional occurrences of sensitive data in an object. You can do * this by referring to the corresponding sensitive data discovery result for the * finding (classificationDetails.detailedResultsLocation).

*/ inline void SetAdditionalOccurrences(bool value) { m_additionalOccurrencesHasBeenSet = true; m_additionalOccurrences = value; } /** *

Specifies whether Amazon Macie detected additional occurrences of sensitive * data in the S3 object. A finding includes location data for a maximum of 15 * occurrences of sensitive data.

This value can help you determine whether * to investigate additional occurrences of sensitive data in an object. You can do * this by referring to the corresponding sensitive data discovery result for the * finding (classificationDetails.detailedResultsLocation).

*/ inline ClassificationResult& WithAdditionalOccurrences(bool value) { SetAdditionalOccurrences(value); return *this;} /** *

The custom data identifiers that detected the sensitive data and the number * of occurrences of the data that they detected.

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

The custom data identifiers that detected the sensitive data and the number * of occurrences of the data that they detected.

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

The custom data identifiers that detected the sensitive data and the number * of occurrences of the data that they detected.

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

The custom data identifiers that detected the sensitive data and the number * of occurrences of the data that they detected.

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

The custom data identifiers that detected the sensitive data and the number * of occurrences of the data that they detected.

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

The custom data identifiers that detected the sensitive data and the number * of occurrences of the data that they detected.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

The type of content, 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 Portable Document Format file.

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

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

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

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

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

The category, types, 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, types, 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, types, 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, types, 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, types, 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, types, 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: bool m_additionalOccurrences; bool m_additionalOccurrencesHasBeenSet = false; CustomDataIdentifiers m_customDataIdentifiers; bool m_customDataIdentifiersHasBeenSet = false; Aws::String m_mimeType; bool m_mimeTypeHasBeenSet = false; Aws::Vector m_sensitiveData; bool m_sensitiveDataHasBeenSet = false; long long m_sizeClassified; bool m_sizeClassifiedHasBeenSet = false; ClassificationResultStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws