7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/SamplingRateBoost.h>
46 template <
typename RuleNameT = Aws::String>
48 m_ruleNameHasBeenSet =
true;
49 m_ruleName = std::forward<RuleNameT>(value);
51 template <
typename RuleNameT = Aws::String>
65 template <
typename RuleARNT = Aws::String>
67 m_ruleARNHasBeenSet =
true;
68 m_ruleARN = std::forward<RuleARNT>(value);
70 template <
typename RuleARNT = Aws::String>
84 template <
typename ResourceARNT = Aws::String>
86 m_resourceARNHasBeenSet =
true;
87 m_resourceARN = std::forward<ResourceARNT>(value);
89 template <
typename ResourceARNT = Aws::String>
103 m_priorityHasBeenSet =
true;
120 m_fixedRateHasBeenSet =
true;
138 m_reservoirSizeHasBeenSet =
true;
139 m_reservoirSize = value;
154 template <
typename ServiceNameT = Aws::String>
156 m_serviceNameHasBeenSet =
true;
157 m_serviceName = std::forward<ServiceNameT>(value);
159 template <
typename ServiceNameT = Aws::String>
173 template <
typename ServiceTypeT = Aws::String>
175 m_serviceTypeHasBeenSet =
true;
176 m_serviceType = std::forward<ServiceTypeT>(value);
178 template <
typename ServiceTypeT = Aws::String>
191 template <
typename HostT = Aws::String>
193 m_hostHasBeenSet =
true;
194 m_host = std::forward<HostT>(value);
196 template <
typename HostT = Aws::String>
198 SetHost(std::forward<HostT>(value));
209 template <
typename HTTPMethodT = Aws::String>
211 m_hTTPMethodHasBeenSet =
true;
212 m_hTTPMethod = std::forward<HTTPMethodT>(value);
214 template <
typename HTTPMethodT = Aws::String>
227 template <
typename URLPathT = Aws::String>
229 m_uRLPathHasBeenSet =
true;
230 m_uRLPath = std::forward<URLPathT>(value);
232 template <
typename URLPathT = Aws::String>
246 m_versionHasBeenSet =
true;
261 template <
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
263 m_attributesHasBeenSet =
true;
264 m_attributes = std::forward<AttributesT>(value);
266 template <
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
271 template <
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
273 m_attributesHasBeenSet =
true;
274 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
287 template <
typename SamplingRateBoostT = SamplingRateBoost>
289 m_samplingRateBoostHasBeenSet =
true;
290 m_samplingRateBoost = std::forward<SamplingRateBoostT>(value);
292 template <
typename SamplingRateBoostT = SamplingRateBoost>
300 bool m_ruleNameHasBeenSet =
false;
303 bool m_ruleARNHasBeenSet =
false;
306 bool m_resourceARNHasBeenSet =
false;
309 bool m_priorityHasBeenSet =
false;
311 double m_fixedRate{0.0};
312 bool m_fixedRateHasBeenSet =
false;
314 int m_reservoirSize{0};
315 bool m_reservoirSizeHasBeenSet =
false;
318 bool m_serviceNameHasBeenSet =
false;
321 bool m_serviceTypeHasBeenSet =
false;
324 bool m_hostHasBeenSet =
false;
327 bool m_hTTPMethodHasBeenSet =
false;
330 bool m_uRLPathHasBeenSet =
false;
333 bool m_versionHasBeenSet =
false;
336 bool m_attributesHasBeenSet =
false;
338 SamplingRateBoost m_samplingRateBoost;
339 bool m_samplingRateBoostHasBeenSet =
false;
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingRule & WithServiceType(ServiceTypeT &&value)
bool PriorityHasBeenSet() const
SamplingRule & WithAttributes(AttributesT &&value)
void SetHTTPMethod(HTTPMethodT &&value)
SamplingRule & WithServiceName(ServiceNameT &&value)
SamplingRule & WithSamplingRateBoost(SamplingRateBoostT &&value)
const Aws::String & GetHost() const
SamplingRule & WithURLPath(URLPathT &&value)
SamplingRule & WithHTTPMethod(HTTPMethodT &&value)
SamplingRule & WithHost(HostT &&value)
bool URLPathHasBeenSet() const
SamplingRule & WithFixedRate(double value)
void SetServiceName(ServiceNameT &&value)
SamplingRule & WithVersion(int value)
const Aws::String & GetRuleName() const
void SetURLPath(URLPathT &&value)
bool AttributesHasBeenSet() const
double GetFixedRate() const
SamplingRule & WithRuleName(RuleNameT &&value)
void SetReservoirSize(int value)
void SetServiceType(ServiceTypeT &&value)
SamplingRule & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::String & GetServiceType() const
SamplingRule & WithPriority(int value)
void SetRuleName(RuleNameT &&value)
void SetRuleARN(RuleARNT &&value)
SamplingRule & WithRuleARN(RuleARNT &&value)
void SetSamplingRateBoost(SamplingRateBoostT &&value)
SamplingRule & WithReservoirSize(int value)
bool SamplingRateBoostHasBeenSet() const
AWS_XRAY_API SamplingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersion(int value)
bool ResourceARNHasBeenSet() const
const Aws::String & GetURLPath() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetResourceARN(ResourceARNT &&value)
bool FixedRateHasBeenSet() const
SamplingRule & WithResourceARN(ResourceARNT &&value)
bool RuleNameHasBeenSet() const
bool ServiceTypeHasBeenSet() const
int GetReservoirSize() const
AWS_XRAY_API SamplingRule(Aws::Utils::Json::JsonView jsonValue)
bool VersionHasBeenSet() const
void SetHost(HostT &&value)
const Aws::String & GetServiceName() const
bool ServiceNameHasBeenSet() const
bool HostHasBeenSet() const
const Aws::String & GetResourceARN() const
const Aws::String & GetRuleARN() const
void SetPriority(int value)
AWS_XRAY_API SamplingRule()=default
bool HTTPMethodHasBeenSet() const
void SetAttributes(AttributesT &&value)
bool RuleARNHasBeenSet() const
const Aws::String & GetHTTPMethod() const
void SetFixedRate(double value)
bool ReservoirSizeHasBeenSet() const
const SamplingRateBoost & GetSamplingRateBoost() 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