AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/xray/model/ServiceStatistics.h>
12#include <aws/xray/model/Edge.h>
13#include <aws/xray/model/HistogramEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace XRay
27{
28namespace Model
29{
30
38 class Service
39 {
40 public:
41 AWS_XRAY_API Service() = default;
42 AWS_XRAY_API Service(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline int GetReferenceId() const { return m_referenceId; }
52 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
53 inline void SetReferenceId(int value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
54 inline Service& WithReferenceId(int value) { SetReferenceId(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 Service& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
74 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
75 template<typename NamesT = Aws::Vector<Aws::String>>
76 void SetNames(NamesT&& value) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
77 template<typename NamesT = Aws::Vector<Aws::String>>
78 Service& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
79 template<typename NamesT = Aws::String>
80 Service& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
82
84
87 inline bool GetRoot() const { return m_root; }
88 inline bool RootHasBeenSet() const { return m_rootHasBeenSet; }
89 inline void SetRoot(bool value) { m_rootHasBeenSet = true; m_root = value; }
90 inline Service& WithRoot(bool value) { SetRoot(value); return *this;}
92
94
97 inline const Aws::String& GetAccountId() const { return m_accountId; }
98 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
99 template<typename AccountIdT = Aws::String>
100 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
101 template<typename AccountIdT = Aws::String>
102 Service& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
104
106
118 inline const Aws::String& GetType() const { return m_type; }
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120 template<typename TypeT = Aws::String>
121 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
122 template<typename TypeT = Aws::String>
123 Service& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
125
127
130 inline const Aws::String& GetState() const { return m_state; }
131 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
132 template<typename StateT = Aws::String>
133 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
134 template<typename StateT = Aws::String>
135 Service& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
143 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
144 template<typename StartTimeT = Aws::Utils::DateTime>
145 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
146 template<typename StartTimeT = Aws::Utils::DateTime>
147 Service& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
155 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
156 template<typename EndTimeT = Aws::Utils::DateTime>
157 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
158 template<typename EndTimeT = Aws::Utils::DateTime>
159 Service& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
161
163
166 inline const Aws::Vector<Edge>& GetEdges() const { return m_edges; }
167 inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; }
168 template<typename EdgesT = Aws::Vector<Edge>>
169 void SetEdges(EdgesT&& value) { m_edgesHasBeenSet = true; m_edges = std::forward<EdgesT>(value); }
170 template<typename EdgesT = Aws::Vector<Edge>>
171 Service& WithEdges(EdgesT&& value) { SetEdges(std::forward<EdgesT>(value)); return *this;}
172 template<typename EdgesT = Edge>
173 Service& AddEdges(EdgesT&& value) { m_edgesHasBeenSet = true; m_edges.emplace_back(std::forward<EdgesT>(value)); return *this; }
175
177
180 inline const ServiceStatistics& GetSummaryStatistics() const { return m_summaryStatistics; }
181 inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; }
182 template<typename SummaryStatisticsT = ServiceStatistics>
183 void SetSummaryStatistics(SummaryStatisticsT&& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = std::forward<SummaryStatisticsT>(value); }
184 template<typename SummaryStatisticsT = ServiceStatistics>
185 Service& WithSummaryStatistics(SummaryStatisticsT&& value) { SetSummaryStatistics(std::forward<SummaryStatisticsT>(value)); return *this;}
187
189
192 inline const Aws::Vector<HistogramEntry>& GetDurationHistogram() const { return m_durationHistogram; }
193 inline bool DurationHistogramHasBeenSet() const { return m_durationHistogramHasBeenSet; }
194 template<typename DurationHistogramT = Aws::Vector<HistogramEntry>>
195 void SetDurationHistogram(DurationHistogramT&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = std::forward<DurationHistogramT>(value); }
196 template<typename DurationHistogramT = Aws::Vector<HistogramEntry>>
197 Service& WithDurationHistogram(DurationHistogramT&& value) { SetDurationHistogram(std::forward<DurationHistogramT>(value)); return *this;}
198 template<typename DurationHistogramT = HistogramEntry>
199 Service& AddDurationHistogram(DurationHistogramT&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.emplace_back(std::forward<DurationHistogramT>(value)); return *this; }
201
203
206 inline const Aws::Vector<HistogramEntry>& GetResponseTimeHistogram() const { return m_responseTimeHistogram; }
207 inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; }
208 template<typename ResponseTimeHistogramT = Aws::Vector<HistogramEntry>>
209 void SetResponseTimeHistogram(ResponseTimeHistogramT&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::forward<ResponseTimeHistogramT>(value); }
210 template<typename ResponseTimeHistogramT = Aws::Vector<HistogramEntry>>
211 Service& WithResponseTimeHistogram(ResponseTimeHistogramT&& value) { SetResponseTimeHistogram(std::forward<ResponseTimeHistogramT>(value)); return *this;}
212 template<typename ResponseTimeHistogramT = HistogramEntry>
213 Service& AddResponseTimeHistogram(ResponseTimeHistogramT&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.emplace_back(std::forward<ResponseTimeHistogramT>(value)); return *this; }
215 private:
216
217 int m_referenceId{0};
218 bool m_referenceIdHasBeenSet = false;
219
220 Aws::String m_name;
221 bool m_nameHasBeenSet = false;
222
224 bool m_namesHasBeenSet = false;
225
226 bool m_root{false};
227 bool m_rootHasBeenSet = false;
228
229 Aws::String m_accountId;
230 bool m_accountIdHasBeenSet = false;
231
232 Aws::String m_type;
233 bool m_typeHasBeenSet = false;
234
235 Aws::String m_state;
236 bool m_stateHasBeenSet = false;
237
238 Aws::Utils::DateTime m_startTime{};
239 bool m_startTimeHasBeenSet = false;
240
241 Aws::Utils::DateTime m_endTime{};
242 bool m_endTimeHasBeenSet = false;
243
244 Aws::Vector<Edge> m_edges;
245 bool m_edgesHasBeenSet = false;
246
247 ServiceStatistics m_summaryStatistics;
248 bool m_summaryStatisticsHasBeenSet = false;
249
250 Aws::Vector<HistogramEntry> m_durationHistogram;
251 bool m_durationHistogramHasBeenSet = false;
252
253 Aws::Vector<HistogramEntry> m_responseTimeHistogram;
254 bool m_responseTimeHistogramHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace XRay
259} // namespace Aws
Service & WithReferenceId(int value)
Definition Service.h:54
Service & WithResponseTimeHistogram(ResponseTimeHistogramT &&value)
Definition Service.h:211
bool EndTimeHasBeenSet() const
Definition Service.h:155
void SetAccountId(AccountIdT &&value)
Definition Service.h:100
Service & WithDurationHistogram(DurationHistogramT &&value)
Definition Service.h:197
AWS_XRAY_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetResponseTimeHistogram(ResponseTimeHistogramT &&value)
Definition Service.h:209
bool DurationHistogramHasBeenSet() const
Definition Service.h:193
const Aws::Vector< HistogramEntry > & GetResponseTimeHistogram() const
Definition Service.h:206
const Aws::String & GetType() const
Definition Service.h:118
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceStatistics & GetSummaryStatistics() const
Definition Service.h:180
Service & WithState(StateT &&value)
Definition Service.h:135
Service & WithEdges(EdgesT &&value)
Definition Service.h:171
Service & AddEdges(EdgesT &&value)
Definition Service.h:173
Service & AddResponseTimeHistogram(ResponseTimeHistogramT &&value)
Definition Service.h:213
bool NamesHasBeenSet() const
Definition Service.h:74
bool RootHasBeenSet() const
Definition Service.h:88
int GetReferenceId() const
Definition Service.h:51
bool ReferenceIdHasBeenSet() const
Definition Service.h:52
bool GetRoot() const
Definition Service.h:87
void SetName(NameT &&value)
Definition Service.h:64
Service & WithType(TypeT &&value)
Definition Service.h:123
void SetState(StateT &&value)
Definition Service.h:133
const Aws::Vector< HistogramEntry > & GetDurationHistogram() const
Definition Service.h:192
const Aws::Utils::DateTime & GetEndTime() const
Definition Service.h:154
bool EdgesHasBeenSet() const
Definition Service.h:167
const Aws::Vector< Edge > & GetEdges() const
Definition Service.h:166
AWS_XRAY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReferenceId(int value)
Definition Service.h:53
Service & AddDurationHistogram(DurationHistogramT &&value)
Definition Service.h:199
void SetNames(NamesT &&value)
Definition Service.h:76
void SetType(TypeT &&value)
Definition Service.h:121
bool TypeHasBeenSet() const
Definition Service.h:119
const Aws::String & GetState() const
Definition Service.h:130
Service & WithStartTime(StartTimeT &&value)
Definition Service.h:147
void SetDurationHistogram(DurationHistogramT &&value)
Definition Service.h:195
const Aws::String & GetAccountId() const
Definition Service.h:97
bool AccountIdHasBeenSet() const
Definition Service.h:98
const Aws::Utils::DateTime & GetStartTime() const
Definition Service.h:142
Service & WithEndTime(EndTimeT &&value)
Definition Service.h:159
void SetRoot(bool value)
Definition Service.h:89
Service & AddNames(NamesT &&value)
Definition Service.h:80
bool StateHasBeenSet() const
Definition Service.h:131
Service & WithNames(NamesT &&value)
Definition Service.h:78
bool StartTimeHasBeenSet() const
Definition Service.h:143
Service & WithName(NameT &&value)
Definition Service.h:66
const Aws::Vector< Aws::String > & GetNames() const
Definition Service.h:73
Service & WithSummaryStatistics(SummaryStatisticsT &&value)
Definition Service.h:185
void SetSummaryStatistics(SummaryStatisticsT &&value)
Definition Service.h:183
void SetEdges(EdgesT &&value)
Definition Service.h:169
const Aws::String & GetName() const
Definition Service.h:61
bool SummaryStatisticsHasBeenSet() const
Definition Service.h:181
Service & WithRoot(bool value)
Definition Service.h:90
AWS_XRAY_API Service()=default
void SetEndTime(EndTimeT &&value)
Definition Service.h:157
void SetStartTime(StartTimeT &&value)
Definition Service.h:145
Service & WithAccountId(AccountIdT &&value)
Definition Service.h:102
bool ResponseTimeHistogramHasBeenSet() const
Definition Service.h:207
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