AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DocumentAttribute.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/DocumentAttributeValue.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 kendra
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_KENDRA_API DocumentAttribute() = default;
41 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetKey() const { return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 template<typename KeyT = Aws::String>
51 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
52 template<typename KeyT = Aws::String>
53 DocumentAttribute& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
55
57
60 inline const DocumentAttributeValue& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template<typename ValueT = DocumentAttributeValue>
63 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
64 template<typename ValueT = DocumentAttributeValue>
65 DocumentAttribute& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
67 private:
68
69 Aws::String m_key;
70 bool m_keyHasBeenSet = false;
71
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace kendra
78} // namespace Aws
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API DocumentAttribute()=default
AWS_KENDRA_API DocumentAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
DocumentAttribute & WithValue(ValueT &&value)
AWS_KENDRA_API DocumentAttribute(Aws::Utils::Json::JsonView jsonValue)
DocumentAttribute & WithKey(KeyT &&value)
const DocumentAttributeValue & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue