AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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 <aws/xray/model/SamplingRateBoost.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace XRay
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_XRAY_API SamplingRuleUpdate() = default;
41
42
44
48 inline const Aws::String& GetRuleName() const { return m_ruleName; }
49 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
50 template<typename RuleNameT = Aws::String>
51 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
52 template<typename RuleNameT = Aws::String>
53 SamplingRuleUpdate& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
55
57
61 inline const Aws::String& GetRuleARN() const { return m_ruleARN; }
62 inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
63 template<typename RuleARNT = Aws::String>
64 void SetRuleARN(RuleARNT&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::forward<RuleARNT>(value); }
65 template<typename RuleARNT = Aws::String>
66 SamplingRuleUpdate& WithRuleARN(RuleARNT&& value) { SetRuleARN(std::forward<RuleARNT>(value)); return *this;}
68
70
74 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
75 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
76 template<typename ResourceARNT = Aws::String>
77 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
78 template<typename ResourceARNT = Aws::String>
79 SamplingRuleUpdate& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
81
83
86 inline int GetPriority() const { return m_priority; }
87 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
88 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
89 inline SamplingRuleUpdate& WithPriority(int value) { SetPriority(value); return *this;}
91
93
97 inline double GetFixedRate() const { return m_fixedRate; }
98 inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
99 inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
100 inline SamplingRuleUpdate& WithFixedRate(double value) { SetFixedRate(value); return *this;}
102
104
109 inline int GetReservoirSize() const { return m_reservoirSize; }
110 inline bool ReservoirSizeHasBeenSet() const { return m_reservoirSizeHasBeenSet; }
111 inline void SetReservoirSize(int value) { m_reservoirSizeHasBeenSet = true; m_reservoirSize = value; }
112 inline SamplingRuleUpdate& WithReservoirSize(int value) { SetReservoirSize(value); return *this;}
114
116
119 inline const Aws::String& GetHost() const { return m_host; }
120 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
121 template<typename HostT = Aws::String>
122 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
123 template<typename HostT = Aws::String>
124 SamplingRuleUpdate& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
126
128
132 inline const Aws::String& GetServiceName() const { return m_serviceName; }
133 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
134 template<typename ServiceNameT = Aws::String>
135 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
136 template<typename ServiceNameT = Aws::String>
137 SamplingRuleUpdate& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
139
141
145 inline const Aws::String& GetServiceType() const { return m_serviceType; }
146 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
147 template<typename ServiceTypeT = Aws::String>
148 void SetServiceType(ServiceTypeT&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::forward<ServiceTypeT>(value); }
149 template<typename ServiceTypeT = Aws::String>
150 SamplingRuleUpdate& WithServiceType(ServiceTypeT&& value) { SetServiceType(std::forward<ServiceTypeT>(value)); return *this;}
152
154
157 inline const Aws::String& GetHTTPMethod() const { return m_hTTPMethod; }
158 inline bool HTTPMethodHasBeenSet() const { return m_hTTPMethodHasBeenSet; }
159 template<typename HTTPMethodT = Aws::String>
160 void SetHTTPMethod(HTTPMethodT&& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = std::forward<HTTPMethodT>(value); }
161 template<typename HTTPMethodT = Aws::String>
162 SamplingRuleUpdate& WithHTTPMethod(HTTPMethodT&& value) { SetHTTPMethod(std::forward<HTTPMethodT>(value)); return *this;}
164
166
169 inline const Aws::String& GetURLPath() const { return m_uRLPath; }
170 inline bool URLPathHasBeenSet() const { return m_uRLPathHasBeenSet; }
171 template<typename URLPathT = Aws::String>
172 void SetURLPath(URLPathT&& value) { m_uRLPathHasBeenSet = true; m_uRLPath = std::forward<URLPathT>(value); }
173 template<typename URLPathT = Aws::String>
174 SamplingRuleUpdate& WithURLPath(URLPathT&& value) { SetURLPath(std::forward<URLPathT>(value)); return *this;}
176
178
181 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
182 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
183 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
184 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
185 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
186 SamplingRuleUpdate& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
187 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
188 SamplingRuleUpdate& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
189 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
190 }
192
194
199 inline const SamplingRateBoost& GetSamplingRateBoost() const { return m_samplingRateBoost; }
200 inline bool SamplingRateBoostHasBeenSet() const { return m_samplingRateBoostHasBeenSet; }
201 template<typename SamplingRateBoostT = SamplingRateBoost>
202 void SetSamplingRateBoost(SamplingRateBoostT&& value) { m_samplingRateBoostHasBeenSet = true; m_samplingRateBoost = std::forward<SamplingRateBoostT>(value); }
203 template<typename SamplingRateBoostT = SamplingRateBoost>
204 SamplingRuleUpdate& WithSamplingRateBoost(SamplingRateBoostT&& value) { SetSamplingRateBoost(std::forward<SamplingRateBoostT>(value)); return *this;}
206 private:
207
208 Aws::String m_ruleName;
209 bool m_ruleNameHasBeenSet = false;
210
211 Aws::String m_ruleARN;
212 bool m_ruleARNHasBeenSet = false;
213
214 Aws::String m_resourceARN;
215 bool m_resourceARNHasBeenSet = false;
216
217 int m_priority{0};
218 bool m_priorityHasBeenSet = false;
219
220 double m_fixedRate{0.0};
221 bool m_fixedRateHasBeenSet = false;
222
223 int m_reservoirSize{0};
224 bool m_reservoirSizeHasBeenSet = false;
225
226 Aws::String m_host;
227 bool m_hostHasBeenSet = false;
228
229 Aws::String m_serviceName;
230 bool m_serviceNameHasBeenSet = false;
231
232 Aws::String m_serviceType;
233 bool m_serviceTypeHasBeenSet = false;
234
235 Aws::String m_hTTPMethod;
236 bool m_hTTPMethodHasBeenSet = false;
237
238 Aws::String m_uRLPath;
239 bool m_uRLPathHasBeenSet = false;
240
242 bool m_attributesHasBeenSet = false;
243
244 SamplingRateBoost m_samplingRateBoost;
245 bool m_samplingRateBoostHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace XRay
250} // namespace Aws
SamplingRuleUpdate & WithFixedRate(double value)
const Aws::String & GetServiceName() const
void SetServiceName(ServiceNameT &&value)
void SetAttributes(AttributesT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetHTTPMethod() const
SamplingRuleUpdate & WithHost(HostT &&value)
SamplingRuleUpdate & WithAttributes(AttributesT &&value)
const Aws::String & GetURLPath() const
void SetServiceType(ServiceTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_XRAY_API SamplingRuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSamplingRateBoost(SamplingRateBoostT &&value)
SamplingRuleUpdate & WithPriority(int value)
SamplingRuleUpdate & WithURLPath(URLPathT &&value)
const Aws::String & GetHost() const
AWS_XRAY_API SamplingRuleUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API SamplingRuleUpdate()=default
SamplingRuleUpdate & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::String & GetResourceARN() const
SamplingRuleUpdate & WithReservoirSize(int value)
void SetHTTPMethod(HTTPMethodT &&value)
SamplingRuleUpdate & WithRuleName(RuleNameT &&value)
SamplingRuleUpdate & WithRuleARN(RuleARNT &&value)
void SetResourceARN(ResourceARNT &&value)
SamplingRuleUpdate & WithResourceARN(ResourceARNT &&value)
SamplingRuleUpdate & WithSamplingRateBoost(SamplingRateBoostT &&value)
SamplingRuleUpdate & WithHTTPMethod(HTTPMethodT &&value)
const Aws::String & GetServiceType() const
const Aws::String & GetRuleName() const
const SamplingRateBoost & GetSamplingRateBoost() const
SamplingRuleUpdate & WithServiceType(ServiceTypeT &&value)
SamplingRuleUpdate & WithServiceName(ServiceNameT &&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