/** * 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 GetFindingStatisticsResult { public: AWS_MACIE2_API GetFindingStatisticsResult(); AWS_MACIE2_API GetFindingStatisticsResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetFindingStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

*/ inline const Aws::Vector& GetCountsByGroup() const{ return m_countsByGroup; } /** *

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

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

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

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

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

*/ inline GetFindingStatisticsResult& WithCountsByGroup(const Aws::Vector& value) { SetCountsByGroup(value); return *this;} /** *

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

*/ inline GetFindingStatisticsResult& WithCountsByGroup(Aws::Vector&& value) { SetCountsByGroup(std::move(value)); return *this;} /** *

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

*/ inline GetFindingStatisticsResult& AddCountsByGroup(const GroupCount& value) { m_countsByGroup.push_back(value); return *this; } /** *

An array of objects, one for each group of findings that matches the filter * criteria specified in the request.

*/ inline GetFindingStatisticsResult& AddCountsByGroup(GroupCount&& value) { m_countsByGroup.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 GetFindingStatisticsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFindingStatisticsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFindingStatisticsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_countsByGroup; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws