AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SamplingRateBoost.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace XRay {
17namespace Model {
18
26 public:
27 AWS_XRAY_API SamplingRateBoost() = default;
31
33
37 inline double GetMaxRate() const { return m_maxRate; }
38 inline bool MaxRateHasBeenSet() const { return m_maxRateHasBeenSet; }
39 inline void SetMaxRate(double value) {
40 m_maxRateHasBeenSet = true;
41 m_maxRate = value;
42 }
43 inline SamplingRateBoost& WithMaxRate(double value) {
44 SetMaxRate(value);
45 return *this;
46 }
48
50
55 inline int GetCooldownWindowMinutes() const { return m_cooldownWindowMinutes; }
56 inline bool CooldownWindowMinutesHasBeenSet() const { return m_cooldownWindowMinutesHasBeenSet; }
57 inline void SetCooldownWindowMinutes(int value) {
58 m_cooldownWindowMinutesHasBeenSet = true;
59 m_cooldownWindowMinutes = value;
60 }
63 return *this;
64 }
66 private:
67 double m_maxRate{0.0};
68
69 int m_cooldownWindowMinutes{0};
70 bool m_maxRateHasBeenSet = false;
71 bool m_cooldownWindowMinutesHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace XRay
76} // 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