AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProbabilisticRuleValue.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 ProbabilisticRuleValue() = default;
37
38
40
44 inline double GetDesiredSamplingPercentage() const { return m_desiredSamplingPercentage; }
45 inline bool DesiredSamplingPercentageHasBeenSet() const { return m_desiredSamplingPercentageHasBeenSet; }
46 inline void SetDesiredSamplingPercentage(double value) { m_desiredSamplingPercentageHasBeenSet = true; m_desiredSamplingPercentage = value; }
49
51
54 inline double GetActualSamplingPercentage() const { return m_actualSamplingPercentage; }
55 inline bool ActualSamplingPercentageHasBeenSet() const { return m_actualSamplingPercentageHasBeenSet; }
56 inline void SetActualSamplingPercentage(double value) { m_actualSamplingPercentageHasBeenSet = true; m_actualSamplingPercentage = value; }
59 private:
60
61 double m_desiredSamplingPercentage{0.0};
62 bool m_desiredSamplingPercentageHasBeenSet = false;
63
64 double m_actualSamplingPercentage{0.0};
65 bool m_actualSamplingPercentageHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace XRay
70} // namespace Aws
ProbabilisticRuleValue & WithActualSamplingPercentage(double value)
AWS_XRAY_API ProbabilisticRuleValue(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API ProbabilisticRuleValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
ProbabilisticRuleValue & WithDesiredSamplingPercentage(double value)
AWS_XRAY_API ProbabilisticRuleValue()=default
Aws::Utils::Json::JsonValue JsonValue