AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListFindingsRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/FilterCriteria.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector2/model/SortCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR2_API ListFindingsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListFindings"; }
33
34 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
42 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
43 inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = value; }
44 inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::move(value); }
45 inline ListFindingsRequest& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;}
46 inline ListFindingsRequest& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
48
50
56 inline int GetMaxResults() const{ return m_maxResults; }
57 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
58 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
59 inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61
63
71 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
74 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
75 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 inline ListFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
77 inline ListFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
78 inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
80
82
85 inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
86 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
87 inline void SetSortCriteria(const SortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
88 inline void SetSortCriteria(SortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
89 inline ListFindingsRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;}
90 inline ListFindingsRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
92 private:
93
94 FilterCriteria m_filterCriteria;
95 bool m_filterCriteriaHasBeenSet = false;
96
97 int m_maxResults;
98 bool m_maxResultsHasBeenSet = false;
99
100 Aws::String m_nextToken;
101 bool m_nextTokenHasBeenSet = false;
102
103 SortCriteria m_sortCriteria;
104 bool m_sortCriteriaHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Inspector2
109} // namespace Aws
ListFindingsRequest & WithFilterCriteria(const FilterCriteria &value)
ListFindingsRequest & WithMaxResults(int value)
ListFindingsRequest & WithNextToken(const char *value)
void SetNextToken(const Aws::String &value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
void SetSortCriteria(const SortCriteria &value)
virtual const char * GetServiceRequestName() const override
const FilterCriteria & GetFilterCriteria() const
ListFindingsRequest & WithSortCriteria(const SortCriteria &value)
ListFindingsRequest & WithNextToken(Aws::String &&value)
ListFindingsRequest & WithSortCriteria(SortCriteria &&value)
ListFindingsRequest & WithFilterCriteria(FilterCriteria &&value)
void SetFilterCriteria(const FilterCriteria &value)
ListFindingsRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String