/** * 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 { namespace AccessAnalyzer { namespace Model { /** *

Retrieves a list of findings generated by the specified * analyzer.

See Also:

AWS * API Reference

*/ class ListFindingsRequest : public AccessAnalyzerRequest { public: AWS_ACCESSANALYZER_API ListFindingsRequest(); // 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 "ListFindings"; } AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override; /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; } /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; } /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; } /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); } /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); } /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline ListFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;} /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline ListFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;} /** *

The ARN * of the analyzer to retrieve findings from.

*/ inline ListFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;} /** *

A filter to match for the findings to return.

*/ inline const Aws::Map& GetFilter() const{ return m_filter; } /** *

A filter to match for the findings to return.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

A filter to match for the findings to return.

*/ inline void SetFilter(const Aws::Map& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

A filter to match for the findings to return.

*/ inline void SetFilter(Aws::Map&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& WithFilter(const Aws::Map& value) { SetFilter(value); return *this;} /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& WithFilter(Aws::Map&& value) { SetFilter(std::move(value)); return *this;} /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; } /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; } /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *

A filter to match for the findings to return.

*/ inline ListFindingsRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } /** *

The sort order for the findings returned.

*/ inline const SortCriteria& GetSort() const{ return m_sort; } /** *

The sort order for the findings returned.

*/ inline bool SortHasBeenSet() const { return m_sortHasBeenSet; } /** *

The sort order for the findings returned.

*/ inline void SetSort(const SortCriteria& value) { m_sortHasBeenSet = true; m_sort = value; } /** *

The sort order for the findings returned.

*/ inline void SetSort(SortCriteria&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); } /** *

The sort order for the findings returned.

*/ inline ListFindingsRequest& WithSort(const SortCriteria& value) { SetSort(value); return *this;} /** *

The sort order for the findings returned.

*/ inline ListFindingsRequest& WithSort(SortCriteria&& value) { SetSort(std::move(value)); return *this;} /** *

A token used for pagination of results returned.

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

A token used for pagination of results returned.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

*/ inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return in the response.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return in the response.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return in the response.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return in the response.

*/ inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_analyzerArn; bool m_analyzerArnHasBeenSet = false; Aws::Map m_filter; bool m_filterHasBeenSet = false; SortCriteria m_sort; bool m_sortHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws