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>
51 template<
typename RuleNameT = Aws::String>
52 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet =
true; m_ruleName = std::forward<RuleNameT>(value); }
53 template<
typename RuleNameT = Aws::String>
64 template<
typename RuleARNT = Aws::String>
65 void SetRuleARN(RuleARNT&& value) { m_ruleARNHasBeenSet =
true; m_ruleARN = std::forward<RuleARNT>(value); }
66 template<
typename RuleARNT = Aws::String>
77 template<
typename ResourceARNT = Aws::String>
78 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet =
true; m_resourceARN = std::forward<ResourceARNT>(value); }
79 template<
typename ResourceARNT = Aws::String>
89 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
100 inline void SetFixedRate(
double value) { m_fixedRateHasBeenSet =
true; m_fixedRate = value; }
112 inline void SetReservoirSize(
int value) { m_reservoirSizeHasBeenSet =
true; m_reservoirSize = value; }
123 template<
typename ServiceNameT = Aws::String>
124 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet =
true; m_serviceName = std::forward<ServiceNameT>(value); }
125 template<
typename ServiceNameT = Aws::String>
136 template<
typename ServiceTypeT = Aws::String>
137 void SetServiceType(ServiceTypeT&& value) { m_serviceTypeHasBeenSet =
true; m_serviceType = std::forward<ServiceTypeT>(value); }
138 template<
typename ServiceTypeT = Aws::String>
148 template<
typename HostT = Aws::String>
149 void SetHost(HostT&& value) { m_hostHasBeenSet =
true; m_host = std::forward<HostT>(value); }
150 template<
typename HostT = Aws::String>
160 template<
typename HTTPMethodT = Aws::String>
161 void SetHTTPMethod(HTTPMethodT&& value) { m_hTTPMethodHasBeenSet =
true; m_hTTPMethod = std::forward<HTTPMethodT>(value); }
162 template<
typename HTTPMethodT = Aws::String>
172 template<
typename URLPathT = Aws::String>
173 void SetURLPath(URLPathT&& value) { m_uRLPathHasBeenSet =
true; m_uRLPath = std::forward<URLPathT>(value); }
174 template<
typename URLPathT = Aws::String>
184 inline void SetVersion(
int value) { m_versionHasBeenSet =
true; m_version = value; }
194 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
195 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
196 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
198 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
200 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
206 bool m_ruleNameHasBeenSet =
false;
209 bool m_ruleARNHasBeenSet =
false;
212 bool m_resourceARNHasBeenSet =
false;
215 bool m_priorityHasBeenSet =
false;
217 double m_fixedRate{0.0};
218 bool m_fixedRateHasBeenSet =
false;
220 int m_reservoirSize{0};
221 bool m_reservoirSizeHasBeenSet =
false;
224 bool m_serviceNameHasBeenSet =
false;
227 bool m_serviceTypeHasBeenSet =
false;
230 bool m_hostHasBeenSet =
false;
233 bool m_hTTPMethodHasBeenSet =
false;
236 bool m_uRLPathHasBeenSet =
false;
239 bool m_versionHasBeenSet =
false;
242 bool m_attributesHasBeenSet =
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)
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)
SamplingRule & WithReservoirSize(int value)
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
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