AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
LookupEventsResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/Event.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail {
25namespace Model {
32 public:
33 AWS_CLOUDTRAIL_API LookupEventsResult() = default;
36
38
43 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
44 template <typename EventsT = Aws::Vector<Event>>
45 void SetEvents(EventsT&& value) {
46 m_eventsHasBeenSet = true;
47 m_events = std::forward<EventsT>(value);
48 }
49 template <typename EventsT = Aws::Vector<Event>>
50 LookupEventsResult& WithEvents(EventsT&& value) {
51 SetEvents(std::forward<EventsT>(value));
52 return *this;
53 }
54 template <typename EventsT = Event>
55 LookupEventsResult& AddEvents(EventsT&& value) {
56 m_eventsHasBeenSet = true;
57 m_events.emplace_back(std::forward<EventsT>(value));
58 return *this;
59 }
61
63
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 template <typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) {
73 m_nextTokenHasBeenSet = true;
74 m_nextToken = std::forward<NextTokenT>(value);
75 }
76 template <typename NextTokenT = Aws::String>
77 LookupEventsResult& WithNextToken(NextTokenT&& value) {
78 SetNextToken(std::forward<NextTokenT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 LookupEventsResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 Aws::Vector<Event> m_events;
101
102 Aws::String m_nextToken;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_eventsHasBeenSet = false;
107 bool m_nextTokenHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace CloudTrail
113} // namespace Aws
AWS_CLOUDTRAIL_API LookupEventsResult()=default
LookupEventsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CLOUDTRAIL_API LookupEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LookupEventsResult & AddEvents(EventsT &&value)
LookupEventsResult & WithEvents(EventsT &&value)
LookupEventsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< Event > & GetEvents() const
AWS_CLOUDTRAIL_API LookupEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue