AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnnotationValue.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
33 {
34 public:
35 AWS_XRAY_API AnnotationValue();
39
40
42
45 inline double GetNumberValue() const{ return m_numberValue; }
46 inline bool NumberValueHasBeenSet() const { return m_numberValueHasBeenSet; }
47 inline void SetNumberValue(double value) { m_numberValueHasBeenSet = true; m_numberValue = value; }
48 inline AnnotationValue& WithNumberValue(double value) { SetNumberValue(value); return *this;}
50
52
55 inline bool GetBooleanValue() const{ return m_booleanValue; }
56 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
57 inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
58 inline AnnotationValue& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
60
62
65 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
66 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
67 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
68 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
69 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
70 inline AnnotationValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
71 inline AnnotationValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
72 inline AnnotationValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
74 private:
75
76 double m_numberValue;
77 bool m_numberValueHasBeenSet = false;
78
79 bool m_booleanValue;
80 bool m_booleanValueHasBeenSet = false;
81
82 Aws::String m_stringValue;
83 bool m_stringValueHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace XRay
88} // namespace Aws
AWS_XRAY_API AnnotationValue(Aws::Utils::Json::JsonView jsonValue)
AnnotationValue & WithStringValue(const char *value)
AWS_XRAY_API AnnotationValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStringValue() const
AnnotationValue & WithStringValue(const Aws::String &value)
AnnotationValue & WithStringValue(Aws::String &&value)
void SetStringValue(Aws::String &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AnnotationValue & WithNumberValue(double value)
AnnotationValue & WithBooleanValue(bool value)
void SetStringValue(const char *value)
void SetStringValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue