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

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

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

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

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

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

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

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

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

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

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

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

*/ inline ListResourceProfileDetectionsResult& AddDetections(const Detection& value) { m_detections.push_back(value); return *this; } /** *

An array of objects, one for each type of sensitive data that Amazon Macie * found in the bucket. Each object reports the number of occurrences of the * specified type and provides information about the custom data identifier or * managed data identifier that detected the data.

*/ inline ListResourceProfileDetectionsResult& AddDetections(Detection&& value) { m_detections.push_back(std::move(value)); return *this; } /** *

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

*/ inline ListResourceProfileDetectionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

*/ inline ListResourceProfileDetectionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

*/ inline ListResourceProfileDetectionsResult& WithNextToken(const char* value) { SetNextToken(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 ListResourceProfileDetectionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListResourceProfileDetectionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListResourceProfileDetectionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_detections; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws