AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
LookupEventsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/EventCategory.h>
10#include <aws/cloudtrail/model/LookupAttribute.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudTrail {
19namespace Model {
20
27 public:
28 AWS_CLOUDTRAIL_API LookupEventsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "LookupEvents"; }
35
36 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
37
39
41
45 inline const Aws::Vector<LookupAttribute>& GetLookupAttributes() const { return m_lookupAttributes; }
46 inline bool LookupAttributesHasBeenSet() const { return m_lookupAttributesHasBeenSet; }
47 template <typename LookupAttributesT = Aws::Vector<LookupAttribute>>
48 void SetLookupAttributes(LookupAttributesT&& value) {
49 m_lookupAttributesHasBeenSet = true;
50 m_lookupAttributes = std::forward<LookupAttributesT>(value);
51 }
52 template <typename LookupAttributesT = Aws::Vector<LookupAttribute>>
53 LookupEventsRequest& WithLookupAttributes(LookupAttributesT&& value) {
54 SetLookupAttributes(std::forward<LookupAttributesT>(value));
55 return *this;
56 }
57 template <typename LookupAttributesT = LookupAttribute>
58 LookupEventsRequest& AddLookupAttributes(LookupAttributesT&& value) {
59 m_lookupAttributesHasBeenSet = true;
60 m_lookupAttributes.emplace_back(std::forward<LookupAttributesT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
72 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
73 template <typename StartTimeT = Aws::Utils::DateTime>
74 void SetStartTime(StartTimeT&& value) {
75 m_startTimeHasBeenSet = true;
76 m_startTime = std::forward<StartTimeT>(value);
77 }
78 template <typename StartTimeT = Aws::Utils::DateTime>
79 LookupEventsRequest& WithStartTime(StartTimeT&& value) {
80 SetStartTime(std::forward<StartTimeT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
92 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
93 template <typename EndTimeT = Aws::Utils::DateTime>
94 void SetEndTime(EndTimeT&& value) {
95 m_endTimeHasBeenSet = true;
96 m_endTime = std::forward<EndTimeT>(value);
97 }
98 template <typename EndTimeT = Aws::Utils::DateTime>
99 LookupEventsRequest& WithEndTime(EndTimeT&& value) {
100 SetEndTime(std::forward<EndTimeT>(value));
101 return *this;
102 }
104
106
112 inline EventCategory GetEventCategory() const { return m_eventCategory; }
113 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
114 inline void SetEventCategory(EventCategory value) {
115 m_eventCategoryHasBeenSet = true;
116 m_eventCategory = value;
117 }
119 SetEventCategory(value);
120 return *this;
121 }
123
125
129 inline int GetMaxResults() const { return m_maxResults; }
130 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
131 inline void SetMaxResults(int value) {
132 m_maxResultsHasBeenSet = true;
133 m_maxResults = value;
134 }
136 SetMaxResults(value);
137 return *this;
138 }
140
142
149 inline const Aws::String& GetNextToken() const { return m_nextToken; }
150 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
151 template <typename NextTokenT = Aws::String>
152 void SetNextToken(NextTokenT&& value) {
153 m_nextTokenHasBeenSet = true;
154 m_nextToken = std::forward<NextTokenT>(value);
155 }
156 template <typename NextTokenT = Aws::String>
157 LookupEventsRequest& WithNextToken(NextTokenT&& value) {
158 SetNextToken(std::forward<NextTokenT>(value));
159 return *this;
160 }
162 private:
163 Aws::Vector<LookupAttribute> m_lookupAttributes;
164
165 Aws::Utils::DateTime m_startTime{};
166
167 Aws::Utils::DateTime m_endTime{};
168
169 EventCategory m_eventCategory{EventCategory::NOT_SET};
170
171 int m_maxResults{0};
172
173 Aws::String m_nextToken;
174 bool m_lookupAttributesHasBeenSet = false;
175 bool m_startTimeHasBeenSet = false;
176 bool m_endTimeHasBeenSet = false;
177 bool m_eventCategoryHasBeenSet = false;
178 bool m_maxResultsHasBeenSet = false;
179 bool m_nextTokenHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace CloudTrail
184} // namespace Aws
AWS_CLOUDTRAIL_API LookupEventsRequest()=default
LookupEventsRequest & WithNextToken(NextTokenT &&value)
LookupEventsRequest & AddLookupAttributes(LookupAttributesT &&value)
virtual const char * GetServiceRequestName() const override
LookupEventsRequest & WithEventCategory(EventCategory value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetStartTime() const
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
LookupEventsRequest & WithStartTime(StartTimeT &&value)
const Aws::Vector< LookupAttribute > & GetLookupAttributes() const
LookupEventsRequest & WithEndTime(EndTimeT &&value)
void SetLookupAttributes(LookupAttributesT &&value)
LookupEventsRequest & WithMaxResults(int value)
LookupEventsRequest & WithLookupAttributes(LookupAttributesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector