AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline Service& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline Service& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline Service& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
76 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
77 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
78 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
79 inline Service& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
80 inline Service& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
81 inline Service& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
82 inline Service& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
83 inline Service& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
85
87
90 inline bool GetRoot() const{ return m_root; }
91 inline bool RootHasBeenSet() const { return m_rootHasBeenSet; }
92 inline void SetRoot(bool value) { m_rootHasBeenSet = true; m_root = value; }
93 inline Service& WithRoot(bool value) { SetRoot(value); return *this;}
95
97
100 inline const Aws::String& GetAccountId() const{ return m_accountId; }
101 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
102 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
103 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
104 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
105 inline Service& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
106 inline Service& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
107 inline Service& WithAccountId(const char* value) { SetAccountId(value); return *this;}
109
111
123 inline const Aws::String& GetType() const{ return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
126 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
128 inline Service& WithType(const Aws::String& value) { SetType(value); return *this;}
129 inline Service& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
130 inline Service& WithType(const char* value) { SetType(value); return *this;}
132
134
137 inline const Aws::String& GetState() const{ return m_state; }
138 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
139 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
140 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
141 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
142 inline Service& WithState(const Aws::String& value) { SetState(value); return *this;}
143 inline Service& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
144 inline Service& WithState(const char* value) { SetState(value); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
152 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
153 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
154 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
155 inline Service& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
156 inline Service& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
164 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
165 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
166 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
167 inline Service& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
168 inline Service& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
170
172
175 inline const Aws::Vector<Edge>& GetEdges() const{ return m_edges; }
176 inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; }
177 inline void SetEdges(const Aws::Vector<Edge>& value) { m_edgesHasBeenSet = true; m_edges = value; }
178 inline void SetEdges(Aws::Vector<Edge>&& value) { m_edgesHasBeenSet = true; m_edges = std::move(value); }
179 inline Service& WithEdges(const Aws::Vector<Edge>& value) { SetEdges(value); return *this;}
180 inline Service& WithEdges(Aws::Vector<Edge>&& value) { SetEdges(std::move(value)); return *this;}
181 inline Service& AddEdges(const Edge& value) { m_edgesHasBeenSet = true; m_edges.push_back(value); return *this; }
182 inline Service& AddEdges(Edge&& value) { m_edgesHasBeenSet = true; m_edges.push_back(std::move(value)); return *this; }
184
186
189 inline const ServiceStatistics& GetSummaryStatistics() const{ return m_summaryStatistics; }
190 inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; }
191 inline void SetSummaryStatistics(const ServiceStatistics& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = value; }
192 inline void SetSummaryStatistics(ServiceStatistics&& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = std::move(value); }
193 inline Service& WithSummaryStatistics(const ServiceStatistics& value) { SetSummaryStatistics(value); return *this;}
194 inline Service& WithSummaryStatistics(ServiceStatistics&& value) { SetSummaryStatistics(std::move(value)); return *this;}
196
198
201 inline const Aws::Vector<HistogramEntry>& GetDurationHistogram() const{ return m_durationHistogram; }
202 inline bool DurationHistogramHasBeenSet() const { return m_durationHistogramHasBeenSet; }
203 inline void SetDurationHistogram(const Aws::Vector<HistogramEntry>& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = value; }
204 inline void SetDurationHistogram(Aws::Vector<HistogramEntry>&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = std::move(value); }
206 inline Service& WithDurationHistogram(Aws::Vector<HistogramEntry>&& value) { SetDurationHistogram(std::move(value)); return *this;}
207 inline Service& AddDurationHistogram(const HistogramEntry& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.push_back(value); return *this; }
208 inline Service& AddDurationHistogram(HistogramEntry&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.push_back(std::move(value)); return *this; }
210
212
215 inline const Aws::Vector<HistogramEntry>& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; }
216 inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; }
217 inline void SetResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; }
218 inline void SetResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); }
221 inline Service& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; }
222 inline Service& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; }
224 private:
225
226 int m_referenceId;
227 bool m_referenceIdHasBeenSet = false;
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
233 bool m_namesHasBeenSet = false;
234
235 bool m_root;
236 bool m_rootHasBeenSet = false;
237
238 Aws::String m_accountId;
239 bool m_accountIdHasBeenSet = false;
240
241 Aws::String m_type;
242 bool m_typeHasBeenSet = false;
243
244 Aws::String m_state;
245 bool m_stateHasBeenSet = false;
246
247 Aws::Utils::DateTime m_startTime;
248 bool m_startTimeHasBeenSet = false;
249
250 Aws::Utils::DateTime m_endTime;
251 bool m_endTimeHasBeenSet = false;
252
253 Aws::Vector<Edge> m_edges;
254 bool m_edgesHasBeenSet = false;
255
256 ServiceStatistics m_summaryStatistics;
257 bool m_summaryStatisticsHasBeenSet = false;
258
259 Aws::Vector<HistogramEntry> m_durationHistogram;
260 bool m_durationHistogramHasBeenSet = false;
261
262 Aws::Vector<HistogramEntry> m_responseTimeHistogram;
263 bool m_responseTimeHistogramHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace XRay
268} // namespace Aws
Service & AddNames(Aws::String &&value)
Definition Service.h:82
void SetDurationHistogram(const Aws::Vector< HistogramEntry > &value)
Definition Service.h:203
Service & WithReferenceId(int value)
Definition Service.h:54
Service & AddResponseTimeHistogram(const HistogramEntry &value)
Definition Service.h:221
Service & WithEdges(const Aws::Vector< Edge > &value)
Definition Service.h:179
Service & AddNames(const char *value)
Definition Service.h:83
void SetEdges(Aws::Vector< Edge > &&value)
Definition Service.h:178
bool EndTimeHasBeenSet() const
Definition Service.h:164
void SetAccountId(const Aws::String &value)
Definition Service.h:102
AWS_XRAY_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetSummaryStatistics(ServiceStatistics &&value)
Definition Service.h:192
bool DurationHistogramHasBeenSet() const
Definition Service.h:202
const Aws::Vector< HistogramEntry > & GetResponseTimeHistogram() const
Definition Service.h:215
void SetName(Aws::String &&value)
Definition Service.h:64
Service & AddEdges(Edge &&value)
Definition Service.h:182
void SetAccountId(const char *value)
Definition Service.h:104
const Aws::String & GetType() const
Definition Service.h:123
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithType(const char *value)
Definition Service.h:130
Service & WithName(Aws::String &&value)
Definition Service.h:67
Service & WithSummaryStatistics(const ServiceStatistics &value)
Definition Service.h:193
const ServiceStatistics & GetSummaryStatistics() const
Definition Service.h:189
Service & WithType(Aws::String &&value)
Definition Service.h:129
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Service.h:153
void SetState(const Aws::String &value)
Definition Service.h:139
Service & WithDurationHistogram(const Aws::Vector< HistogramEntry > &value)
Definition Service.h:205
Service & WithAccountId(const char *value)
Definition Service.h:107
void SetNames(Aws::Vector< Aws::String > &&value)
Definition Service.h:78
Service & WithEdges(Aws::Vector< Edge > &&value)
Definition Service.h:180
void SetAccountId(Aws::String &&value)
Definition Service.h:103
Service & WithAccountId(const Aws::String &value)
Definition Service.h:105
void SetResponseTimeHistogram(Aws::Vector< HistogramEntry > &&value)
Definition Service.h:218
bool NamesHasBeenSet() const
Definition Service.h:76
Service & AddNames(const Aws::String &value)
Definition Service.h:81
Service & WithName(const Aws::String &value)
Definition Service.h:66
bool RootHasBeenSet() const
Definition Service.h:91
int GetReferenceId() const
Definition Service.h:51
bool ReferenceIdHasBeenSet() const
Definition Service.h:52
Service & WithStartTime(const Aws::Utils::DateTime &value)
Definition Service.h:155
void SetEdges(const Aws::Vector< Edge > &value)
Definition Service.h:177
Service & WithState(const char *value)
Definition Service.h:144
bool GetRoot() const
Definition Service.h:90
void SetType(const char *value)
Definition Service.h:127
Service & WithNames(const Aws::Vector< Aws::String > &value)
Definition Service.h:79
Service & AddDurationHistogram(const HistogramEntry &value)
Definition Service.h:207
const Aws::Vector< HistogramEntry > & GetDurationHistogram() const
Definition Service.h:201
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Service.h:154
Service & AddEdges(const Edge &value)
Definition Service.h:181
const Aws::Utils::DateTime & GetEndTime() const
Definition Service.h:163
Service & WithName(const char *value)
Definition Service.h:68
bool EdgesHasBeenSet() const
Definition Service.h:176
const Aws::Vector< Edge > & GetEdges() const
Definition Service.h:175
Service & AddResponseTimeHistogram(HistogramEntry &&value)
Definition Service.h:222
AWS_XRAY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReferenceId(int value)
Definition Service.h:53
Service & WithResponseTimeHistogram(const Aws::Vector< HistogramEntry > &value)
Definition Service.h:219
Service & WithState(const Aws::String &value)
Definition Service.h:142
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Service.h:166
bool TypeHasBeenSet() const
Definition Service.h:124
Service & WithResponseTimeHistogram(Aws::Vector< HistogramEntry > &&value)
Definition Service.h:220
const Aws::String & GetState() const
Definition Service.h:137
Service & WithEndTime(const Aws::Utils::DateTime &value)
Definition Service.h:167
void SetState(Aws::String &&value)
Definition Service.h:140
Service & WithEndTime(Aws::Utils::DateTime &&value)
Definition Service.h:168
const Aws::String & GetAccountId() const
Definition Service.h:100
void SetType(const Aws::String &value)
Definition Service.h:125
void SetState(const char *value)
Definition Service.h:141
bool AccountIdHasBeenSet() const
Definition Service.h:101
const Aws::Utils::DateTime & GetStartTime() const
Definition Service.h:151
Service & WithDurationHistogram(Aws::Vector< HistogramEntry > &&value)
Definition Service.h:206
void SetRoot(bool value)
Definition Service.h:92
bool StateHasBeenSet() const
Definition Service.h:138
void SetDurationHistogram(Aws::Vector< HistogramEntry > &&value)
Definition Service.h:204
bool StartTimeHasBeenSet() const
Definition Service.h:152
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Service.h:165
void SetResponseTimeHistogram(const Aws::Vector< HistogramEntry > &value)
Definition Service.h:217
const Aws::Vector< Aws::String > & GetNames() const
Definition Service.h:75
Service & WithState(Aws::String &&value)
Definition Service.h:143
Service & WithSummaryStatistics(ServiceStatistics &&value)
Definition Service.h:194
void SetNames(const Aws::Vector< Aws::String > &value)
Definition Service.h:77
const Aws::String & GetName() const
Definition Service.h:61
bool SummaryStatisticsHasBeenSet() const
Definition Service.h:190
Service & WithType(const Aws::String &value)
Definition Service.h:128
void SetName(const char *value)
Definition Service.h:65
void SetType(Aws::String &&value)
Definition Service.h:126
Service & WithRoot(bool value)
Definition Service.h:93
void SetSummaryStatistics(const ServiceStatistics &value)
Definition Service.h:191
void SetName(const Aws::String &value)
Definition Service.h:63
Service & AddDurationHistogram(HistogramEntry &&value)
Definition Service.h:208
Service & WithAccountId(Aws::String &&value)
Definition Service.h:106
Service & WithNames(Aws::Vector< Aws::String > &&value)
Definition Service.h:80
bool ResponseTimeHistogramHasBeenSet() const
Definition Service.h:216
Service & WithStartTime(Aws::Utils::DateTime &&value)
Definition Service.h:156
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