AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LookupEventsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/cloudtrail/model/EventCategory.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/cloudtrail/model/LookupAttribute.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudTrail
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_CLOUDTRAIL_API LookupEventsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "LookupEvents"; }
38
39 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::Vector<LookupAttribute>& GetLookupAttributes() const { return m_lookupAttributes; }
50 inline bool LookupAttributesHasBeenSet() const { return m_lookupAttributesHasBeenSet; }
51 template<typename LookupAttributesT = Aws::Vector<LookupAttribute>>
52 void SetLookupAttributes(LookupAttributesT&& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes = std::forward<LookupAttributesT>(value); }
53 template<typename LookupAttributesT = Aws::Vector<LookupAttribute>>
54 LookupEventsRequest& WithLookupAttributes(LookupAttributesT&& value) { SetLookupAttributes(std::forward<LookupAttributesT>(value)); return *this;}
55 template<typename LookupAttributesT = LookupAttribute>
56 LookupEventsRequest& AddLookupAttributes(LookupAttributesT&& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes.emplace_back(std::forward<LookupAttributesT>(value)); return *this; }
58
60
65 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
66 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
67 template<typename StartTimeT = Aws::Utils::DateTime>
68 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
69 template<typename StartTimeT = Aws::Utils::DateTime>
70 LookupEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
72
74
79 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
80 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
81 template<typename EndTimeT = Aws::Utils::DateTime>
82 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
83 template<typename EndTimeT = Aws::Utils::DateTime>
84 LookupEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
86
88
94 inline EventCategory GetEventCategory() const { return m_eventCategory; }
95 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
96 inline void SetEventCategory(EventCategory value) { m_eventCategoryHasBeenSet = true; m_eventCategory = value; }
99
101
105 inline int GetMaxResults() const { return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 inline LookupEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
110
112
119 inline const Aws::String& GetNextToken() const { return m_nextToken; }
120 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
121 template<typename NextTokenT = Aws::String>
122 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
123 template<typename NextTokenT = Aws::String>
124 LookupEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
126 private:
127
128 Aws::Vector<LookupAttribute> m_lookupAttributes;
129 bool m_lookupAttributesHasBeenSet = false;
130
131 Aws::Utils::DateTime m_startTime{};
132 bool m_startTimeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_endTime{};
135 bool m_endTimeHasBeenSet = false;
136
137 EventCategory m_eventCategory{EventCategory::NOT_SET};
138 bool m_eventCategoryHasBeenSet = false;
139
140 int m_maxResults{0};
141 bool m_maxResultsHasBeenSet = false;
142
143 Aws::String m_nextToken;
144 bool m_nextTokenHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CloudTrail
149} // 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