AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
SamplingBoost.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_XRAY_API SamplingBoost() = default;
41
42
44
47 inline double GetBoostRate() const { return m_boostRate; }
48 inline bool BoostRateHasBeenSet() const { return m_boostRateHasBeenSet; }
49 inline void SetBoostRate(double value) { m_boostRateHasBeenSet = true; m_boostRate = value; }
50 inline SamplingBoost& WithBoostRate(double value) { SetBoostRate(value); return *this;}
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) { m_boostRateTTLHasBeenSet = true; m_boostRateTTL = std::forward<BoostRateTTLT>(value); }
61 template<typename BoostRateTTLT = Aws::Utils::DateTime>
62 SamplingBoost& WithBoostRateTTL(BoostRateTTLT&& value) { SetBoostRateTTL(std::forward<BoostRateTTLT>(value)); return *this;}
64 private:
65
66 double m_boostRate{0.0};
67 bool m_boostRateHasBeenSet = false;
68
69 Aws::Utils::DateTime m_boostRateTTL{};
70 bool m_boostRateTTLHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace XRay
75} // 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