AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SamplingStrategy.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/model/SamplingStrategyName.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
29 public:
30 AWS_XRAY_API SamplingStrategy() = default;
34
36
39 inline SamplingStrategyName GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 inline void SetName(SamplingStrategyName value) {
42 m_nameHasBeenSet = true;
43 m_name = value;
44 }
46 SetName(value);
47 return *this;
48 }
50
52
55 inline double GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(double value) {
58 m_valueHasBeenSet = true;
59 m_value = value;
60 }
61 inline SamplingStrategy& WithValue(double value) {
62 SetValue(value);
63 return *this;
64 }
66 private:
68 bool m_nameHasBeenSet = false;
69
70 double m_value{0.0};
71 bool m_valueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace XRay
76} // namespace Aws
AWS_XRAY_API SamplingStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API SamplingStrategy()=default
void SetName(SamplingStrategyName value)
SamplingStrategy & WithName(SamplingStrategyName value)
SamplingStrategyName GetName() const
AWS_XRAY_API SamplingStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingStrategy & WithValue(double value)
Aws::Utils::Json::JsonValue JsonValue