AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail {
24namespace Model {
31 public:
32 AWS_CLOUDTRAIL_API LookupEventsResult() = default;
35
37
42 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
43 template <typename EventsT = Aws::Vector<Event>>
44 void SetEvents(EventsT&& value) {
45 m_eventsHasBeenSet = true;
46 m_events = std::forward<EventsT>(value);
47 }
48 template <typename EventsT = Aws::Vector<Event>>
49 LookupEventsResult& WithEvents(EventsT&& value) {
50 SetEvents(std::forward<EventsT>(value));
51 return *this;
52 }
53 template <typename EventsT = Event>
54 LookupEventsResult& AddEvents(EventsT&& value) {
55 m_eventsHasBeenSet = true;
56 m_events.emplace_back(std::forward<EventsT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 template <typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) {
72 m_nextTokenHasBeenSet = true;
73 m_nextToken = std::forward<NextTokenT>(value);
74 }
75 template <typename NextTokenT = Aws::String>
76 LookupEventsResult& WithNextToken(NextTokenT&& value) {
77 SetNextToken(std::forward<NextTokenT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
91 LookupEventsResult& WithRequestId(RequestIdT&& value) {
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 private:
97 Aws::Vector<Event> m_events;
98
99 Aws::String m_nextToken;
100
101 Aws::String m_requestId;
102 bool m_eventsHasBeenSet = false;
103 bool m_nextTokenHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace CloudTrail
109} // namespace Aws
AWS_CLOUDTRAIL_API LookupEventsResult()=default
LookupEventsResult & WithRequestId(RequestIdT &&value)
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