AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
SendMessageEvents.h
1
6#pragma once
7#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
8#include <aws/devops-agent/model/SendMessageContentBlockDeltaEvent.h>
9#include <aws/devops-agent/model/SendMessageContentBlockStartEvent.h>
10#include <aws/devops-agent/model/SendMessageContentBlockStopEvent.h>
11#include <aws/devops-agent/model/SendMessageHeartbeatEvent.h>
12#include <aws/devops-agent/model/SendMessageResponseCompletedEvent.h>
13#include <aws/devops-agent/model/SendMessageResponseCreatedEvent.h>
14#include <aws/devops-agent/model/SendMessageResponseFailedEvent.h>
15#include <aws/devops-agent/model/SendMessageResponseInProgressEvent.h>
16#include <aws/devops-agent/model/SendMessageSummaryEvent.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DevOpsAgent {
28namespace Model {
29
41 public:
42 AWS_DEVOPSAGENT_API SendMessageEvents() = default;
43 AWS_DEVOPSAGENT_API SendMessageEvents(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const SendMessageResponseCreatedEvent& GetResponseCreated() const { return m_responseCreated; }
52 inline bool ResponseCreatedHasBeenSet() const { return m_responseCreatedHasBeenSet; }
53 template <typename ResponseCreatedT = SendMessageResponseCreatedEvent>
54 void SetResponseCreated(ResponseCreatedT&& value) {
55 m_responseCreatedHasBeenSet = true;
56 m_responseCreated = std::forward<ResponseCreatedT>(value);
57 }
58 template <typename ResponseCreatedT = SendMessageResponseCreatedEvent>
59 SendMessageEvents& WithResponseCreated(ResponseCreatedT&& value) {
60 SetResponseCreated(std::forward<ResponseCreatedT>(value));
61 return *this;
62 }
64
66
69 inline const SendMessageResponseInProgressEvent& GetResponseInProgress() const { return m_responseInProgress; }
70 inline bool ResponseInProgressHasBeenSet() const { return m_responseInProgressHasBeenSet; }
71 template <typename ResponseInProgressT = SendMessageResponseInProgressEvent>
72 void SetResponseInProgress(ResponseInProgressT&& value) {
73 m_responseInProgressHasBeenSet = true;
74 m_responseInProgress = std::forward<ResponseInProgressT>(value);
75 }
76 template <typename ResponseInProgressT = SendMessageResponseInProgressEvent>
77 SendMessageEvents& WithResponseInProgress(ResponseInProgressT&& value) {
78 SetResponseInProgress(std::forward<ResponseInProgressT>(value));
79 return *this;
80 }
82
84
87 inline const SendMessageResponseCompletedEvent& GetResponseCompleted() const { return m_responseCompleted; }
88 inline bool ResponseCompletedHasBeenSet() const { return m_responseCompletedHasBeenSet; }
89 template <typename ResponseCompletedT = SendMessageResponseCompletedEvent>
90 void SetResponseCompleted(ResponseCompletedT&& value) {
91 m_responseCompletedHasBeenSet = true;
92 m_responseCompleted = std::forward<ResponseCompletedT>(value);
93 }
94 template <typename ResponseCompletedT = SendMessageResponseCompletedEvent>
95 SendMessageEvents& WithResponseCompleted(ResponseCompletedT&& value) {
96 SetResponseCompleted(std::forward<ResponseCompletedT>(value));
97 return *this;
98 }
100
102
105 inline const SendMessageResponseFailedEvent& GetResponseFailed() const { return m_responseFailed; }
106 inline bool ResponseFailedHasBeenSet() const { return m_responseFailedHasBeenSet; }
107 template <typename ResponseFailedT = SendMessageResponseFailedEvent>
108 void SetResponseFailed(ResponseFailedT&& value) {
109 m_responseFailedHasBeenSet = true;
110 m_responseFailed = std::forward<ResponseFailedT>(value);
111 }
112 template <typename ResponseFailedT = SendMessageResponseFailedEvent>
113 SendMessageEvents& WithResponseFailed(ResponseFailedT&& value) {
114 SetResponseFailed(std::forward<ResponseFailedT>(value));
115 return *this;
116 }
118
120
123 inline const SendMessageSummaryEvent& GetSummary() const { return m_summary; }
124 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
125 template <typename SummaryT = SendMessageSummaryEvent>
126 void SetSummary(SummaryT&& value) {
127 m_summaryHasBeenSet = true;
128 m_summary = std::forward<SummaryT>(value);
129 }
130 template <typename SummaryT = SendMessageSummaryEvent>
131 SendMessageEvents& WithSummary(SummaryT&& value) {
132 SetSummary(std::forward<SummaryT>(value));
133 return *this;
134 }
136
138
142 inline const SendMessageHeartbeatEvent& GetHeartbeat() const { return m_heartbeat; }
143 inline bool HeartbeatHasBeenSet() const { return m_heartbeatHasBeenSet; }
144 template <typename HeartbeatT = SendMessageHeartbeatEvent>
145 void SetHeartbeat(HeartbeatT&& value) {
146 m_heartbeatHasBeenSet = true;
147 m_heartbeat = std::forward<HeartbeatT>(value);
148 }
149 template <typename HeartbeatT = SendMessageHeartbeatEvent>
150 SendMessageEvents& WithHeartbeat(HeartbeatT&& value) {
151 SetHeartbeat(std::forward<HeartbeatT>(value));
152 return *this;
153 }
155
157
160 inline const SendMessageContentBlockStartEvent& GetContentBlockStart() const { return m_contentBlockStart; }
161 inline bool ContentBlockStartHasBeenSet() const { return m_contentBlockStartHasBeenSet; }
162 template <typename ContentBlockStartT = SendMessageContentBlockStartEvent>
163 void SetContentBlockStart(ContentBlockStartT&& value) {
164 m_contentBlockStartHasBeenSet = true;
165 m_contentBlockStart = std::forward<ContentBlockStartT>(value);
166 }
167 template <typename ContentBlockStartT = SendMessageContentBlockStartEvent>
168 SendMessageEvents& WithContentBlockStart(ContentBlockStartT&& value) {
169 SetContentBlockStart(std::forward<ContentBlockStartT>(value));
170 return *this;
171 }
173
175
178 inline const SendMessageContentBlockDeltaEvent& GetContentBlockDelta() const { return m_contentBlockDelta; }
179 inline bool ContentBlockDeltaHasBeenSet() const { return m_contentBlockDeltaHasBeenSet; }
180 template <typename ContentBlockDeltaT = SendMessageContentBlockDeltaEvent>
181 void SetContentBlockDelta(ContentBlockDeltaT&& value) {
182 m_contentBlockDeltaHasBeenSet = true;
183 m_contentBlockDelta = std::forward<ContentBlockDeltaT>(value);
184 }
185 template <typename ContentBlockDeltaT = SendMessageContentBlockDeltaEvent>
186 SendMessageEvents& WithContentBlockDelta(ContentBlockDeltaT&& value) {
187 SetContentBlockDelta(std::forward<ContentBlockDeltaT>(value));
188 return *this;
189 }
191
193
196 inline const SendMessageContentBlockStopEvent& GetContentBlockStop() const { return m_contentBlockStop; }
197 inline bool ContentBlockStopHasBeenSet() const { return m_contentBlockStopHasBeenSet; }
198 template <typename ContentBlockStopT = SendMessageContentBlockStopEvent>
199 void SetContentBlockStop(ContentBlockStopT&& value) {
200 m_contentBlockStopHasBeenSet = true;
201 m_contentBlockStop = std::forward<ContentBlockStopT>(value);
202 }
203 template <typename ContentBlockStopT = SendMessageContentBlockStopEvent>
204 SendMessageEvents& WithContentBlockStop(ContentBlockStopT&& value) {
205 SetContentBlockStop(std::forward<ContentBlockStopT>(value));
206 return *this;
207 }
209 private:
210 SendMessageResponseCreatedEvent m_responseCreated;
211
212 SendMessageResponseInProgressEvent m_responseInProgress;
213
214 SendMessageResponseCompletedEvent m_responseCompleted;
215
216 SendMessageResponseFailedEvent m_responseFailed;
217
218 SendMessageSummaryEvent m_summary;
219
220 SendMessageHeartbeatEvent m_heartbeat;
221
222 SendMessageContentBlockStartEvent m_contentBlockStart;
223
224 SendMessageContentBlockDeltaEvent m_contentBlockDelta;
225
226 SendMessageContentBlockStopEvent m_contentBlockStop;
227 bool m_responseCreatedHasBeenSet = false;
228 bool m_responseInProgressHasBeenSet = false;
229 bool m_responseCompletedHasBeenSet = false;
230 bool m_responseFailedHasBeenSet = false;
231 bool m_summaryHasBeenSet = false;
232 bool m_heartbeatHasBeenSet = false;
233 bool m_contentBlockStartHasBeenSet = false;
234 bool m_contentBlockDeltaHasBeenSet = false;
235 bool m_contentBlockStopHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace DevOpsAgent
240} // namespace Aws
void SetResponseInProgress(ResponseInProgressT &&value)
const SendMessageSummaryEvent & GetSummary() const
const SendMessageHeartbeatEvent & GetHeartbeat() const
void SetResponseCompleted(ResponseCompletedT &&value)
SendMessageEvents & WithResponseCreated(ResponseCreatedT &&value)
SendMessageEvents & WithResponseInProgress(ResponseInProgressT &&value)
void SetContentBlockStop(ContentBlockStopT &&value)
SendMessageEvents & WithContentBlockDelta(ContentBlockDeltaT &&value)
AWS_DEVOPSAGENT_API SendMessageEvents()=default
void SetResponseFailed(ResponseFailedT &&value)
SendMessageEvents & WithContentBlockStop(ContentBlockStopT &&value)
void SetContentBlockDelta(ContentBlockDeltaT &&value)
void SetContentBlockStart(ContentBlockStartT &&value)
AWS_DEVOPSAGENT_API SendMessageEvents(Aws::Utils::Json::JsonView jsonValue)
void SetResponseCreated(ResponseCreatedT &&value)
SendMessageEvents & WithSummary(SummaryT &&value)
SendMessageEvents & WithHeartbeat(HeartbeatT &&value)
const SendMessageContentBlockStartEvent & GetContentBlockStart() const
const SendMessageResponseCreatedEvent & GetResponseCreated() const
const SendMessageContentBlockDeltaEvent & GetContentBlockDelta() const
const SendMessageContentBlockStopEvent & GetContentBlockStop() const
const SendMessageResponseFailedEvent & GetResponseFailed() const
AWS_DEVOPSAGENT_API SendMessageEvents & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
SendMessageEvents & WithContentBlockStart(ContentBlockStartT &&value)
SendMessageEvents & WithResponseCompleted(ResponseCompletedT &&value)
const SendMessageResponseInProgressEvent & GetResponseInProgress() const
SendMessageEvents & WithResponseFailed(ResponseFailedT &&value)
const SendMessageResponseCompletedEvent & GetResponseCompleted() const
Aws::Utils::Json::JsonValue JsonValue