AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLookupAttributes(const Aws::Vector<LookupAttribute>& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes = value; }
52 inline void SetLookupAttributes(Aws::Vector<LookupAttribute>&& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes = std::move(value); }
55 inline LookupEventsRequest& AddLookupAttributes(const LookupAttribute& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes.push_back(value); return *this; }
56 inline LookupEventsRequest& AddLookupAttributes(LookupAttribute&& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes.push_back(std::move(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 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
68 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
69 inline LookupEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
70 inline LookupEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
82 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
83 inline LookupEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
84 inline LookupEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
86
88
94 inline const EventCategory& GetEventCategory() const{ return m_eventCategory; }
95 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
96 inline void SetEventCategory(const EventCategory& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = value; }
97 inline void SetEventCategory(EventCategory&& value) { m_eventCategoryHasBeenSet = true; m_eventCategory = std::move(value); }
98 inline LookupEventsRequest& WithEventCategory(const EventCategory& value) { SetEventCategory(value); return *this;}
99 inline LookupEventsRequest& WithEventCategory(EventCategory&& value) { SetEventCategory(std::move(value)); return *this;}
101
103
107 inline int GetMaxResults() const{ return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 inline LookupEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112
114
121 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
122 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
123 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
124 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
125 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
126 inline LookupEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
127 inline LookupEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
128 inline LookupEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
130 private:
131
132 Aws::Vector<LookupAttribute> m_lookupAttributes;
133 bool m_lookupAttributesHasBeenSet = false;
134
135 Aws::Utils::DateTime m_startTime;
136 bool m_startTimeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_endTime;
139 bool m_endTimeHasBeenSet = false;
140
141 EventCategory m_eventCategory;
142 bool m_eventCategoryHasBeenSet = false;
143
144 int m_maxResults;
145 bool m_maxResultsHasBeenSet = false;
146
147 Aws::String m_nextToken;
148 bool m_nextTokenHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace CloudTrail
153} // namespace Aws
const EventCategory & GetEventCategory() const
LookupEventsRequest & WithNextToken(const Aws::String &value)
void SetEventCategory(const EventCategory &value)
LookupEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
void SetEndTime(const Aws::Utils::DateTime &value)
LookupEventsRequest & WithLookupAttributes(const Aws::Vector< LookupAttribute > &value)
void SetStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
LookupEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
LookupEventsRequest & AddLookupAttributes(const LookupAttribute &value)
void SetLookupAttributes(Aws::Vector< LookupAttribute > &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStartTime(const Aws::Utils::DateTime &value)
void SetLookupAttributes(const Aws::Vector< LookupAttribute > &value)
LookupEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
LookupEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
LookupEventsRequest & WithNextToken(Aws::String &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
LookupEventsRequest & WithEventCategory(EventCategory &&value)
LookupEventsRequest & WithEventCategory(const EventCategory &value)
LookupEventsRequest & WithNextToken(const char *value)
const Aws::Vector< LookupAttribute > & GetLookupAttributes() const
void SetEndTime(Aws::Utils::DateTime &&value)
LookupEventsRequest & WithLookupAttributes(Aws::Vector< LookupAttribute > &&value)
LookupEventsRequest & AddLookupAttributes(LookupAttribute &&value)
LookupEventsRequest & WithMaxResults(int 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