AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
MetadataAttributeValue.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/MetadataValueType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENT_API MetadataAttributeValue() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline MetadataValueType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(MetadataValueType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline double GetNumberValue() const { return m_numberValue; }
58 inline bool NumberValueHasBeenSet() const { return m_numberValueHasBeenSet; }
59 inline void SetNumberValue(double value) {
60 m_numberValueHasBeenSet = true;
61 m_numberValue = value;
62 }
64 SetNumberValue(value);
65 return *this;
66 }
68
70
73 inline bool GetBooleanValue() const { return m_booleanValue; }
74 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
75 inline void SetBooleanValue(bool value) {
76 m_booleanValueHasBeenSet = true;
77 m_booleanValue = value;
78 }
80 SetBooleanValue(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetStringValue() const { return m_stringValue; }
90 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
91 template <typename StringValueT = Aws::String>
93 m_stringValueHasBeenSet = true;
94 m_stringValue = std::forward<StringValueT>(value);
95 }
96 template <typename StringValueT = Aws::String>
98 SetStringValue(std::forward<StringValueT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Vector<Aws::String>& GetStringListValue() const { return m_stringListValue; }
108 inline bool StringListValueHasBeenSet() const { return m_stringListValueHasBeenSet; }
109 template <typename StringListValueT = Aws::Vector<Aws::String>>
111 m_stringListValueHasBeenSet = true;
112 m_stringListValue = std::forward<StringListValueT>(value);
113 }
114 template <typename StringListValueT = Aws::Vector<Aws::String>>
116 SetStringListValue(std::forward<StringListValueT>(value));
117 return *this;
118 }
119 template <typename StringListValueT = Aws::String>
121 m_stringListValueHasBeenSet = true;
122 m_stringListValue.emplace_back(std::forward<StringListValueT>(value));
123 return *this;
124 }
126 private:
128
129 double m_numberValue{0.0};
130
131 bool m_booleanValue{false};
132
133 Aws::String m_stringValue;
134
135 Aws::Vector<Aws::String> m_stringListValue;
136 bool m_typeHasBeenSet = false;
137 bool m_numberValueHasBeenSet = false;
138 bool m_booleanValueHasBeenSet = false;
139 bool m_stringValueHasBeenSet = false;
140 bool m_stringListValueHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace BedrockAgent
145} // namespace Aws
MetadataAttributeValue & WithStringListValue(StringListValueT &&value)
AWS_BEDROCKAGENT_API MetadataAttributeValue()=default
MetadataAttributeValue & WithBooleanValue(bool value)
const Aws::Vector< Aws::String > & GetStringListValue() const
MetadataAttributeValue & WithStringValue(StringValueT &&value)
AWS_BEDROCKAGENT_API MetadataAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MetadataAttributeValue & AddStringListValue(StringListValueT &&value)
AWS_BEDROCKAGENT_API MetadataAttributeValue(Aws::Utils::Json::JsonView jsonValue)
MetadataAttributeValue & WithNumberValue(double value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
MetadataAttributeValue & WithType(MetadataValueType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue