AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LiveTailSessionStart.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
31 public:
32 AWS_CLOUDWATCHLOGS_API LiveTailSessionStart() = default;
33 AWS_CLOUDWATCHLOGS_API LiveTailSessionStart(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API LiveTailSessionStart& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetRequestId() const { return m_requestId; }
43 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
44 template <typename RequestIdT = Aws::String>
45 void SetRequestId(RequestIdT&& value) {
46 m_requestIdHasBeenSet = true;
47 m_requestId = std::forward<RequestIdT>(value);
48 }
49 template <typename RequestIdT = Aws::String>
50 LiveTailSessionStart& WithRequestId(RequestIdT&& value) {
51 SetRequestId(std::forward<RequestIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSessionId() const { return m_sessionId; }
62 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
63 template <typename SessionIdT = Aws::String>
64 void SetSessionId(SessionIdT&& value) {
65 m_sessionIdHasBeenSet = true;
66 m_sessionId = std::forward<SessionIdT>(value);
67 }
68 template <typename SessionIdT = Aws::String>
69 LiveTailSessionStart& WithSessionId(SessionIdT&& value) {
70 SetSessionId(std::forward<SessionIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
81 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
82 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
83 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
84 m_logGroupIdentifiersHasBeenSet = true;
85 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
86 }
87 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
88 LiveTailSessionStart& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
89 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
90 return *this;
91 }
92 template <typename LogGroupIdentifiersT = Aws::String>
93 LiveTailSessionStart& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
94 m_logGroupIdentifiersHasBeenSet = true;
95 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::Vector<Aws::String>& GetLogStreamNames() const { return m_logStreamNames; }
107 inline bool LogStreamNamesHasBeenSet() const { return m_logStreamNamesHasBeenSet; }
108 template <typename LogStreamNamesT = Aws::Vector<Aws::String>>
109 void SetLogStreamNames(LogStreamNamesT&& value) {
110 m_logStreamNamesHasBeenSet = true;
111 m_logStreamNames = std::forward<LogStreamNamesT>(value);
112 }
113 template <typename LogStreamNamesT = Aws::Vector<Aws::String>>
114 LiveTailSessionStart& WithLogStreamNames(LogStreamNamesT&& value) {
115 SetLogStreamNames(std::forward<LogStreamNamesT>(value));
116 return *this;
117 }
118 template <typename LogStreamNamesT = Aws::String>
119 LiveTailSessionStart& AddLogStreamNames(LogStreamNamesT&& value) {
120 m_logStreamNamesHasBeenSet = true;
121 m_logStreamNames.emplace_back(std::forward<LogStreamNamesT>(value));
122 return *this;
123 }
125
127
133 inline const Aws::Vector<Aws::String>& GetLogStreamNamePrefixes() const { return m_logStreamNamePrefixes; }
134 inline bool LogStreamNamePrefixesHasBeenSet() const { return m_logStreamNamePrefixesHasBeenSet; }
135 template <typename LogStreamNamePrefixesT = Aws::Vector<Aws::String>>
136 void SetLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) {
137 m_logStreamNamePrefixesHasBeenSet = true;
138 m_logStreamNamePrefixes = std::forward<LogStreamNamePrefixesT>(value);
139 }
140 template <typename LogStreamNamePrefixesT = Aws::Vector<Aws::String>>
141 LiveTailSessionStart& WithLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) {
142 SetLogStreamNamePrefixes(std::forward<LogStreamNamePrefixesT>(value));
143 return *this;
144 }
145 template <typename LogStreamNamePrefixesT = Aws::String>
146 LiveTailSessionStart& AddLogStreamNamePrefixes(LogStreamNamePrefixesT&& value) {
147 m_logStreamNamePrefixesHasBeenSet = true;
148 m_logStreamNamePrefixes.emplace_back(std::forward<LogStreamNamePrefixesT>(value));
149 return *this;
150 }
152
154
163 inline const Aws::String& GetLogEventFilterPattern() const { return m_logEventFilterPattern; }
164 inline bool LogEventFilterPatternHasBeenSet() const { return m_logEventFilterPatternHasBeenSet; }
165 template <typename LogEventFilterPatternT = Aws::String>
166 void SetLogEventFilterPattern(LogEventFilterPatternT&& value) {
167 m_logEventFilterPatternHasBeenSet = true;
168 m_logEventFilterPattern = std::forward<LogEventFilterPatternT>(value);
169 }
170 template <typename LogEventFilterPatternT = Aws::String>
171 LiveTailSessionStart& WithLogEventFilterPattern(LogEventFilterPatternT&& value) {
172 SetLogEventFilterPattern(std::forward<LogEventFilterPatternT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_requestId;
178
179 Aws::String m_sessionId;
180
181 Aws::Vector<Aws::String> m_logGroupIdentifiers;
182
183 Aws::Vector<Aws::String> m_logStreamNames;
184
185 Aws::Vector<Aws::String> m_logStreamNamePrefixes;
186
187 Aws::String m_logEventFilterPattern;
188 bool m_requestIdHasBeenSet = false;
189 bool m_sessionIdHasBeenSet = false;
190 bool m_logGroupIdentifiersHasBeenSet = false;
191 bool m_logStreamNamesHasBeenSet = false;
192 bool m_logStreamNamePrefixesHasBeenSet = false;
193 bool m_logEventFilterPatternHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace CloudWatchLogs
198} // namespace Aws
LiveTailSessionStart & WithRequestId(RequestIdT &&value)
LiveTailSessionStart & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
void SetLogStreamNamePrefixes(LogStreamNamePrefixesT &&value)
LiveTailSessionStart & WithLogStreamNamePrefixes(LogStreamNamePrefixesT &&value)
LiveTailSessionStart & WithLogEventFilterPattern(LogEventFilterPatternT &&value)
LiveTailSessionStart & AddLogStreamNamePrefixes(LogStreamNamePrefixesT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetLogStreamNamePrefixes() const
AWS_CLOUDWATCHLOGS_API LiveTailSessionStart(Aws::Utils::Json::JsonView jsonValue)
LiveTailSessionStart & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
LiveTailSessionStart & WithLogStreamNames(LogStreamNamesT &&value)
AWS_CLOUDWATCHLOGS_API LiveTailSessionStart()=default
void SetLogGroupIdentifiers(LogGroupIdentifiersT &&value)
AWS_CLOUDWATCHLOGS_API LiveTailSessionStart & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
LiveTailSessionStart & AddLogStreamNames(LogStreamNamesT &&value)
LiveTailSessionStart & WithSessionId(SessionIdT &&value)
void SetLogEventFilterPattern(LogEventFilterPatternT &&value)
const Aws::Vector< Aws::String > & GetLogStreamNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue