AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
QueryText.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3vectors/S3Vectors_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace S3Vectors {
20namespace Model {
21
28class QueryText {
29 public:
30 AWS_S3VECTORS_API QueryText() = default;
31 AWS_S3VECTORS_API QueryText(Aws::Utils::Json::JsonView jsonValue);
32 AWS_S3VECTORS_API QueryText& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetText() const { return m_text; }
40 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
41 template <typename TextT = Aws::String>
42 void SetText(TextT&& value) {
43 m_textHasBeenSet = true;
44 m_text = std::forward<TextT>(value);
45 }
46 template <typename TextT = Aws::String>
47 QueryText& WithText(TextT&& value) {
48 SetText(std::forward<TextT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMetadataKey() const { return m_metadataKey; }
58 inline bool MetadataKeyHasBeenSet() const { return m_metadataKeyHasBeenSet; }
59 template <typename MetadataKeyT = Aws::String>
60 void SetMetadataKey(MetadataKeyT&& value) {
61 m_metadataKeyHasBeenSet = true;
62 m_metadataKey = std::forward<MetadataKeyT>(value);
63 }
64 template <typename MetadataKeyT = Aws::String>
65 QueryText& WithMetadataKey(MetadataKeyT&& value) {
66 SetMetadataKey(std::forward<MetadataKeyT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_text;
72
73 Aws::String m_metadataKey;
74 bool m_textHasBeenSet = false;
75 bool m_metadataKeyHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace S3Vectors
80} // namespace Aws
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetadataKey(MetadataKeyT &&value)
Definition QueryText.h:60
QueryText & WithMetadataKey(MetadataKeyT &&value)
Definition QueryText.h:65
AWS_S3VECTORS_API QueryText(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition QueryText.h:39
AWS_S3VECTORS_API QueryText & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetadataKey() const
Definition QueryText.h:57
void SetText(TextT &&value)
Definition QueryText.h:42
QueryText & WithText(TextT &&value)
Definition QueryText.h:47
AWS_S3VECTORS_API QueryText()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue