AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StartLiveTailResponseStream.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/model/LiveTailSessionStart.h>
9#include <aws/logs/model/LiveTailSessionUpdate.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 StartLiveTailResponseStream() = default;
35 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const LiveTailSessionStart& GetSessionStart() const { return m_sessionStart; }
43 inline bool SessionStartHasBeenSet() const { return m_sessionStartHasBeenSet; }
44 template <typename SessionStartT = LiveTailSessionStart>
45 void SetSessionStart(SessionStartT&& value) {
46 m_sessionStartHasBeenSet = true;
47 m_sessionStart = std::forward<SessionStartT>(value);
48 }
49 template <typename SessionStartT = LiveTailSessionStart>
51 SetSessionStart(std::forward<SessionStartT>(value));
52 return *this;
53 }
55
57
60 inline const LiveTailSessionUpdate& GetSessionUpdate() const { return m_sessionUpdate; }
61 inline bool SessionUpdateHasBeenSet() const { return m_sessionUpdateHasBeenSet; }
62 template <typename SessionUpdateT = LiveTailSessionUpdate>
63 void SetSessionUpdate(SessionUpdateT&& value) {
64 m_sessionUpdateHasBeenSet = true;
65 m_sessionUpdate = std::forward<SessionUpdateT>(value);
66 }
67 template <typename SessionUpdateT = LiveTailSessionUpdate>
69 SetSessionUpdate(std::forward<SessionUpdateT>(value));
70 return *this;
71 }
73
75
79 inline const CloudWatchLogsError& GetSessionTimeoutException() const { return m_sessionTimeoutException; }
80 inline bool SessionTimeoutExceptionHasBeenSet() const { return m_sessionTimeoutExceptionHasBeenSet; }
81 template <typename SessionTimeoutExceptionT = CloudWatchLogsError>
82 void SetSessionTimeoutException(SessionTimeoutExceptionT&& value) {
83 m_sessionTimeoutExceptionHasBeenSet = true;
84 m_sessionTimeoutException = std::forward<SessionTimeoutExceptionT>(value);
85 }
86 template <typename SessionTimeoutExceptionT = CloudWatchLogsError>
87 StartLiveTailResponseStream& WithSessionTimeoutException(SessionTimeoutExceptionT&& value) {
88 SetSessionTimeoutException(std::forward<SessionTimeoutExceptionT>(value));
89 return *this;
90 }
92
94
97 inline const CloudWatchLogsError& GetSessionStreamingException() const { return m_sessionStreamingException; }
98 inline bool SessionStreamingExceptionHasBeenSet() const { return m_sessionStreamingExceptionHasBeenSet; }
99 template <typename SessionStreamingExceptionT = CloudWatchLogsError>
100 void SetSessionStreamingException(SessionStreamingExceptionT&& value) {
101 m_sessionStreamingExceptionHasBeenSet = true;
102 m_sessionStreamingException = std::forward<SessionStreamingExceptionT>(value);
103 }
104 template <typename SessionStreamingExceptionT = CloudWatchLogsError>
105 StartLiveTailResponseStream& WithSessionStreamingException(SessionStreamingExceptionT&& value) {
106 SetSessionStreamingException(std::forward<SessionStreamingExceptionT>(value));
107 return *this;
108 }
110 private:
111 LiveTailSessionStart m_sessionStart;
112
113 LiveTailSessionUpdate m_sessionUpdate;
114
115 CloudWatchLogsError m_sessionTimeoutException;
116
117 CloudWatchLogsError m_sessionStreamingException;
118 bool m_sessionStartHasBeenSet = false;
119 bool m_sessionUpdateHasBeenSet = false;
120 bool m_sessionTimeoutExceptionHasBeenSet = false;
121 bool m_sessionStreamingExceptionHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CloudWatchLogs
126} // namespace Aws
void SetSessionStreamingException(SessionStreamingExceptionT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API StartLiveTailResponseStream()=default
StartLiveTailResponseStream & WithSessionStart(SessionStartT &&value)
StartLiveTailResponseStream & WithSessionUpdate(SessionUpdateT &&value)
AWS_CLOUDWATCHLOGS_API StartLiveTailResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
StartLiveTailResponseStream & WithSessionStreamingException(SessionStreamingExceptionT &&value)
AWS_CLOUDWATCHLOGS_API StartLiveTailResponseStream(Aws::Utils::Json::JsonView jsonValue)
StartLiveTailResponseStream & WithSessionTimeoutException(SessionTimeoutExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue