AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SamplingBoost.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/xray/XRay_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace XRay {
20namespace Model {
21
31 public:
32 AWS_XRAY_API SamplingBoost() = default;
36
38
41 inline double GetBoostRate() const { return m_boostRate; }
42 inline bool BoostRateHasBeenSet() const { return m_boostRateHasBeenSet; }
43 inline void SetBoostRate(double value) {
44 m_boostRateHasBeenSet = true;
45 m_boostRate = value;
46 }
47 inline SamplingBoost& WithBoostRate(double value) {
48 SetBoostRate(value);
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetBoostRateTTL() const { return m_boostRateTTL; }
58 inline bool BoostRateTTLHasBeenSet() const { return m_boostRateTTLHasBeenSet; }
59 template <typename BoostRateTTLT = Aws::Utils::DateTime>
60 void SetBoostRateTTL(BoostRateTTLT&& value) {
61 m_boostRateTTLHasBeenSet = true;
62 m_boostRateTTL = std::forward<BoostRateTTLT>(value);
63 }
64 template <typename BoostRateTTLT = Aws::Utils::DateTime>
65 SamplingBoost& WithBoostRateTTL(BoostRateTTLT&& value) {
66 SetBoostRateTTL(std::forward<BoostRateTTLT>(value));
67 return *this;
68 }
70 private:
71 double m_boostRate{0.0};
72
73 Aws::Utils::DateTime m_boostRateTTL{};
74 bool m_boostRateHasBeenSet = false;
75 bool m_boostRateTTLHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace XRay
80} // namespace Aws
SamplingBoost & WithBoostRate(double value)
AWS_XRAY_API SamplingBoost()=default
void SetBoostRateTTL(BoostRateTTLT &&value)
AWS_XRAY_API SamplingBoost(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetBoostRateTTL() const
AWS_XRAY_API SamplingBoost & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBoostRate(double value)
SamplingBoost & WithBoostRateTTL(BoostRateTTLT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue