AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MetadataAttributeSchema.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AttributeType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API MetadataAttributeSchema() = default;
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetKey() const { return m_key; }
58 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
59 template <typename KeyT = Aws::String>
60 void SetKey(KeyT&& value) {
61 m_keyHasBeenSet = true;
62 m_key = std::forward<KeyT>(value);
63 }
64 template <typename KeyT = Aws::String>
66 SetKey(std::forward<KeyT>(value));
67 return *this;
68 }
70
72
75 inline AttributeType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(AttributeType value) {
78 m_typeHasBeenSet = true;
79 m_type = value;
80 }
82 SetType(value);
83 return *this;
84 }
86 private:
87 Aws::String m_description;
88
89 Aws::String m_key;
90
92 bool m_descriptionHasBeenSet = false;
93 bool m_keyHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace BedrockAgentRuntime
99} // namespace Aws
MetadataAttributeSchema & WithType(AttributeType value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API MetadataAttributeSchema(Aws::Utils::Json::JsonView jsonValue)
MetadataAttributeSchema & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API MetadataAttributeSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API MetadataAttributeSchema()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue