AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AnnotationValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.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
29 public:
30 AWS_XRAY_API AnnotationValue() = default;
34
36
39 inline double GetNumberValue() const { return m_numberValue; }
40 inline bool NumberValueHasBeenSet() const { return m_numberValueHasBeenSet; }
41 inline void SetNumberValue(double value) {
42 m_numberValueHasBeenSet = true;
43 m_numberValue = value;
44 }
45 inline AnnotationValue& WithNumberValue(double value) {
46 SetNumberValue(value);
47 return *this;
48 }
50
52
55 inline bool GetBooleanValue() const { return m_booleanValue; }
56 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
57 inline void SetBooleanValue(bool value) {
58 m_booleanValueHasBeenSet = true;
59 m_booleanValue = value;
60 }
61 inline AnnotationValue& WithBooleanValue(bool value) {
62 SetBooleanValue(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetStringValue() const { return m_stringValue; }
72 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
73 template <typename StringValueT = Aws::String>
74 void SetStringValue(StringValueT&& value) {
75 m_stringValueHasBeenSet = true;
76 m_stringValue = std::forward<StringValueT>(value);
77 }
78 template <typename StringValueT = Aws::String>
79 AnnotationValue& WithStringValue(StringValueT&& value) {
80 SetStringValue(std::forward<StringValueT>(value));
81 return *this;
82 }
84 private:
85 double m_numberValue{0.0};
86
87 bool m_booleanValue{false};
88
89 Aws::String m_stringValue;
90 bool m_numberValueHasBeenSet = false;
91 bool m_booleanValueHasBeenSet = false;
92 bool m_stringValueHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace XRay
97} // namespace Aws
AWS_XRAY_API AnnotationValue(Aws::Utils::Json::JsonView jsonValue)
void SetStringValue(StringValueT &&value)
AWS_XRAY_API AnnotationValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStringValue() const
AWS_XRAY_API AnnotationValue()=default
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AnnotationValue & WithNumberValue(double value)
AnnotationValue & WithStringValue(StringValueT &&value)
AnnotationValue & WithBooleanValue(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue