/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetSensitiveDataOccurrencesAvailabilityResult { public: AWS_MACIE2_API GetSensitiveDataOccurrencesAvailabilityResult(); AWS_MACIE2_API GetSensitiveDataOccurrencesAvailabilityResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetSensitiveDataOccurrencesAvailabilityResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Specifies whether occurrences of sensitive data can be retrieved for the * finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; * and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is * UNAVAILABLE, the reasons array indicates why the data can't be retrieved.

*/ inline const AvailabilityCode& GetCode() const{ return m_code; } /** *

Specifies whether occurrences of sensitive data can be retrieved for the * finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; * and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is * UNAVAILABLE, the reasons array indicates why the data can't be retrieved.

*/ inline void SetCode(const AvailabilityCode& value) { m_code = value; } /** *

Specifies whether occurrences of sensitive data can be retrieved for the * finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; * and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is * UNAVAILABLE, the reasons array indicates why the data can't be retrieved.

*/ inline void SetCode(AvailabilityCode&& value) { m_code = std::move(value); } /** *

Specifies whether occurrences of sensitive data can be retrieved for the * finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; * and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is * UNAVAILABLE, the reasons array indicates why the data can't be retrieved.

*/ inline GetSensitiveDataOccurrencesAvailabilityResult& WithCode(const AvailabilityCode& value) { SetCode(value); return *this;} /** *

Specifies whether occurrences of sensitive data can be retrieved for the * finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; * and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is * UNAVAILABLE, the reasons array indicates why the data can't be retrieved.

*/ inline GetSensitiveDataOccurrencesAvailabilityResult& WithCode(AvailabilityCode&& value) { SetCode(std::move(value)); return *this;} /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline const Aws::Vector& GetReasons() const{ return m_reasons; } /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline void SetReasons(const Aws::Vector& value) { m_reasons = value; } /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline void SetReasons(Aws::Vector&& value) { m_reasons = std::move(value); } /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline GetSensitiveDataOccurrencesAvailabilityResult& WithReasons(const Aws::Vector& value) { SetReasons(value); return *this;} /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline GetSensitiveDataOccurrencesAvailabilityResult& WithReasons(Aws::Vector&& value) { SetReasons(std::move(value)); return *this;} /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline GetSensitiveDataOccurrencesAvailabilityResult& AddReasons(const UnavailabilityReasonCode& value) { m_reasons.push_back(value); return *this; } /** *

Specifies why occurrences of sensitive data can't be retrieved for the * finding. Possible values are:

  • INVALID_CLASSIFICATION_RESULT - * Amazon Macie can't verify the location of the sensitive data to retrieve. There * isn't a corresponding sensitive data discovery result for the finding. Or the * sensitive data discovery result specified by the * classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage * format.

  • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the * affected S3 object exceeds the size quota for retrieving occurrences of * sensitive data.

  • OBJECT_UNAVAILABLE - The affected S3 object * isn't available. The object might have been renamed, moved, or deleted. Or the * object was changed after Macie created the finding.

  • *
  • UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data * finding.

  • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a * file or storage format that Macie doesn't support for retrieving occurrences of * sensitive data.

This value is null if sensitive data can be * retrieved for the finding.

*/ inline GetSensitiveDataOccurrencesAvailabilityResult& AddReasons(UnavailabilityReasonCode&& value) { m_reasons.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSensitiveDataOccurrencesAvailabilityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSensitiveDataOccurrencesAvailabilityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSensitiveDataOccurrencesAvailabilityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: AvailabilityCode m_code; Aws::Vector m_reasons; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws