AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SamplingTargetDocument.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_XRAY_API SamplingTargetDocument();
43
44
46
49 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
50 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
51 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
52 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
53 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
54 inline SamplingTargetDocument& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
55 inline SamplingTargetDocument& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
56 inline SamplingTargetDocument& WithRuleName(const char* value) { SetRuleName(value); return *this;}
58
60
64 inline double GetFixedRate() const{ return m_fixedRate; }
65 inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
66 inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
67 inline SamplingTargetDocument& WithFixedRate(double value) { SetFixedRate(value); return *this;}
69
71
74 inline int GetReservoirQuota() const{ return m_reservoirQuota; }
75 inline bool ReservoirQuotaHasBeenSet() const { return m_reservoirQuotaHasBeenSet; }
76 inline void SetReservoirQuota(int value) { m_reservoirQuotaHasBeenSet = true; m_reservoirQuota = value; }
77 inline SamplingTargetDocument& WithReservoirQuota(int value) { SetReservoirQuota(value); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetReservoirQuotaTTL() const{ return m_reservoirQuotaTTL; }
85 inline bool ReservoirQuotaTTLHasBeenSet() const { return m_reservoirQuotaTTLHasBeenSet; }
86 inline void SetReservoirQuotaTTL(const Aws::Utils::DateTime& value) { m_reservoirQuotaTTLHasBeenSet = true; m_reservoirQuotaTTL = value; }
87 inline void SetReservoirQuotaTTL(Aws::Utils::DateTime&& value) { m_reservoirQuotaTTLHasBeenSet = true; m_reservoirQuotaTTL = std::move(value); }
91
93
97 inline int GetInterval() const{ return m_interval; }
98 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
99 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
100 inline SamplingTargetDocument& WithInterval(int value) { SetInterval(value); return *this;}
102 private:
103
104 Aws::String m_ruleName;
105 bool m_ruleNameHasBeenSet = false;
106
107 double m_fixedRate;
108 bool m_fixedRateHasBeenSet = false;
109
110 int m_reservoirQuota;
111 bool m_reservoirQuotaHasBeenSet = false;
112
113 Aws::Utils::DateTime m_reservoirQuotaTTL;
114 bool m_reservoirQuotaTTLHasBeenSet = false;
115
116 int m_interval;
117 bool m_intervalHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace XRay
122} // namespace Aws
AWS_XRAY_API SamplingTargetDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API SamplingTargetDocument(Aws::Utils::Json::JsonView jsonValue)
SamplingTargetDocument & WithFixedRate(double value)
SamplingTargetDocument & WithReservoirQuota(int value)
SamplingTargetDocument & WithRuleName(Aws::String &&value)
SamplingTargetDocument & WithReservoirQuotaTTL(const Aws::Utils::DateTime &value)
SamplingTargetDocument & WithReservoirQuotaTTL(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetReservoirQuotaTTL() const
SamplingTargetDocument & WithRuleName(const char *value)
SamplingTargetDocument & WithInterval(int value)
SamplingTargetDocument & WithRuleName(const Aws::String &value)
void SetReservoirQuotaTTL(Aws::Utils::DateTime &&value)
void SetReservoirQuotaTTL(const Aws::Utils::DateTime &value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue