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>
49 template<
typename RuleNameT = Aws::String>
50 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet =
true; m_ruleName = std::forward<RuleNameT>(value); }
51 template<
typename RuleNameT = Aws::String>
62 template<
typename RuleARNT = Aws::String>
63 void SetRuleARN(RuleARNT&& value) { m_ruleARNHasBeenSet =
true; m_ruleARN = std::forward<RuleARNT>(value); }
64 template<
typename RuleARNT = Aws::String>
75 template<
typename ResourceARNT = Aws::String>
76 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet =
true; m_resourceARN = std::forward<ResourceARNT>(value); }
77 template<
typename ResourceARNT = Aws::String>
87 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
98 inline void SetFixedRate(
double value) { m_fixedRateHasBeenSet =
true; m_fixedRate = value; }
110 inline void SetReservoirSize(
int value) { m_reservoirSizeHasBeenSet =
true; m_reservoirSize = value; }
120 template<
typename HostT = Aws::String>
121 void SetHost(HostT&& value) { m_hostHasBeenSet =
true; m_host = std::forward<HostT>(value); }
122 template<
typename HostT = Aws::String>
133 template<
typename ServiceNameT = Aws::String>
134 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet =
true; m_serviceName = std::forward<ServiceNameT>(value); }
135 template<
typename ServiceNameT = Aws::String>
146 template<
typename ServiceTypeT = Aws::String>
147 void SetServiceType(ServiceTypeT&& value) { m_serviceTypeHasBeenSet =
true; m_serviceType = std::forward<ServiceTypeT>(value); }
148 template<
typename ServiceTypeT = Aws::String>
158 template<
typename HTTPMethodT = Aws::String>
159 void SetHTTPMethod(HTTPMethodT&& value) { m_hTTPMethodHasBeenSet =
true; m_hTTPMethod = std::forward<HTTPMethodT>(value); }
160 template<
typename HTTPMethodT = Aws::String>
170 template<
typename URLPathT = Aws::String>
171 void SetURLPath(URLPathT&& value) { m_uRLPathHasBeenSet =
true; m_uRLPath = std::forward<URLPathT>(value); }
172 template<
typename URLPathT = Aws::String>
182 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
183 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
184 template<
typename AttributesT = Aws::Map<Aws::String, Aws::String>>
186 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::String>
188 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
194 bool m_ruleNameHasBeenSet =
false;
197 bool m_ruleARNHasBeenSet =
false;
200 bool m_resourceARNHasBeenSet =
false;
203 bool m_priorityHasBeenSet =
false;
205 double m_fixedRate{0.0};
206 bool m_fixedRateHasBeenSet =
false;
208 int m_reservoirSize{0};
209 bool m_reservoirSizeHasBeenSet =
false;
212 bool m_hostHasBeenSet =
false;
215 bool m_serviceNameHasBeenSet =
false;
218 bool m_serviceTypeHasBeenSet =
false;
221 bool m_hTTPMethodHasBeenSet =
false;
224 bool m_uRLPathHasBeenSet =
false;
227 bool m_attributesHasBeenSet =
false;
SamplingRuleUpdate & WithFixedRate(double value)
const Aws::String & GetServiceName() const
void SetServiceName(ServiceNameT &&value)
void SetHost(HostT &&value)
bool HostHasBeenSet() const
bool ReservoirSizeHasBeenSet() const
void SetAttributes(AttributesT &&value)
void SetURLPath(URLPathT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool RuleARNHasBeenSet() const
const Aws::String & GetHTTPMethod() const
SamplingRuleUpdate & WithHost(HostT &&value)
SamplingRuleUpdate & WithAttributes(AttributesT &&value)
const Aws::String & GetURLPath() const
void SetServiceType(ServiceTypeT &&value)
bool ServiceNameHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
bool FixedRateHasBeenSet() const
AWS_XRAY_API SamplingRuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HTTPMethodHasBeenSet() const
bool URLPathHasBeenSet() const
SamplingRuleUpdate & WithPriority(int value)
SamplingRuleUpdate & WithURLPath(URLPathT &&value)
const Aws::String & GetHost() const
bool RuleNameHasBeenSet() const
bool ResourceARNHasBeenSet() const
AWS_XRAY_API SamplingRuleUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetFixedRate(double value)
bool PriorityHasBeenSet() const
AWS_XRAY_API SamplingRuleUpdate()=default
SamplingRuleUpdate & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
bool ServiceTypeHasBeenSet() const
const Aws::String & GetResourceARN() const
SamplingRuleUpdate & WithReservoirSize(int value)
void SetHTTPMethod(HTTPMethodT &&value)
void SetRuleARN(RuleARNT &&value)
void SetReservoirSize(int value)
int GetReservoirSize() const
SamplingRuleUpdate & WithRuleName(RuleNameT &&value)
SamplingRuleUpdate & WithRuleARN(RuleARNT &&value)
void SetResourceARN(ResourceARNT &&value)
double GetFixedRate() const
SamplingRuleUpdate & WithResourceARN(ResourceARNT &&value)
void SetRuleName(RuleNameT &&value)
SamplingRuleUpdate & WithHTTPMethod(HTTPMethodT &&value)
void SetPriority(int value)
const Aws::String & GetServiceType() const
const Aws::String & GetRuleName() const
bool AttributesHasBeenSet() 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