/** * 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 { namespace Macie2 { namespace Model { /** */ class GetFindingsRequest : public Macie2Request { public: AWS_MACIE2_API GetFindingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetFindings"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline const Aws::Vector& GetFindingIds() const{ return m_findingIds; } /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; } /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline void SetFindingIds(const Aws::Vector& value) { m_findingIdsHasBeenSet = true; m_findingIds = value; } /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline void SetFindingIds(Aws::Vector&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::move(value); } /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline GetFindingsRequest& WithFindingIds(const Aws::Vector& value) { SetFindingIds(value); return *this;} /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline GetFindingsRequest& WithFindingIds(Aws::Vector&& value) { SetFindingIds(std::move(value)); return *this;} /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline GetFindingsRequest& AddFindingIds(const Aws::String& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; } /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline GetFindingsRequest& AddFindingIds(Aws::String&& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(std::move(value)); return *this; } /** *

An array of strings that lists the unique identifiers for the findings to * retrieve. You can specify as many as 50 unique identifiers in this array.

*/ inline GetFindingsRequest& AddFindingIds(const char* value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; } /** *

The criteria for sorting the results of the request.

*/ inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; } /** *

The criteria for sorting the results of the request.

*/ inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; } /** *

The criteria for sorting the results of the request.

*/ inline void SetSortCriteria(const SortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; } /** *

The criteria for sorting the results of the request.

*/ inline void SetSortCriteria(SortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); } /** *

The criteria for sorting the results of the request.

*/ inline GetFindingsRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;} /** *

The criteria for sorting the results of the request.

*/ inline GetFindingsRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;} private: Aws::Vector m_findingIds; bool m_findingIdsHasBeenSet = false; SortCriteria m_sortCriteria; bool m_sortCriteriaHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws