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>
53 inline void SetReferenceId(
int value) { m_referenceIdHasBeenSet =
true; m_referenceId = value; }
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>
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>>
79 template<
typename NamesT = Aws::String>
80 Service&
AddNames(NamesT&& value) { m_namesHasBeenSet =
true; m_names.emplace_back(std::forward<NamesT>(value));
return *
this; }
87 inline bool GetRoot()
const {
return m_root; }
89 inline void SetRoot(
bool value) { m_rootHasBeenSet =
true; m_root = value; }
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>
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>
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>
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>
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>
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>>
172 template<
typename EdgesT = Edge>
173 Service&
AddEdges(EdgesT&& value) { m_edgesHasBeenSet =
true; m_edges.emplace_back(std::forward<EdgesT>(value));
return *
this; }
182 template<
typename SummaryStatisticsT = ServiceStatistics>
183 void SetSummaryStatistics(SummaryStatisticsT&& value) { m_summaryStatisticsHasBeenSet =
true; m_summaryStatistics = std::forward<SummaryStatisticsT>(value); }
184 template<
typename SummaryStatisticsT = ServiceStatistics>
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>>
198 template<
typename DurationHistogramT = HistogramEntry>
199 Service&
AddDurationHistogram(DurationHistogramT&& value) { m_durationHistogramHasBeenSet =
true; m_durationHistogram.emplace_back(std::forward<DurationHistogramT>(value));
return *
this; }
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>>
212 template<
typename ResponseTimeHistogramT = HistogramEntry>
213 Service&
AddResponseTimeHistogram(ResponseTimeHistogramT&& value) { m_responseTimeHistogramHasBeenSet =
true; m_responseTimeHistogram.emplace_back(std::forward<ResponseTimeHistogramT>(value));
return *
this; }
217 int m_referenceId{0};
218 bool m_referenceIdHasBeenSet =
false;
221 bool m_nameHasBeenSet =
false;
224 bool m_namesHasBeenSet =
false;
227 bool m_rootHasBeenSet =
false;
230 bool m_accountIdHasBeenSet =
false;
233 bool m_typeHasBeenSet =
false;
236 bool m_stateHasBeenSet =
false;
239 bool m_startTimeHasBeenSet =
false;
242 bool m_endTimeHasBeenSet =
false;
245 bool m_edgesHasBeenSet =
false;
247 ServiceStatistics m_summaryStatistics;
248 bool m_summaryStatisticsHasBeenSet =
false;
251 bool m_durationHistogramHasBeenSet =
false;
254 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