/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetSensitiveDataOccurrencesResult { public: AWS_MACIE2_API GetSensitiveDataOccurrencesResult(); AWS_MACIE2_API GetSensitiveDataOccurrencesResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetSensitiveDataOccurrencesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline void SetError(const Aws::String& value) { m_error = value; } /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline void SetError(Aws::String&& value) { m_error = std::move(value); } /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline void SetError(const char* value) { m_error.assign(value); } /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline GetSensitiveDataOccurrencesResult& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline GetSensitiveDataOccurrencesResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

If an error occurred when Amazon Macie attempted to retrieve occurrences of * sensitive data reported by the finding, a description of the error that * occurred. This value is null if the status (status) of the request is PROCESSING * or SUCCESS.

*/ inline GetSensitiveDataOccurrencesResult& WithError(const char* value) { SetError(value); return *this;} /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline const Aws::Map>& GetSensitiveDataOccurrences() const{ return m_sensitiveDataOccurrences; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline void SetSensitiveDataOccurrences(const Aws::Map>& value) { m_sensitiveDataOccurrences = value; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline void SetSensitiveDataOccurrences(Aws::Map>&& value) { m_sensitiveDataOccurrences = std::move(value); } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& WithSensitiveDataOccurrences(const Aws::Map>& value) { SetSensitiveDataOccurrences(value); return *this;} /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& WithSensitiveDataOccurrences(Aws::Map>&& value) { SetSensitiveDataOccurrences(std::move(value)); return *this;} /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& AddSensitiveDataOccurrences(const Aws::String& key, const Aws::Vector& value) { m_sensitiveDataOccurrences.emplace(key, value); return *this; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& AddSensitiveDataOccurrences(Aws::String&& key, const Aws::Vector& value) { m_sensitiveDataOccurrences.emplace(std::move(key), value); return *this; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& AddSensitiveDataOccurrences(const Aws::String& key, Aws::Vector&& value) { m_sensitiveDataOccurrences.emplace(key, std::move(value)); return *this; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& AddSensitiveDataOccurrences(Aws::String&& key, Aws::Vector&& value) { m_sensitiveDataOccurrences.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& AddSensitiveDataOccurrences(const char* key, Aws::Vector&& value) { m_sensitiveDataOccurrences.emplace(key, std::move(value)); return *this; } /** *

A map that specifies 1-100 types of sensitive data reported by the finding * and, for each type, 1-10 occurrences of sensitive data.

*/ inline GetSensitiveDataOccurrencesResult& AddSensitiveDataOccurrences(const char* key, const Aws::Vector& value) { m_sensitiveDataOccurrences.emplace(key, value); return *this; } /** *

The status of the request to retrieve occurrences of sensitive data reported * by the finding. Possible values are:

  • ERROR - An error occurred * when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. * The error value indicates the nature of the error that occurred.

  • *
  • PROCESSING - Macie is processing the request.

  • SUCCESS - * Macie successfully located, retrieved, and encrypted the sensitive * data.

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

The status of the request to retrieve occurrences of sensitive data reported * by the finding. Possible values are:

  • ERROR - An error occurred * when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. * The error value indicates the nature of the error that occurred.

  • *
  • PROCESSING - Macie is processing the request.

  • SUCCESS - * Macie successfully located, retrieved, and encrypted the sensitive * data.

*/ inline void SetStatus(const RevealRequestStatus& value) { m_status = value; } /** *

The status of the request to retrieve occurrences of sensitive data reported * by the finding. Possible values are:

  • ERROR - An error occurred * when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. * The error value indicates the nature of the error that occurred.

  • *
  • PROCESSING - Macie is processing the request.

  • SUCCESS - * Macie successfully located, retrieved, and encrypted the sensitive * data.

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

The status of the request to retrieve occurrences of sensitive data reported * by the finding. Possible values are:

  • ERROR - An error occurred * when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. * The error value indicates the nature of the error that occurred.

  • *
  • PROCESSING - Macie is processing the request.

  • SUCCESS - * Macie successfully located, retrieved, and encrypted the sensitive * data.

*/ inline GetSensitiveDataOccurrencesResult& WithStatus(const RevealRequestStatus& value) { SetStatus(value); return *this;} /** *

The status of the request to retrieve occurrences of sensitive data reported * by the finding. Possible values are:

  • ERROR - An error occurred * when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. * The error value indicates the nature of the error that occurred.

  • *
  • PROCESSING - Macie is processing the request.

  • SUCCESS - * Macie successfully located, retrieved, and encrypted the sensitive * data.

*/ inline GetSensitiveDataOccurrencesResult& WithStatus(RevealRequestStatus&& value) { SetStatus(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 GetSensitiveDataOccurrencesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSensitiveDataOccurrencesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSensitiveDataOccurrencesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_error; Aws::Map> m_sensitiveDataOccurrences; RevealRequestStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws