AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SamplingRuleUpdate.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/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_XRAY_API SamplingRuleUpdate();
40
41
43
47 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
48 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
49 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
50 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
51 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
52 inline SamplingRuleUpdate& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
53 inline SamplingRuleUpdate& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
54 inline SamplingRuleUpdate& WithRuleName(const char* value) { SetRuleName(value); return *this;}
56
58
62 inline const Aws::String& GetRuleARN() const{ return m_ruleARN; }
63 inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
64 inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; }
65 inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); }
66 inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); }
67 inline SamplingRuleUpdate& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;}
68 inline SamplingRuleUpdate& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;}
69 inline SamplingRuleUpdate& WithRuleARN(const char* value) { SetRuleARN(value); return *this;}
71
73
77 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
78 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
79 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
80 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
81 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
82 inline SamplingRuleUpdate& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
83 inline SamplingRuleUpdate& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
84 inline SamplingRuleUpdate& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
86
88
91 inline int GetPriority() const{ return m_priority; }
92 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
93 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
94 inline SamplingRuleUpdate& WithPriority(int value) { SetPriority(value); return *this;}
96
98
102 inline double GetFixedRate() const{ return m_fixedRate; }
103 inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
104 inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
105 inline SamplingRuleUpdate& WithFixedRate(double value) { SetFixedRate(value); return *this;}
107
109
114 inline int GetReservoirSize() const{ return m_reservoirSize; }
115 inline bool ReservoirSizeHasBeenSet() const { return m_reservoirSizeHasBeenSet; }
116 inline void SetReservoirSize(int value) { m_reservoirSizeHasBeenSet = true; m_reservoirSize = value; }
117 inline SamplingRuleUpdate& WithReservoirSize(int value) { SetReservoirSize(value); return *this;}
119
121
124 inline const Aws::String& GetHost() const{ return m_host; }
125 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
126 inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
127 inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
128 inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
129 inline SamplingRuleUpdate& WithHost(const Aws::String& value) { SetHost(value); return *this;}
130 inline SamplingRuleUpdate& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
131 inline SamplingRuleUpdate& WithHost(const char* value) { SetHost(value); return *this;}
133
135
139 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
140 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
141 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
142 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
143 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
144 inline SamplingRuleUpdate& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
145 inline SamplingRuleUpdate& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
146 inline SamplingRuleUpdate& WithServiceName(const char* value) { SetServiceName(value); return *this;}
148
150
154 inline const Aws::String& GetServiceType() const{ return m_serviceType; }
155 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
156 inline void SetServiceType(const Aws::String& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
157 inline void SetServiceType(Aws::String&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
158 inline void SetServiceType(const char* value) { m_serviceTypeHasBeenSet = true; m_serviceType.assign(value); }
159 inline SamplingRuleUpdate& WithServiceType(const Aws::String& value) { SetServiceType(value); return *this;}
160 inline SamplingRuleUpdate& WithServiceType(Aws::String&& value) { SetServiceType(std::move(value)); return *this;}
161 inline SamplingRuleUpdate& WithServiceType(const char* value) { SetServiceType(value); return *this;}
163
165
168 inline const Aws::String& GetHTTPMethod() const{ return m_hTTPMethod; }
169 inline bool HTTPMethodHasBeenSet() const { return m_hTTPMethodHasBeenSet; }
170 inline void SetHTTPMethod(const Aws::String& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = value; }
171 inline void SetHTTPMethod(Aws::String&& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = std::move(value); }
172 inline void SetHTTPMethod(const char* value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod.assign(value); }
173 inline SamplingRuleUpdate& WithHTTPMethod(const Aws::String& value) { SetHTTPMethod(value); return *this;}
174 inline SamplingRuleUpdate& WithHTTPMethod(Aws::String&& value) { SetHTTPMethod(std::move(value)); return *this;}
175 inline SamplingRuleUpdate& WithHTTPMethod(const char* value) { SetHTTPMethod(value); return *this;}
177
179
182 inline const Aws::String& GetURLPath() const{ return m_uRLPath; }
183 inline bool URLPathHasBeenSet() const { return m_uRLPathHasBeenSet; }
184 inline void SetURLPath(const Aws::String& value) { m_uRLPathHasBeenSet = true; m_uRLPath = value; }
185 inline void SetURLPath(Aws::String&& value) { m_uRLPathHasBeenSet = true; m_uRLPath = std::move(value); }
186 inline void SetURLPath(const char* value) { m_uRLPathHasBeenSet = true; m_uRLPath.assign(value); }
187 inline SamplingRuleUpdate& WithURLPath(const Aws::String& value) { SetURLPath(value); return *this;}
188 inline SamplingRuleUpdate& WithURLPath(Aws::String&& value) { SetURLPath(std::move(value)); return *this;}
189 inline SamplingRuleUpdate& WithURLPath(const char* value) { SetURLPath(value); return *this;}
191
193
196 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
197 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
198 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
199 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
201 inline SamplingRuleUpdate& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
202 inline SamplingRuleUpdate& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
203 inline SamplingRuleUpdate& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
204 inline SamplingRuleUpdate& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
205 inline SamplingRuleUpdate& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
206 inline SamplingRuleUpdate& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
207 inline SamplingRuleUpdate& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
208 inline SamplingRuleUpdate& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
210 private:
211
212 Aws::String m_ruleName;
213 bool m_ruleNameHasBeenSet = false;
214
215 Aws::String m_ruleARN;
216 bool m_ruleARNHasBeenSet = false;
217
218 Aws::String m_resourceARN;
219 bool m_resourceARNHasBeenSet = false;
220
221 int m_priority;
222 bool m_priorityHasBeenSet = false;
223
224 double m_fixedRate;
225 bool m_fixedRateHasBeenSet = false;
226
227 int m_reservoirSize;
228 bool m_reservoirSizeHasBeenSet = false;
229
230 Aws::String m_host;
231 bool m_hostHasBeenSet = false;
232
233 Aws::String m_serviceName;
234 bool m_serviceNameHasBeenSet = false;
235
236 Aws::String m_serviceType;
237 bool m_serviceTypeHasBeenSet = false;
238
239 Aws::String m_hTTPMethod;
240 bool m_hTTPMethodHasBeenSet = false;
241
242 Aws::String m_uRLPath;
243 bool m_uRLPathHasBeenSet = false;
244
246 bool m_attributesHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace XRay
251} // namespace Aws
void SetURLPath(const Aws::String &value)
SamplingRuleUpdate & WithFixedRate(double value)
SamplingRuleUpdate & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SamplingRuleUpdate & WithResourceARN(Aws::String &&value)
const Aws::String & GetServiceName() const
void SetResourceARN(Aws::String &&value)
void SetRuleName(Aws::String &&value)
SamplingRuleUpdate & WithServiceName(const char *value)
void SetRuleName(const Aws::String &value)
SamplingRuleUpdate & WithRuleName(Aws::String &&value)
SamplingRuleUpdate & AddAttributes(const char *key, Aws::String &&value)
SamplingRuleUpdate & WithHTTPMethod(const char *value)
void SetServiceType(const Aws::String &value)
SamplingRuleUpdate & WithServiceType(const char *value)
SamplingRuleUpdate & AddAttributes(const Aws::String &key, const Aws::String &value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetHTTPMethod() const
SamplingRuleUpdate & WithHTTPMethod(const Aws::String &value)
SamplingRuleUpdate & WithRuleARN(const char *value)
void SetHTTPMethod(Aws::String &&value)
SamplingRuleUpdate & WithHost(const Aws::String &value)
SamplingRuleUpdate & AddAttributes(Aws::String &&key, const Aws::String &value)
const Aws::String & GetURLPath() const
void SetHost(const Aws::String &value)
void SetResourceARN(const Aws::String &value)
SamplingRuleUpdate & WithRuleARN(Aws::String &&value)
SamplingRuleUpdate & WithResourceARN(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetServiceName(Aws::String &&value)
AWS_XRAY_API SamplingRuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingRuleUpdate & AddAttributes(Aws::String &&key, const char *value)
SamplingRuleUpdate & AddAttributes(Aws::String &&key, Aws::String &&value)
SamplingRuleUpdate & WithPriority(int value)
const Aws::String & GetHost() const
SamplingRuleUpdate & WithHost(const char *value)
SamplingRuleUpdate & WithRuleARN(const Aws::String &value)
AWS_XRAY_API SamplingRuleUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(const Aws::String &value)
SamplingRuleUpdate & WithHTTPMethod(Aws::String &&value)
SamplingRuleUpdate & AddAttributes(const Aws::String &key, Aws::String &&value)
SamplingRuleUpdate & WithServiceType(const Aws::String &value)
SamplingRuleUpdate & WithURLPath(const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SamplingRuleUpdate & WithRuleName(const char *value)
const Aws::String & GetResourceARN() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SamplingRuleUpdate & AddAttributes(const char *key, const char *value)
SamplingRuleUpdate & WithReservoirSize(int value)
SamplingRuleUpdate & WithURLPath(const Aws::String &value)
SamplingRuleUpdate & WithRuleName(const Aws::String &value)
SamplingRuleUpdate & WithResourceARN(const char *value)
SamplingRuleUpdate & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SamplingRuleUpdate & WithServiceName(const Aws::String &value)
void SetServiceType(Aws::String &&value)
void SetHTTPMethod(const Aws::String &value)
const Aws::String & GetServiceType() const
SamplingRuleUpdate & WithURLPath(Aws::String &&value)
const Aws::String & GetRuleName() const
SamplingRuleUpdate & WithHost(Aws::String &&value)
SamplingRuleUpdate & WithServiceType(Aws::String &&value)
SamplingRuleUpdate & WithServiceName(Aws::String &&value)
void SetRuleARN(const Aws::String &value)
const Aws::String & GetRuleARN() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue