AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
SamplingRateBoost.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace XRay
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_XRAY_API SamplingRateBoost() = default;
37
38
40
44 inline double GetMaxRate() const { return m_maxRate; }
45 inline bool MaxRateHasBeenSet() const { return m_maxRateHasBeenSet; }
46 inline void SetMaxRate(double value) { m_maxRateHasBeenSet = true; m_maxRate = value; }
47 inline SamplingRateBoost& WithMaxRate(double value) { SetMaxRate(value); return *this;}
49
51
56 inline int GetCooldownWindowMinutes() const { return m_cooldownWindowMinutes; }
57 inline bool CooldownWindowMinutesHasBeenSet() const { return m_cooldownWindowMinutesHasBeenSet; }
58 inline void SetCooldownWindowMinutes(int value) { m_cooldownWindowMinutesHasBeenSet = true; m_cooldownWindowMinutes = value; }
59 inline SamplingRateBoost& WithCooldownWindowMinutes(int value) { SetCooldownWindowMinutes(value); return *this;}
61 private:
62
63 double m_maxRate{0.0};
64 bool m_maxRateHasBeenSet = false;
65
66 int m_cooldownWindowMinutes{0};
67 bool m_cooldownWindowMinutesHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace XRay
72} // namespace Aws
AWS_XRAY_API SamplingRateBoost()=default
AWS_XRAY_API SamplingRateBoost & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingRateBoost & WithMaxRate(double value)
SamplingRateBoost & WithCooldownWindowMinutes(int value)
AWS_XRAY_API SamplingRateBoost(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue