AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
MetadataAttributeSchema.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/AttributeType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BEDROCK_API MetadataAttributeSchema() = default;
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 template<typename KeyT = Aws::String>
52 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
53 template<typename KeyT = Aws::String>
54 MetadataAttributeSchema& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
56
58
62 inline AttributeType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(AttributeType value) { m_typeHasBeenSet = true; m_type = value; }
65 inline MetadataAttributeSchema& WithType(AttributeType value) { SetType(value); return *this;}
67
69
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 MetadataAttributeSchema& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80 private:
81
82 Aws::String m_key;
83 bool m_keyHasBeenSet = false;
84
86 bool m_typeHasBeenSet = false;
87
88 Aws::String m_description;
89 bool m_descriptionHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Bedrock
94} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue