AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetLogEventsResult.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/OutputLogEvent.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 CloudWatchLogs
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CLOUDWATCHLOGS_API GetLogEventsResult();
35
36
38
41 inline const Aws::Vector<OutputLogEvent>& GetEvents() const{ return m_events; }
42 inline void SetEvents(const Aws::Vector<OutputLogEvent>& value) { m_events = value; }
43 inline void SetEvents(Aws::Vector<OutputLogEvent>&& value) { m_events = std::move(value); }
44 inline GetLogEventsResult& WithEvents(const Aws::Vector<OutputLogEvent>& value) { SetEvents(value); return *this;}
45 inline GetLogEventsResult& WithEvents(Aws::Vector<OutputLogEvent>&& value) { SetEvents(std::move(value)); return *this;}
46 inline GetLogEventsResult& AddEvents(const OutputLogEvent& value) { m_events.push_back(value); return *this; }
47 inline GetLogEventsResult& AddEvents(OutputLogEvent&& value) { m_events.push_back(std::move(value)); return *this; }
49
51
56 inline const Aws::String& GetNextForwardToken() const{ return m_nextForwardToken; }
57 inline void SetNextForwardToken(const Aws::String& value) { m_nextForwardToken = value; }
58 inline void SetNextForwardToken(Aws::String&& value) { m_nextForwardToken = std::move(value); }
59 inline void SetNextForwardToken(const char* value) { m_nextForwardToken.assign(value); }
60 inline GetLogEventsResult& WithNextForwardToken(const Aws::String& value) { SetNextForwardToken(value); return *this;}
61 inline GetLogEventsResult& WithNextForwardToken(Aws::String&& value) { SetNextForwardToken(std::move(value)); return *this;}
62 inline GetLogEventsResult& WithNextForwardToken(const char* value) { SetNextForwardToken(value); return *this;}
64
66
71 inline const Aws::String& GetNextBackwardToken() const{ return m_nextBackwardToken; }
72 inline void SetNextBackwardToken(const Aws::String& value) { m_nextBackwardToken = value; }
73 inline void SetNextBackwardToken(Aws::String&& value) { m_nextBackwardToken = std::move(value); }
74 inline void SetNextBackwardToken(const char* value) { m_nextBackwardToken.assign(value); }
75 inline GetLogEventsResult& WithNextBackwardToken(const Aws::String& value) { SetNextBackwardToken(value); return *this;}
76 inline GetLogEventsResult& WithNextBackwardToken(Aws::String&& value) { SetNextBackwardToken(std::move(value)); return *this;}
77 inline GetLogEventsResult& WithNextBackwardToken(const char* value) { SetNextBackwardToken(value); return *this;}
79
81
82 inline const Aws::String& GetRequestId() const{ return m_requestId; }
83 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
84 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
85 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
86 inline GetLogEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
87 inline GetLogEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
88 inline GetLogEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
90 private:
91
93
94 Aws::String m_nextForwardToken;
95
96 Aws::String m_nextBackwardToken;
97
98 Aws::String m_requestId;
99 };
100
101} // namespace Model
102} // namespace CloudWatchLogs
103} // namespace Aws
GetLogEventsResult & WithEvents(Aws::Vector< OutputLogEvent > &&value)
GetLogEventsResult & WithNextForwardToken(Aws::String &&value)
GetLogEventsResult & WithRequestId(const char *value)
GetLogEventsResult & WithNextForwardToken(const char *value)
GetLogEventsResult & WithNextBackwardToken(const char *value)
GetLogEventsResult & WithEvents(const Aws::Vector< OutputLogEvent > &value)
void SetEvents(const Aws::Vector< OutputLogEvent > &value)
void SetNextBackwardToken(const Aws::String &value)
void SetEvents(Aws::Vector< OutputLogEvent > &&value)
void SetNextForwardToken(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API GetLogEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLogEventsResult & AddEvents(const OutputLogEvent &value)
AWS_CLOUDWATCHLOGS_API GetLogEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLogEventsResult & WithNextForwardToken(const Aws::String &value)
GetLogEventsResult & WithRequestId(const Aws::String &value)
GetLogEventsResult & WithRequestId(Aws::String &&value)
GetLogEventsResult & WithNextBackwardToken(Aws::String &&value)
GetLogEventsResult & WithNextBackwardToken(const Aws::String &value)
const Aws::Vector< OutputLogEvent > & GetEvents() const
GetLogEventsResult & AddEvents(OutputLogEvent &&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