AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
PromptMetadataEntry.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent {
20namespace Model {
21
31 public:
32 AWS_BEDROCKAGENT_API PromptMetadataEntry() = default;
33 AWS_BEDROCKAGENT_API PromptMetadataEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
67 PromptMetadataEntry& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_key;
74 bool m_keyHasBeenSet = false;
75
76 Aws::String m_value;
77 bool m_valueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace BedrockAgent
82} // namespace Aws
bool ValueHasBeenSet() const
PromptMetadataEntry & WithKey(KeyT &&value)
PromptMetadataEntry & WithValue(ValueT &&value)
AWS_BEDROCKAGENT_API PromptMetadataEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(ValueT &&value)
const Aws::String & GetKey() const
AWS_BEDROCKAGENT_API PromptMetadataEntry()=default
bool KeyHasBeenSet() const
const Aws::String & GetValue() const
AWS_BEDROCKAGENT_API PromptMetadataEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKey(KeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue