AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
43
47 inline const StartLiveTailHandler& GetEventStreamHandler() const { return m_handler; }
48
52 inline void SetEventStreamHandler(const StartLiveTailHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
53
58
59
61
67 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const{ return m_logGroupIdentifiers; }
68 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
69 inline void SetLogGroupIdentifiers(const Aws::Vector<Aws::String>& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = value; }
70 inline void SetLogGroupIdentifiers(Aws::Vector<Aws::String>&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = std::move(value); }
73 inline StartLiveTailRequest& AddLogGroupIdentifiers(const Aws::String& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(value); return *this; }
74 inline StartLiveTailRequest& AddLogGroupIdentifiers(Aws::String&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(std::move(value)); return *this; }
75 inline StartLiveTailRequest& AddLogGroupIdentifiers(const char* value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(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 inline void SetLogStreamNames(const Aws::Vector<Aws::String>& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames = value; }
89 inline void SetLogStreamNames(Aws::Vector<Aws::String>&& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames = std::move(value); }
91 inline StartLiveTailRequest& WithLogStreamNames(Aws::Vector<Aws::String>&& value) { SetLogStreamNames(std::move(value)); return *this;}
92 inline StartLiveTailRequest& AddLogStreamNames(const Aws::String& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.push_back(value); return *this; }
93 inline StartLiveTailRequest& AddLogStreamNames(Aws::String&& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.push_back(std::move(value)); return *this; }
94 inline StartLiveTailRequest& AddLogStreamNames(const char* value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.push_back(value); return *this; }
96
98
106 inline const Aws::Vector<Aws::String>& GetLogStreamNamePrefixes() const{ return m_logStreamNamePrefixes; }
107 inline bool LogStreamNamePrefixesHasBeenSet() const { return m_logStreamNamePrefixesHasBeenSet; }
108 inline void SetLogStreamNamePrefixes(const Aws::Vector<Aws::String>& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes = value; }
109 inline void SetLogStreamNamePrefixes(Aws::Vector<Aws::String>&& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes = std::move(value); }
112 inline StartLiveTailRequest& AddLogStreamNamePrefixes(const Aws::String& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.push_back(value); return *this; }
113 inline StartLiveTailRequest& AddLogStreamNamePrefixes(Aws::String&& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.push_back(std::move(value)); return *this; }
114 inline StartLiveTailRequest& AddLogStreamNamePrefixes(const char* value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.push_back(value); return *this; }
116
118
128 inline const Aws::String& GetLogEventFilterPattern() const{ return m_logEventFilterPattern; }
129 inline bool LogEventFilterPatternHasBeenSet() const { return m_logEventFilterPatternHasBeenSet; }
130 inline void SetLogEventFilterPattern(const Aws::String& value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern = value; }
131 inline void SetLogEventFilterPattern(Aws::String&& value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern = std::move(value); }
132 inline void SetLogEventFilterPattern(const char* value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern.assign(value); }
134 inline StartLiveTailRequest& WithLogEventFilterPattern(Aws::String&& value) { SetLogEventFilterPattern(std::move(value)); return *this;}
135 inline StartLiveTailRequest& WithLogEventFilterPattern(const char* value) { SetLogEventFilterPattern(value); return *this;}
137 private:
138
139 Aws::Vector<Aws::String> m_logGroupIdentifiers;
140 bool m_logGroupIdentifiersHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_logStreamNames;
143 bool m_logStreamNamesHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_logStreamNamePrefixes;
146 bool m_logStreamNamePrefixesHasBeenSet = false;
147
148 Aws::String m_logEventFilterPattern;
149 bool m_logEventFilterPatternHasBeenSet = false;
150 StartLiveTailHandler m_handler;
152
153 };
154
155} // namespace Model
156} // namespace CloudWatchLogs
157} // namespace Aws
StartLiveTailRequest & AddLogStreamNamePrefixes(const Aws::String &value)
StartLiveTailRequest & WithLogStreamNamePrefixes(Aws::Vector< Aws::String > &&value)
void SetLogStreamNamePrefixes(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
StartLiveTailRequest & WithLogGroupIdentifiers(const Aws::Vector< Aws::String > &value)
void SetLogStreamNamePrefixes(const Aws::Vector< Aws::String > &value)
StartLiveTailRequest & WithLogEventFilterPattern(Aws::String &&value)
const Aws::Vector< Aws::String > & GetLogStreamNamePrefixes() const
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
StartLiveTailRequest & AddLogStreamNames(const Aws::String &value)
StartLiveTailRequest & AddLogStreamNamePrefixes(Aws::String &&value)
StartLiveTailRequest & AddLogStreamNames(Aws::String &&value)
StartLiveTailRequest & AddLogGroupIdentifiers(const Aws::String &value)
StartLiveTailRequest & WithLogGroupIdentifiers(Aws::Vector< Aws::String > &&value)
void SetLogStreamNames(Aws::Vector< Aws::String > &&value)
StartLiveTailRequest & AddLogGroupIdentifiers(Aws::String &&value)
StartLiveTailRequest & WithLogStreamNamePrefixes(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
StartLiveTailRequest & AddLogStreamNamePrefixes(const char *value)
void SetLogStreamNames(const Aws::Vector< Aws::String > &value)
StartLiveTailRequest & AddLogStreamNames(const char *value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const StartLiveTailHandler & GetEventStreamHandler() const
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
void SetLogGroupIdentifiers(const Aws::Vector< Aws::String > &value)
StartLiveTailRequest & WithLogStreamNames(Aws::Vector< Aws::String > &&value)
StartLiveTailRequest & WithLogEventFilterPattern(const Aws::String &value)
StartLiveTailRequest & WithEventStreamHandler(const StartLiveTailHandler &value)
void SetLogGroupIdentifiers(Aws::Vector< Aws::String > &&value)
void SetEventStreamHandler(const StartLiveTailHandler &value)
StartLiveTailRequest & WithLogStreamNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLogStreamNames() const
StartLiveTailRequest & AddLogGroupIdentifiers(const char *value)
StartLiveTailRequest & WithLogEventFilterPattern(const char *value)
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