AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartLiveTailRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/model/StartLiveTailHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatchLogs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHLOGS_API StartLiveTailRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartLiveTail"; }
34
35 inline virtual bool HasEventStreamResponse() const override { return true; }
36 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
37
38 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
44
48 inline StartLiveTailHandler& GetEventStreamHandler() { return m_handler; }
49
53 inline void SetEventStreamHandler(const StartLiveTailHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
54
59
60
62
68 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
69 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
70 template<typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
71 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value); }
72 template<typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
73 StartLiveTailRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) { SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value)); return *this;}
74 template<typename LogGroupIdentifiersT = Aws::String>
75 StartLiveTailRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value)); return *this; }
77
79
86 inline const Aws::Vector<Aws::String>& GetLogStreamNames() const { return m_logStreamNames; }
87 inline bool LogStreamNamesHasBeenSet() const { return m_logStreamNamesHasBeenSet; }
88 template<typename LogStreamNamesT = Aws::Vector<Aws::String>>
89 void SetLogStreamNames(LogStreamNamesT&& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames = std::forward<LogStreamNamesT>(value); }
90 template<typename LogStreamNamesT = Aws::Vector<Aws::String>>
91 StartLiveTailRequest& WithLogStreamNames(LogStreamNamesT&& value) { SetLogStreamNames(std::forward<LogStreamNamesT>(value)); return *this;}
92 template<typename LogStreamNamesT = Aws::String>
93 StartLiveTailRequest& AddLogStreamNames(LogStreamNamesT&& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.emplace_back(std::forward<LogStreamNamesT>(value)); return *this; }
95
97
105 inline const Aws::Vector<Aws::String>& GetLogStreamNamePrefixes() const { return m_logStreamNamePrefixes; }
106 inline bool LogStreamNamePrefixesHasBeenSet() const { return m_logStreamNamePrefixesHasBeenSet; }
107 template<typename LogStreamNamePrefixesT = Aws::Vector<Aws::String>>
108 void SetLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes = std::forward<LogStreamNamePrefixesT>(value); }
109 template<typename LogStreamNamePrefixesT = Aws::Vector<Aws::String>>
110 StartLiveTailRequest& WithLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) { SetLogStreamNamePrefixes(std::forward<LogStreamNamePrefixesT>(value)); return *this;}
111 template<typename LogStreamNamePrefixesT = Aws::String>
112 StartLiveTailRequest& AddLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.emplace_back(std::forward<LogStreamNamePrefixesT>(value)); return *this; }
114
116
126 inline const Aws::String& GetLogEventFilterPattern() const { return m_logEventFilterPattern; }
127 inline bool LogEventFilterPatternHasBeenSet() const { return m_logEventFilterPatternHasBeenSet; }
128 template<typename LogEventFilterPatternT = Aws::String>
129 void SetLogEventFilterPattern(LogEventFilterPatternT&& value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern = std::forward<LogEventFilterPatternT>(value); }
130 template<typename LogEventFilterPatternT = Aws::String>
131 StartLiveTailRequest& WithLogEventFilterPattern(LogEventFilterPatternT&& value) { SetLogEventFilterPattern(std::forward<LogEventFilterPatternT>(value)); return *this;}
133 private:
134
135 Aws::Vector<Aws::String> m_logGroupIdentifiers;
136 bool m_logGroupIdentifiersHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_logStreamNames;
139 bool m_logStreamNamesHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_logStreamNamePrefixes;
142 bool m_logStreamNamePrefixesHasBeenSet = false;
143
144 Aws::String m_logEventFilterPattern;
145 bool m_logEventFilterPatternHasBeenSet = false;
146 StartLiveTailHandler m_handler;
148
149 };
150
151} // namespace Model
152} // namespace CloudWatchLogs
153} // 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