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>
53 inline void SetRuleName(
const char* value) { m_ruleNameHasBeenSet =
true; m_ruleName.assign(value); }
68 inline void SetRuleARN(
const char* value) { m_ruleARNHasBeenSet =
true; m_ruleARN.assign(value); }
83 inline void SetResourceARN(
const char* value) { m_resourceARNHasBeenSet =
true; m_resourceARN.assign(value); }
95 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
106 inline void SetFixedRate(
double value) { m_fixedRateHasBeenSet =
true; m_fixedRate = value; }
118 inline void SetReservoirSize(
int value) { m_reservoirSizeHasBeenSet =
true; m_reservoirSize = value; }
131 inline void SetServiceName(
const char* value) { m_serviceNameHasBeenSet =
true; m_serviceName.assign(value); }
146 inline void SetServiceType(
const char* value) { m_serviceTypeHasBeenSet =
true; m_serviceType.assign(value); }
160 inline void SetHost(
const char* value) { m_hostHasBeenSet =
true; m_host.assign(value); }
174 inline void SetHTTPMethod(
const char* value) { m_hTTPMethodHasBeenSet =
true; m_hTTPMethod.assign(value); }
188 inline void SetURLPath(
const char* value) { m_uRLPathHasBeenSet =
true; m_uRLPath.assign(value); }
200 inline void SetVersion(
int value) { m_versionHasBeenSet =
true; m_version = value; }
220 inline SamplingRule&
AddAttributes(
const char* key,
const char* value) { m_attributesHasBeenSet =
true; m_attributes.emplace(key, value);
return *
this; }
225 bool m_ruleNameHasBeenSet =
false;
228 bool m_ruleARNHasBeenSet =
false;
231 bool m_resourceARNHasBeenSet =
false;
234 bool m_priorityHasBeenSet =
false;
237 bool m_fixedRateHasBeenSet =
false;
240 bool m_reservoirSizeHasBeenSet =
false;
243 bool m_serviceNameHasBeenSet =
false;
246 bool m_serviceTypeHasBeenSet =
false;
249 bool m_hostHasBeenSet =
false;
252 bool m_hTTPMethodHasBeenSet =
false;
255 bool m_uRLPathHasBeenSet =
false;
258 bool m_versionHasBeenSet =
false;
261 bool m_attributesHasBeenSet =
false;
SamplingRule & WithServiceName(Aws::String &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SamplingRule & WithServiceName(const char *value)
SamplingRule & WithHost(const Aws::String &value)
void SetRuleName(const Aws::String &value)
void SetServiceType(const Aws::String &value)
void SetRuleName(Aws::String &&value)
void SetServiceType(Aws::String &&value)
bool PriorityHasBeenSet() const
SamplingRule & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetRuleARN(const char *value)
SamplingRule & AddAttributes(Aws::String &&key, Aws::String &&value)
void SetHost(const Aws::String &value)
const Aws::String & GetHost() const
void SetURLPath(const Aws::String &value)
SamplingRule & WithServiceType(const Aws::String &value)
bool URLPathHasBeenSet() const
SamplingRule & WithRuleARN(const char *value)
SamplingRule & WithHTTPMethod(const Aws::String &value)
SamplingRule & WithFixedRate(double value)
SamplingRule & WithURLPath(const Aws::String &value)
void SetServiceType(const char *value)
SamplingRule & WithVersion(int value)
const Aws::String & GetRuleName() const
void SetResourceARN(Aws::String &&value)
void SetHTTPMethod(const char *value)
void SetServiceName(const Aws::String &value)
bool AttributesHasBeenSet() const
double GetFixedRate() const
SamplingRule & AddAttributes(const Aws::String &key, Aws::String &&value)
SamplingRule & WithHost(const char *value)
AWS_XRAY_API SamplingRule()
void SetReservoirSize(int value)
void SetHost(Aws::String &&value)
SamplingRule & WithResourceARN(Aws::String &&value)
const Aws::String & GetServiceType() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetHTTPMethod(Aws::String &&value)
SamplingRule & WithRuleName(const Aws::String &value)
SamplingRule & WithPriority(int value)
SamplingRule & WithServiceName(const Aws::String &value)
SamplingRule & AddAttributes(const char *key, Aws::String &&value)
SamplingRule & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SamplingRule & WithServiceType(const char *value)
void SetHost(const char *value)
SamplingRule & WithHost(Aws::String &&value)
SamplingRule & WithReservoirSize(int value)
void SetResourceARN(const char *value)
void SetRuleName(const char *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
SamplingRule & AddAttributes(const char *key, const char *value)
SamplingRule & AddAttributes(const Aws::String &key, const Aws::String &value)
SamplingRule & WithURLPath(const char *value)
SamplingRule & WithRuleARN(Aws::String &&value)
void SetRuleARN(const Aws::String &value)
bool FixedRateHasBeenSet() const
void SetServiceName(Aws::String &&value)
SamplingRule & WithRuleARN(const Aws::String &value)
SamplingRule & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
bool RuleNameHasBeenSet() const
bool ServiceTypeHasBeenSet() const
int GetReservoirSize() const
SamplingRule & WithHTTPMethod(Aws::String &&value)
void SetRuleARN(Aws::String &&value)
SamplingRule & WithResourceARN(const Aws::String &value)
void SetResourceARN(const Aws::String &value)
AWS_XRAY_API SamplingRule(Aws::Utils::Json::JsonView jsonValue)
bool VersionHasBeenSet() const
void SetURLPath(Aws::String &&value)
const Aws::String & GetServiceName() const
SamplingRule & AddAttributes(Aws::String &&key, const char *value)
SamplingRule & WithURLPath(Aws::String &&value)
bool ServiceNameHasBeenSet() const
void SetServiceName(const char *value)
bool HostHasBeenSet() const
const Aws::String & GetResourceARN() const
const Aws::String & GetRuleARN() const
void SetPriority(int value)
void SetHTTPMethod(const Aws::String &value)
SamplingRule & WithRuleName(Aws::String &&value)
bool HTTPMethodHasBeenSet() const
SamplingRule & WithServiceType(Aws::String &&value)
bool RuleARNHasBeenSet() const
const Aws::String & GetHTTPMethod() const
SamplingRule & WithResourceARN(const char *value)
SamplingRule & WithHTTPMethod(const char *value)
void SetFixedRate(double value)
bool ReservoirSizeHasBeenSet() const
void SetURLPath(const char *value)
SamplingRule & WithRuleName(const char *value)
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