AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ListCoverageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/CoverageFilterCriteria.h>
11#include <aws/guardduty/model/CoverageSortCriteria.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API ListCoverageRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListCoverage"; }
30
31 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
42 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
43 template <typename DetectorIdT = Aws::String>
44 void SetDetectorId(DetectorIdT&& value) {
45 m_detectorIdHasBeenSet = true;
46 m_detectorId = std::forward<DetectorIdT>(value);
47 }
48 template <typename DetectorIdT = Aws::String>
49 ListCoverageRequest& WithDetectorId(DetectorIdT&& value) {
50 SetDetectorId(std::forward<DetectorIdT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListCoverageRequest& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) {
83 m_maxResultsHasBeenSet = true;
84 m_maxResults = value;
85 }
87 SetMaxResults(value);
88 return *this;
89 }
91
93
96 inline const CoverageFilterCriteria& GetFilterCriteria() const { return m_filterCriteria; }
97 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
98 template <typename FilterCriteriaT = CoverageFilterCriteria>
99 void SetFilterCriteria(FilterCriteriaT&& value) {
100 m_filterCriteriaHasBeenSet = true;
101 m_filterCriteria = std::forward<FilterCriteriaT>(value);
102 }
103 template <typename FilterCriteriaT = CoverageFilterCriteria>
104 ListCoverageRequest& WithFilterCriteria(FilterCriteriaT&& value) {
105 SetFilterCriteria(std::forward<FilterCriteriaT>(value));
106 return *this;
107 }
109
111
114 inline const CoverageSortCriteria& GetSortCriteria() const { return m_sortCriteria; }
115 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
116 template <typename SortCriteriaT = CoverageSortCriteria>
117 void SetSortCriteria(SortCriteriaT&& value) {
118 m_sortCriteriaHasBeenSet = true;
119 m_sortCriteria = std::forward<SortCriteriaT>(value);
120 }
121 template <typename SortCriteriaT = CoverageSortCriteria>
122 ListCoverageRequest& WithSortCriteria(SortCriteriaT&& value) {
123 SetSortCriteria(std::forward<SortCriteriaT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_detectorId;
129
130 Aws::String m_nextToken;
131
132 int m_maxResults{0};
133
134 CoverageFilterCriteria m_filterCriteria;
135
136 CoverageSortCriteria m_sortCriteria;
137 bool m_detectorIdHasBeenSet = false;
138 bool m_nextTokenHasBeenSet = false;
139 bool m_maxResultsHasBeenSet = false;
140 bool m_filterCriteriaHasBeenSet = false;
141 bool m_sortCriteriaHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace GuardDuty
146} // namespace Aws
ListCoverageRequest & WithNextToken(NextTokenT &&value)
ListCoverageRequest & WithDetectorId(DetectorIdT &&value)
const CoverageSortCriteria & GetSortCriteria() const
AWS_GUARDDUTY_API ListCoverageRequest()=default
ListCoverageRequest & WithMaxResults(int value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
void SetFilterCriteria(FilterCriteriaT &&value)
ListCoverageRequest & WithSortCriteria(SortCriteriaT &&value)
const CoverageFilterCriteria & GetFilterCriteria() const
ListCoverageRequest & WithFilterCriteria(FilterCriteriaT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String