AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/XRay_EXPORTS.h>
11#include <aws/xray/model/Edge.h>
12#include <aws/xray/model/HistogramEntry.h>
13#include <aws/xray/model/ServiceStatistics.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace XRay {
25namespace Model {
26
34class Service {
35 public:
36 AWS_XRAY_API Service() = default;
37 AWS_XRAY_API Service(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline int GetReferenceId() const { return m_referenceId; }
46 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
47 inline void SetReferenceId(int value) {
48 m_referenceIdHasBeenSet = true;
49 m_referenceId = value;
50 }
51 inline Service& WithReferenceId(int value) {
52 SetReferenceId(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 Service& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
80 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
81 template <typename NamesT = Aws::Vector<Aws::String>>
82 void SetNames(NamesT&& value) {
83 m_namesHasBeenSet = true;
84 m_names = std::forward<NamesT>(value);
85 }
86 template <typename NamesT = Aws::Vector<Aws::String>>
87 Service& WithNames(NamesT&& value) {
88 SetNames(std::forward<NamesT>(value));
89 return *this;
90 }
91 template <typename NamesT = Aws::String>
92 Service& AddNames(NamesT&& value) {
93 m_namesHasBeenSet = true;
94 m_names.emplace_back(std::forward<NamesT>(value));
95 return *this;
96 }
98
100
103 inline bool GetRoot() const { return m_root; }
104 inline bool RootHasBeenSet() const { return m_rootHasBeenSet; }
105 inline void SetRoot(bool value) {
106 m_rootHasBeenSet = true;
107 m_root = value;
108 }
109 inline Service& WithRoot(bool value) {
110 SetRoot(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetAccountId() const { return m_accountId; }
120 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
121 template <typename AccountIdT = Aws::String>
122 void SetAccountId(AccountIdT&& value) {
123 m_accountIdHasBeenSet = true;
124 m_accountId = std::forward<AccountIdT>(value);
125 }
126 template <typename AccountIdT = Aws::String>
127 Service& WithAccountId(AccountIdT&& value) {
128 SetAccountId(std::forward<AccountIdT>(value));
129 return *this;
130 }
132
134
146 inline const Aws::String& GetType() const { return m_type; }
147 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 template <typename TypeT = Aws::String>
149 void SetType(TypeT&& value) {
150 m_typeHasBeenSet = true;
151 m_type = std::forward<TypeT>(value);
152 }
153 template <typename TypeT = Aws::String>
154 Service& WithType(TypeT&& value) {
155 SetType(std::forward<TypeT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetState() const { return m_state; }
165 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
166 template <typename StateT = Aws::String>
167 void SetState(StateT&& value) {
168 m_stateHasBeenSet = true;
169 m_state = std::forward<StateT>(value);
170 }
171 template <typename StateT = Aws::String>
172 Service& WithState(StateT&& value) {
173 SetState(std::forward<StateT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
183 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
184 template <typename StartTimeT = Aws::Utils::DateTime>
185 void SetStartTime(StartTimeT&& value) {
186 m_startTimeHasBeenSet = true;
187 m_startTime = std::forward<StartTimeT>(value);
188 }
189 template <typename StartTimeT = Aws::Utils::DateTime>
190 Service& WithStartTime(StartTimeT&& value) {
191 SetStartTime(std::forward<StartTimeT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
201 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
202 template <typename EndTimeT = Aws::Utils::DateTime>
203 void SetEndTime(EndTimeT&& value) {
204 m_endTimeHasBeenSet = true;
205 m_endTime = std::forward<EndTimeT>(value);
206 }
207 template <typename EndTimeT = Aws::Utils::DateTime>
208 Service& WithEndTime(EndTimeT&& value) {
209 SetEndTime(std::forward<EndTimeT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Vector<Edge>& GetEdges() const { return m_edges; }
219 inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; }
220 template <typename EdgesT = Aws::Vector<Edge>>
221 void SetEdges(EdgesT&& value) {
222 m_edgesHasBeenSet = true;
223 m_edges = std::forward<EdgesT>(value);
224 }
225 template <typename EdgesT = Aws::Vector<Edge>>
226 Service& WithEdges(EdgesT&& value) {
227 SetEdges(std::forward<EdgesT>(value));
228 return *this;
229 }
230 template <typename EdgesT = Edge>
231 Service& AddEdges(EdgesT&& value) {
232 m_edgesHasBeenSet = true;
233 m_edges.emplace_back(std::forward<EdgesT>(value));
234 return *this;
235 }
237
239
242 inline const ServiceStatistics& GetSummaryStatistics() const { return m_summaryStatistics; }
243 inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; }
244 template <typename SummaryStatisticsT = ServiceStatistics>
245 void SetSummaryStatistics(SummaryStatisticsT&& value) {
246 m_summaryStatisticsHasBeenSet = true;
247 m_summaryStatistics = std::forward<SummaryStatisticsT>(value);
248 }
249 template <typename SummaryStatisticsT = ServiceStatistics>
250 Service& WithSummaryStatistics(SummaryStatisticsT&& value) {
251 SetSummaryStatistics(std::forward<SummaryStatisticsT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Vector<HistogramEntry>& GetDurationHistogram() const { return m_durationHistogram; }
261 inline bool DurationHistogramHasBeenSet() const { return m_durationHistogramHasBeenSet; }
262 template <typename DurationHistogramT = Aws::Vector<HistogramEntry>>
263 void SetDurationHistogram(DurationHistogramT&& value) {
264 m_durationHistogramHasBeenSet = true;
265 m_durationHistogram = std::forward<DurationHistogramT>(value);
266 }
267 template <typename DurationHistogramT = Aws::Vector<HistogramEntry>>
268 Service& WithDurationHistogram(DurationHistogramT&& value) {
269 SetDurationHistogram(std::forward<DurationHistogramT>(value));
270 return *this;
271 }
272 template <typename DurationHistogramT = HistogramEntry>
273 Service& AddDurationHistogram(DurationHistogramT&& value) {
274 m_durationHistogramHasBeenSet = true;
275 m_durationHistogram.emplace_back(std::forward<DurationHistogramT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Vector<HistogramEntry>& GetResponseTimeHistogram() const { return m_responseTimeHistogram; }
285 inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; }
286 template <typename ResponseTimeHistogramT = Aws::Vector<HistogramEntry>>
287 void SetResponseTimeHistogram(ResponseTimeHistogramT&& value) {
288 m_responseTimeHistogramHasBeenSet = true;
289 m_responseTimeHistogram = std::forward<ResponseTimeHistogramT>(value);
290 }
291 template <typename ResponseTimeHistogramT = Aws::Vector<HistogramEntry>>
292 Service& WithResponseTimeHistogram(ResponseTimeHistogramT&& value) {
293 SetResponseTimeHistogram(std::forward<ResponseTimeHistogramT>(value));
294 return *this;
295 }
296 template <typename ResponseTimeHistogramT = HistogramEntry>
297 Service& AddResponseTimeHistogram(ResponseTimeHistogramT&& value) {
298 m_responseTimeHistogramHasBeenSet = true;
299 m_responseTimeHistogram.emplace_back(std::forward<ResponseTimeHistogramT>(value));
300 return *this;
301 }
303 private:
304 int m_referenceId{0};
305
306 Aws::String m_name;
307
309
310 bool m_root{false};
311
312 Aws::String m_accountId;
313
314 Aws::String m_type;
315
316 Aws::String m_state;
317
318 Aws::Utils::DateTime m_startTime{};
319
320 Aws::Utils::DateTime m_endTime{};
321
322 Aws::Vector<Edge> m_edges;
323
324 ServiceStatistics m_summaryStatistics;
325
326 Aws::Vector<HistogramEntry> m_durationHistogram;
327
328 Aws::Vector<HistogramEntry> m_responseTimeHistogram;
329 bool m_referenceIdHasBeenSet = false;
330 bool m_nameHasBeenSet = false;
331 bool m_namesHasBeenSet = false;
332 bool m_rootHasBeenSet = false;
333 bool m_accountIdHasBeenSet = false;
334 bool m_typeHasBeenSet = false;
335 bool m_stateHasBeenSet = false;
336 bool m_startTimeHasBeenSet = false;
337 bool m_endTimeHasBeenSet = false;
338 bool m_edgesHasBeenSet = false;
339 bool m_summaryStatisticsHasBeenSet = false;
340 bool m_durationHistogramHasBeenSet = false;
341 bool m_responseTimeHistogramHasBeenSet = false;
342};
343
344} // namespace Model
345} // namespace XRay
346} // namespace Aws
Service & WithReferenceId(int value)
Definition Service.h:51
Service & WithResponseTimeHistogram(ResponseTimeHistogramT &&value)
Definition Service.h:292
bool EndTimeHasBeenSet() const
Definition Service.h:201
void SetAccountId(AccountIdT &&value)
Definition Service.h:122
Service & WithDurationHistogram(DurationHistogramT &&value)
Definition Service.h:268
AWS_XRAY_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetResponseTimeHistogram(ResponseTimeHistogramT &&value)
Definition Service.h:287
bool DurationHistogramHasBeenSet() const
Definition Service.h:261
const Aws::Vector< HistogramEntry > & GetResponseTimeHistogram() const
Definition Service.h:284
const Aws::String & GetType() const
Definition Service.h:146
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceStatistics & GetSummaryStatistics() const
Definition Service.h:242
Service & WithState(StateT &&value)
Definition Service.h:172
Service & WithEdges(EdgesT &&value)
Definition Service.h:226
Service & AddEdges(EdgesT &&value)
Definition Service.h:231
Service & AddResponseTimeHistogram(ResponseTimeHistogramT &&value)
Definition Service.h:297
bool NamesHasBeenSet() const
Definition Service.h:80
bool RootHasBeenSet() const
Definition Service.h:104
int GetReferenceId() const
Definition Service.h:45
bool ReferenceIdHasBeenSet() const
Definition Service.h:46
void SetName(NameT &&value)
Definition Service.h:64
Service & WithType(TypeT &&value)
Definition Service.h:154
void SetState(StateT &&value)
Definition Service.h:167
const Aws::Vector< HistogramEntry > & GetDurationHistogram() const
Definition Service.h:260
const Aws::Utils::DateTime & GetEndTime() const
Definition Service.h:200
bool EdgesHasBeenSet() const
Definition Service.h:219
const Aws::Vector< Edge > & GetEdges() const
Definition Service.h:218
AWS_XRAY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReferenceId(int value)
Definition Service.h:47
Service & AddDurationHistogram(DurationHistogramT &&value)
Definition Service.h:273
void SetNames(NamesT &&value)
Definition Service.h:82
void SetType(TypeT &&value)
Definition Service.h:149
bool TypeHasBeenSet() const
Definition Service.h:147
const Aws::String & GetState() const
Definition Service.h:164
Service & WithStartTime(StartTimeT &&value)
Definition Service.h:190
void SetDurationHistogram(DurationHistogramT &&value)
Definition Service.h:263
const Aws::String & GetAccountId() const
Definition Service.h:119
bool AccountIdHasBeenSet() const
Definition Service.h:120
const Aws::Utils::DateTime & GetStartTime() const
Definition Service.h:182
Service & WithEndTime(EndTimeT &&value)
Definition Service.h:208
void SetRoot(bool value)
Definition Service.h:105
Service & AddNames(NamesT &&value)
Definition Service.h:92
bool StateHasBeenSet() const
Definition Service.h:165
Service & WithNames(NamesT &&value)
Definition Service.h:87
bool StartTimeHasBeenSet() const
Definition Service.h:183
Service & WithName(NameT &&value)
Definition Service.h:69
const Aws::Vector< Aws::String > & GetNames() const
Definition Service.h:79
Service & WithSummaryStatistics(SummaryStatisticsT &&value)
Definition Service.h:250
void SetSummaryStatistics(SummaryStatisticsT &&value)
Definition Service.h:245
void SetEdges(EdgesT &&value)
Definition Service.h:221
const Aws::String & GetName() const
Definition Service.h:61
bool SummaryStatisticsHasBeenSet() const
Definition Service.h:243
Service & WithRoot(bool value)
Definition Service.h:109
AWS_XRAY_API Service()=default
void SetEndTime(EndTimeT &&value)
Definition Service.h:203
void SetStartTime(StartTimeT &&value)
Definition Service.h:185
Service & WithAccountId(AccountIdT &&value)
Definition Service.h:127
bool ResponseTimeHistogramHasBeenSet() const
Definition Service.h:285
bool NameHasBeenSet() const
Definition Service.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue