AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DocumentAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/DocumentAttributeValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
32 public:
33 AWS_KENDRA_API DocumentAttribute() = default;
36 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetKey() const { return m_key; }
43 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
44 template <typename KeyT = Aws::String>
45 void SetKey(KeyT&& value) {
46 m_keyHasBeenSet = true;
47 m_key = std::forward<KeyT>(value);
48 }
49 template <typename KeyT = Aws::String>
50 DocumentAttribute& WithKey(KeyT&& value) {
51 SetKey(std::forward<KeyT>(value));
52 return *this;
53 }
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) {
64 m_valueHasBeenSet = true;
65 m_value = std::forward<ValueT>(value);
66 }
67 template <typename ValueT = DocumentAttributeValue>
68 DocumentAttribute& WithValue(ValueT&& value) {
69 SetValue(std::forward<ValueT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_key;
75
77 bool m_keyHasBeenSet = false;
78 bool m_valueHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace kendra
83} // 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