AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
MetadataAttributeSchema.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/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 Bedrock {
21namespace Model {
22
32 public:
33 AWS_BEDROCK_API MetadataAttributeSchema() = default;
36 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetKey() const { return m_key; }
44 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
45 template <typename KeyT = Aws::String>
46 void SetKey(KeyT&& value) {
47 m_keyHasBeenSet = true;
48 m_key = std::forward<KeyT>(value);
49 }
50 template <typename KeyT = Aws::String>
52 SetKey(std::forward<KeyT>(value));
53 return *this;
54 }
56
58
62 inline AttributeType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(AttributeType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_key;
94
96
97 Aws::String m_description;
98 bool m_keyHasBeenSet = false;
99 bool m_typeHasBeenSet = false;
100 bool m_descriptionHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Bedrock
105} // namespace Aws
MetadataAttributeSchema & WithType(AttributeType value)
AWS_BEDROCK_API MetadataAttributeSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API MetadataAttributeSchema(Aws::Utils::Json::JsonView jsonValue)
MetadataAttributeSchema & WithKey(KeyT &&value)
MetadataAttributeSchema & WithDescription(DescriptionT &&value)
AWS_BEDROCK_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