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>
48 m_referenceIdHasBeenSet =
true;
49 m_referenceId = value;
63 template <
typename NameT = Aws::String>
65 m_nameHasBeenSet =
true;
66 m_name = std::forward<NameT>(value);
68 template <
typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
81 template <
typename NamesT = Aws::Vector<Aws::String>>
83 m_namesHasBeenSet =
true;
84 m_names = std::forward<NamesT>(value);
86 template <
typename NamesT = Aws::Vector<Aws::String>>
88 SetNames(std::forward<NamesT>(value));
91 template <
typename NamesT = Aws::String>
93 m_namesHasBeenSet =
true;
94 m_names.emplace_back(std::forward<NamesT>(value));
103 inline bool GetRoot()
const {
return m_root; }
106 m_rootHasBeenSet =
true;
121 template <
typename AccountIdT = Aws::String>
123 m_accountIdHasBeenSet =
true;
124 m_accountId = std::forward<AccountIdT>(value);
126 template <
typename AccountIdT = Aws::String>
148 template <
typename TypeT = Aws::String>
150 m_typeHasBeenSet =
true;
151 m_type = std::forward<TypeT>(value);
153 template <
typename TypeT = Aws::String>
155 SetType(std::forward<TypeT>(value));
166 template <
typename StateT = Aws::String>
168 m_stateHasBeenSet =
true;
169 m_state = std::forward<StateT>(value);
171 template <
typename StateT = Aws::String>
173 SetState(std::forward<StateT>(value));
184 template <
typename StartTimeT = Aws::Utils::DateTime>
186 m_startTimeHasBeenSet =
true;
187 m_startTime = std::forward<StartTimeT>(value);
189 template <
typename StartTimeT = Aws::Utils::DateTime>
202 template <
typename EndTimeT = Aws::Utils::DateTime>
204 m_endTimeHasBeenSet =
true;
205 m_endTime = std::forward<EndTimeT>(value);
207 template <
typename EndTimeT = Aws::Utils::DateTime>
220 template <
typename EdgesT = Aws::Vector<Edge>>
222 m_edgesHasBeenSet =
true;
223 m_edges = std::forward<EdgesT>(value);
225 template <
typename EdgesT = Aws::Vector<Edge>>
227 SetEdges(std::forward<EdgesT>(value));
230 template <
typename EdgesT = Edge>
232 m_edgesHasBeenSet =
true;
233 m_edges.emplace_back(std::forward<EdgesT>(value));
244 template <
typename SummaryStatisticsT = ServiceStatistics>
246 m_summaryStatisticsHasBeenSet =
true;
247 m_summaryStatistics = std::forward<SummaryStatisticsT>(value);
249 template <
typename SummaryStatisticsT = ServiceStatistics>
262 template <
typename DurationHistogramT = Aws::Vector<HistogramEntry>>
264 m_durationHistogramHasBeenSet =
true;
265 m_durationHistogram = std::forward<DurationHistogramT>(value);
267 template <
typename DurationHistogramT = Aws::Vector<HistogramEntry>>
272 template <
typename DurationHistogramT = HistogramEntry>
274 m_durationHistogramHasBeenSet =
true;
275 m_durationHistogram.emplace_back(std::forward<DurationHistogramT>(value));
286 template <
typename ResponseTimeHistogramT = Aws::Vector<HistogramEntry>>
288 m_responseTimeHistogramHasBeenSet =
true;
289 m_responseTimeHistogram = std::forward<ResponseTimeHistogramT>(value);
291 template <
typename ResponseTimeHistogramT = Aws::Vector<HistogramEntry>>
296 template <
typename ResponseTimeHistogramT = HistogramEntry>
298 m_responseTimeHistogramHasBeenSet =
true;
299 m_responseTimeHistogram.emplace_back(std::forward<ResponseTimeHistogramT>(value));
304 int m_referenceId{0};
324 ServiceStatistics m_summaryStatistics;
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;
Service & WithReferenceId(int value)
Service & WithResponseTimeHistogram(ResponseTimeHistogramT &&value)
bool EndTimeHasBeenSet() const
void SetAccountId(AccountIdT &&value)
Service & WithDurationHistogram(DurationHistogramT &&value)
AWS_XRAY_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetResponseTimeHistogram(ResponseTimeHistogramT &&value)
bool DurationHistogramHasBeenSet() const
const Aws::Vector< HistogramEntry > & GetResponseTimeHistogram() const
const Aws::String & GetType() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceStatistics & GetSummaryStatistics() const
Service & WithState(StateT &&value)
Service & WithEdges(EdgesT &&value)
Service & AddEdges(EdgesT &&value)
Service & AddResponseTimeHistogram(ResponseTimeHistogramT &&value)
bool NamesHasBeenSet() const
bool RootHasBeenSet() const
int GetReferenceId() const
bool ReferenceIdHasBeenSet() const
void SetName(NameT &&value)
Service & WithType(TypeT &&value)
void SetState(StateT &&value)
const Aws::Vector< HistogramEntry > & GetDurationHistogram() const
const Aws::Utils::DateTime & GetEndTime() const
bool EdgesHasBeenSet() const
const Aws::Vector< Edge > & GetEdges() const
AWS_XRAY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReferenceId(int value)
Service & AddDurationHistogram(DurationHistogramT &&value)
void SetNames(NamesT &&value)
void SetType(TypeT &&value)
bool TypeHasBeenSet() const
const Aws::String & GetState() const
Service & WithStartTime(StartTimeT &&value)
void SetDurationHistogram(DurationHistogramT &&value)
const Aws::String & GetAccountId() const
bool AccountIdHasBeenSet() const
const Aws::Utils::DateTime & GetStartTime() const
Service & WithEndTime(EndTimeT &&value)
Service & AddNames(NamesT &&value)
bool StateHasBeenSet() const
Service & WithNames(NamesT &&value)
bool StartTimeHasBeenSet() const
Service & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetNames() const
Service & WithSummaryStatistics(SummaryStatisticsT &&value)
void SetSummaryStatistics(SummaryStatisticsT &&value)
void SetEdges(EdgesT &&value)
const Aws::String & GetName() const
bool SummaryStatisticsHasBeenSet() const
Service & WithRoot(bool value)
AWS_XRAY_API Service()=default
void SetEndTime(EndTimeT &&value)
void SetStartTime(StartTimeT &&value)
Service & WithAccountId(AccountIdT &&value)
bool ResponseTimeHistogramHasBeenSet() const
bool NameHasBeenSet() 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