AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartLiveTailRequest.h
1
6#pragma once
7#include <aws/core/utils/event/EventStreamDecoder.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogsRequest.h>
11#include <aws/logs/CloudWatchLogs_EXPORTS.h>
12#include <aws/logs/model/StartLiveTailHandler.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatchLogs {
18namespace Model {
19
23 public:
24 AWS_CLOUDWATCHLOGS_API StartLiveTailRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartLiveTail"; }
31
32 inline virtual bool HasEventStreamResponse() const override { return true; }
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
41
45 inline StartLiveTailHandler& GetEventStreamHandler() { return m_handler; }
46
50 inline void SetEventStreamHandler(const StartLiveTailHandler& value) {
51 m_handler = value;
52 m_decoder.ResetEventStreamHandler(&m_handler);
53 }
54
60 return *this;
61 }
62
64
70 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
71 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
72 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
73 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
74 m_logGroupIdentifiersHasBeenSet = true;
75 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
76 }
77 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
78 StartLiveTailRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
79 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
80 return *this;
81 }
82 template <typename LogGroupIdentifiersT = Aws::String>
83 StartLiveTailRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
84 m_logGroupIdentifiersHasBeenSet = true;
85 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
86 return *this;
87 }
89
91
98 inline const Aws::Vector<Aws::String>& GetLogStreamNames() const { return m_logStreamNames; }
99 inline bool LogStreamNamesHasBeenSet() const { return m_logStreamNamesHasBeenSet; }
100 template <typename LogStreamNamesT = Aws::Vector<Aws::String>>
101 void SetLogStreamNames(LogStreamNamesT&& value) {
102 m_logStreamNamesHasBeenSet = true;
103 m_logStreamNames = std::forward<LogStreamNamesT>(value);
104 }
105 template <typename LogStreamNamesT = Aws::Vector<Aws::String>>
106 StartLiveTailRequest& WithLogStreamNames(LogStreamNamesT&& value) {
107 SetLogStreamNames(std::forward<LogStreamNamesT>(value));
108 return *this;
109 }
110 template <typename LogStreamNamesT = Aws::String>
111 StartLiveTailRequest& AddLogStreamNames(LogStreamNamesT&& value) {
112 m_logStreamNamesHasBeenSet = true;
113 m_logStreamNames.emplace_back(std::forward<LogStreamNamesT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::Vector<Aws::String>& GetLogStreamNamePrefixes() const { return m_logStreamNamePrefixes; }
128 inline bool LogStreamNamePrefixesHasBeenSet() const { return m_logStreamNamePrefixesHasBeenSet; }
129 template <typename LogStreamNamePrefixesT = Aws::Vector<Aws::String>>
130 void SetLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) {
131 m_logStreamNamePrefixesHasBeenSet = true;
132 m_logStreamNamePrefixes = std::forward<LogStreamNamePrefixesT>(value);
133 }
134 template <typename LogStreamNamePrefixesT = Aws::Vector<Aws::String>>
135 StartLiveTailRequest& WithLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) {
136 SetLogStreamNamePrefixes(std::forward<LogStreamNamePrefixesT>(value));
137 return *this;
138 }
139 template <typename LogStreamNamePrefixesT = Aws::String>
140 StartLiveTailRequest& AddLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) {
141 m_logStreamNamePrefixesHasBeenSet = true;
142 m_logStreamNamePrefixes.emplace_back(std::forward<LogStreamNamePrefixesT>(value));
143 return *this;
144 }
146
148
158 inline const Aws::String& GetLogEventFilterPattern() const { return m_logEventFilterPattern; }
159 inline bool LogEventFilterPatternHasBeenSet() const { return m_logEventFilterPatternHasBeenSet; }
160 template <typename LogEventFilterPatternT = Aws::String>
161 void SetLogEventFilterPattern(LogEventFilterPatternT&& value) {
162 m_logEventFilterPatternHasBeenSet = true;
163 m_logEventFilterPattern = std::forward<LogEventFilterPatternT>(value);
164 }
165 template <typename LogEventFilterPatternT = Aws::String>
166 StartLiveTailRequest& WithLogEventFilterPattern(LogEventFilterPatternT&& value) {
167 SetLogEventFilterPattern(std::forward<LogEventFilterPatternT>(value));
168 return *this;
169 }
171 private:
172 Aws::Vector<Aws::String> m_logGroupIdentifiers;
173
174 Aws::Vector<Aws::String> m_logStreamNames;
175
176 Aws::Vector<Aws::String> m_logStreamNamePrefixes;
177
178 Aws::String m_logEventFilterPattern;
179 StartLiveTailHandler m_handler;
181
182 bool m_logGroupIdentifiersHasBeenSet = false;
183 bool m_logStreamNamesHasBeenSet = false;
184 bool m_logStreamNamePrefixesHasBeenSet = false;
185 bool m_logEventFilterPatternHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace CloudWatchLogs
190} // namespace Aws
StartLiveTailRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
void SetLogStreamNamePrefixes(LogStreamNamePrefixesT &&value)
const Aws::Vector< Aws::String > & GetLogStreamNamePrefixes() const
void SetLogGroupIdentifiers(LogGroupIdentifiersT &&value)
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
StartLiveTailRequest & AddLogStreamNames(LogStreamNamesT &&value)
StartLiveTailRequest & WithLogEventFilterPattern(LogEventFilterPatternT &&value)
StartLiveTailRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API StartLiveTailRequest()=default
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
StartLiveTailRequest & AddLogStreamNamePrefixes(LogStreamNamePrefixesT &&value)
void SetLogEventFilterPattern(LogEventFilterPatternT &&value)
StartLiveTailRequest & WithEventStreamHandler(const StartLiveTailHandler &value)
StartLiveTailRequest & WithLogStreamNamePrefixes(LogStreamNamePrefixesT &&value)
void SetEventStreamHandler(const StartLiveTailHandler &value)
StartLiveTailRequest & WithLogStreamNames(LogStreamNamesT &&value)
const Aws::Vector< Aws::String > & GetLogStreamNames() const
void ResetEventStreamHandler(EventStreamHandler *handler)
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