AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LookupEventsResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudtrail/model/Event.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudTrail
26{
27namespace Model
28{
35 {
36 public:
37 AWS_CLOUDTRAIL_API LookupEventsResult();
40
41
43
48 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
49 inline void SetEvents(const Aws::Vector<Event>& value) { m_events = value; }
50 inline void SetEvents(Aws::Vector<Event>&& value) { m_events = std::move(value); }
51 inline LookupEventsResult& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
52 inline LookupEventsResult& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
53 inline LookupEventsResult& AddEvents(const Event& value) { m_events.push_back(value); return *this; }
54 inline LookupEventsResult& AddEvents(Event&& value) { m_events.push_back(std::move(value)); return *this; }
56
58
65 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
66 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
67 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
68 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
69 inline LookupEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 inline LookupEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 inline LookupEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
73
75
76 inline const Aws::String& GetRequestId() const{ return m_requestId; }
77 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
78 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
79 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
80 inline LookupEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
81 inline LookupEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
82 inline LookupEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
84 private:
85
86 Aws::Vector<Event> m_events;
87
88 Aws::String m_nextToken;
89
90 Aws::String m_requestId;
91 };
92
93} // namespace Model
94} // namespace CloudTrail
95} // namespace Aws
LookupEventsResult & WithEvents(Aws::Vector< Event > &&value)
AWS_CLOUDTRAIL_API LookupEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LookupEventsResult & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
const Aws::Vector< Event > & GetEvents() const
LookupEventsResult & WithRequestId(const Aws::String &value)
LookupEventsResult & WithNextToken(Aws::String &&value)
void SetEvents(const Aws::Vector< Event > &value)
LookupEventsResult & WithEvents(const Aws::Vector< Event > &value)
void SetNextToken(const Aws::String &value)
LookupEventsResult & AddEvents(const Event &value)
LookupEventsResult & AddEvents(Event &&value)
AWS_CLOUDTRAIL_API LookupEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEvents(Aws::Vector< Event > &&value)
LookupEventsResult & WithRequestId(const char *value)
LookupEventsResult & WithNextToken(const Aws::String &value)
LookupEventsResult & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue