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>
52 template<
typename RuleNameT = Aws::String>
53 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet =
true; m_ruleName = std::forward<RuleNameT>(value); }
54 template<
typename RuleNameT = Aws::String>
65 template<
typename RuleARNT = Aws::String>
66 void SetRuleARN(RuleARNT&& value) { m_ruleARNHasBeenSet =
true; m_ruleARN = std::forward<RuleARNT>(value); }
67 template<
typename RuleARNT = Aws::String>
78 template<
typename ResourceARNT = Aws::String>
79 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet =
true; m_resourceARN = std::forward<ResourceARNT>(value); }
80 template<
typename ResourceARNT = Aws::String>
90 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
101 inline void SetFixedRate(
double value) { m_fixedRateHasBeenSet =
true; m_fixedRate = value; }
113 inline void SetReservoirSize(
int value) { m_reservoirSizeHasBeenSet =
true; m_reservoirSize = value; }
124 template<
typename ServiceNameT = Aws::String>
125 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet =
true; m_serviceName = std::forward<ServiceNameT>(value); }
126 template<
typename ServiceNameT = Aws::String>
137 template<
typename ServiceTypeT = Aws::String>
138 void SetServiceType(ServiceTypeT&& value) { m_serviceTypeHasBeenSet =
true; m_serviceType = std::forward<ServiceTypeT>(value); }
139 template<
typename ServiceTypeT = Aws::String>
149 template<
typename HostT = Aws::String>
150 void SetHost(HostT&& value) { m_hostHasBeenSet =
true; m_host = std::forward<HostT>(value); }
151 template<
typename HostT = Aws::String>
161 template<
typename HTTPMethodT = Aws::String>
162 void SetHTTPMethod(HTTPMethodT&& value) { m_hTTPMethodHasBeenSet =
true; m_hTTPMethod = std::forward<HTTPMethodT>(value); }
163 template<
typename HTTPMethodT = Aws::String>
173 template<
typename URLPathT = Aws::String>
174 void SetURLPath(URLPathT&& value) { m_uRLPathHasBeenSet =
true; m_uRLPath = std::forward<URLPathT>(value); }
175 template<
typename URLPathT = Aws::String>
185 inline void SetVersion(
int value) { m_versionHasBeenSet =
true; m_version = value; }
195 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
196 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
197 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
199 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
201 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
213 template<
typename SamplingRateBoostT = SamplingRateBoost>
214 void SetSamplingRateBoost(SamplingRateBoostT&& value) { m_samplingRateBoostHasBeenSet =
true; m_samplingRateBoost = std::forward<SamplingRateBoostT>(value); }
215 template<
typename SamplingRateBoostT = SamplingRateBoost>
221 bool m_ruleNameHasBeenSet =
false;
224 bool m_ruleARNHasBeenSet =
false;
227 bool m_resourceARNHasBeenSet =
false;
230 bool m_priorityHasBeenSet =
false;
232 double m_fixedRate{0.0};
233 bool m_fixedRateHasBeenSet =
false;
235 int m_reservoirSize{0};
236 bool m_reservoirSizeHasBeenSet =
false;
239 bool m_serviceNameHasBeenSet =
false;
242 bool m_serviceTypeHasBeenSet =
false;
245 bool m_hostHasBeenSet =
false;
248 bool m_hTTPMethodHasBeenSet =
false;
251 bool m_uRLPathHasBeenSet =
false;
254 bool m_versionHasBeenSet =
false;
257 bool m_attributesHasBeenSet =
false;
259 SamplingRateBoost m_samplingRateBoost;
260 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