AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
43
44
46
49 inline const Aws::String& GetRuleName() const { return m_ruleName; }
50 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
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>
54 SamplingTargetDocument& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
56
58
62 inline double GetFixedRate() const { return m_fixedRate; }
63 inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
64 inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
65 inline SamplingTargetDocument& WithFixedRate(double value) { SetFixedRate(value); return *this;}
67
69
72 inline int GetReservoirQuota() const { return m_reservoirQuota; }
73 inline bool ReservoirQuotaHasBeenSet() const { return m_reservoirQuotaHasBeenSet; }
74 inline void SetReservoirQuota(int value) { m_reservoirQuotaHasBeenSet = true; m_reservoirQuota = value; }
75 inline SamplingTargetDocument& WithReservoirQuota(int value) { SetReservoirQuota(value); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetReservoirQuotaTTL() const { return m_reservoirQuotaTTL; }
83 inline bool ReservoirQuotaTTLHasBeenSet() const { return m_reservoirQuotaTTLHasBeenSet; }
84 template<typename ReservoirQuotaTTLT = Aws::Utils::DateTime>
85 void SetReservoirQuotaTTL(ReservoirQuotaTTLT&& value) { m_reservoirQuotaTTLHasBeenSet = true; m_reservoirQuotaTTL = std::forward<ReservoirQuotaTTLT>(value); }
86 template<typename ReservoirQuotaTTLT = Aws::Utils::DateTime>
87 SamplingTargetDocument& WithReservoirQuotaTTL(ReservoirQuotaTTLT&& value) { SetReservoirQuotaTTL(std::forward<ReservoirQuotaTTLT>(value)); return *this;}
89
91
95 inline int GetInterval() const { return m_interval; }
96 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
97 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
98 inline SamplingTargetDocument& WithInterval(int value) { SetInterval(value); return *this;}
100 private:
101
102 Aws::String m_ruleName;
103 bool m_ruleNameHasBeenSet = false;
104
105 double m_fixedRate{0.0};
106 bool m_fixedRateHasBeenSet = false;
107
108 int m_reservoirQuota{0};
109 bool m_reservoirQuotaHasBeenSet = false;
110
111 Aws::Utils::DateTime m_reservoirQuotaTTL{};
112 bool m_reservoirQuotaTTLHasBeenSet = false;
113
114 int m_interval{0};
115 bool m_intervalHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace XRay
120} // 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)
const Aws::Utils::DateTime & GetReservoirQuotaTTL() const
AWS_XRAY_API SamplingTargetDocument()=default
SamplingTargetDocument & WithInterval(int value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingTargetDocument & WithReservoirQuotaTTL(ReservoirQuotaTTLT &&value)
void SetReservoirQuotaTTL(ReservoirQuotaTTLT &&value)
SamplingTargetDocument & WithRuleName(RuleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue