AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataDetails.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/ContentDataDetails.h>
9#include <aws/qconnect/model/IntentDetectedDataDetails.h>
10#include <aws/qconnect/model/SourceContentDataDetails.h>
11#include <aws/core/utils/memory/stl/AWSAllocator.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QConnect
25{
26namespace Model
27{
28 class GenerativeDataDetails;
29 class GenerativeChunkDataDetails;
30
37 {
38 public:
39 AWS_QCONNECT_API DataDetails() = default;
40 AWS_QCONNECT_API DataDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QCONNECT_API DataDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const ContentDataDetails& GetContentData() const { return m_contentData; }
50 inline bool ContentDataHasBeenSet() const { return m_contentDataHasBeenSet; }
51 template<typename ContentDataT = ContentDataDetails>
52 void SetContentData(ContentDataT&& value) { m_contentDataHasBeenSet = true; m_contentData = std::forward<ContentDataT>(value); }
53 template<typename ContentDataT = ContentDataDetails>
54 DataDetails& WithContentData(ContentDataT&& value) { SetContentData(std::forward<ContentDataT>(value)); return *this;}
56
58
62 return *m_generativeData;
63 }
64 inline bool GenerativeDataHasBeenSet() const { return m_generativeDataHasBeenSet; }
65 template<typename GenerativeDataT = GenerativeDataDetails>
66 void SetGenerativeData(GenerativeDataT&& value) {
67 m_generativeDataHasBeenSet = true;
68 m_generativeData = Aws::MakeShared<GenerativeDataDetails>("DataDetails", std::forward<GenerativeDataT>(value));
69 }
70 template<typename GenerativeDataT = GenerativeDataDetails>
71 DataDetails& WithGenerativeData(GenerativeDataT&& value) { SetGenerativeData(std::forward<GenerativeDataT>(value)); return *this;}
73
75
78 inline const IntentDetectedDataDetails& GetIntentDetectedData() const { return m_intentDetectedData; }
79 inline bool IntentDetectedDataHasBeenSet() const { return m_intentDetectedDataHasBeenSet; }
80 template<typename IntentDetectedDataT = IntentDetectedDataDetails>
81 void SetIntentDetectedData(IntentDetectedDataT&& value) { m_intentDetectedDataHasBeenSet = true; m_intentDetectedData = std::forward<IntentDetectedDataT>(value); }
82 template<typename IntentDetectedDataT = IntentDetectedDataDetails>
83 DataDetails& WithIntentDetectedData(IntentDetectedDataT&& value) { SetIntentDetectedData(std::forward<IntentDetectedDataT>(value)); return *this;}
85
87
90 inline const SourceContentDataDetails& GetSourceContentData() const { return m_sourceContentData; }
91 inline bool SourceContentDataHasBeenSet() const { return m_sourceContentDataHasBeenSet; }
92 template<typename SourceContentDataT = SourceContentDataDetails>
93 void SetSourceContentData(SourceContentDataT&& value) { m_sourceContentDataHasBeenSet = true; m_sourceContentData = std::forward<SourceContentDataT>(value); }
94 template<typename SourceContentDataT = SourceContentDataDetails>
95 DataDetails& WithSourceContentData(SourceContentDataT&& value) { SetSourceContentData(std::forward<SourceContentDataT>(value)); return *this;}
97
99
103 return *m_generativeChunkData;
104 }
105 inline bool GenerativeChunkDataHasBeenSet() const { return m_generativeChunkDataHasBeenSet; }
106 template<typename GenerativeChunkDataT = GenerativeChunkDataDetails>
108 m_generativeChunkDataHasBeenSet = true;
109 m_generativeChunkData = Aws::MakeShared<GenerativeChunkDataDetails>("DataDetails", std::forward<GenerativeChunkDataT>(value));
110 }
111 template<typename GenerativeChunkDataT = GenerativeChunkDataDetails>
112 DataDetails& WithGenerativeChunkData(GenerativeChunkDataT&& value) { SetGenerativeChunkData(std::forward<GenerativeChunkDataT>(value)); return *this;}
114 private:
115
116 ContentDataDetails m_contentData;
117 bool m_contentDataHasBeenSet = false;
118
119 std::shared_ptr<GenerativeDataDetails> m_generativeData;
120 bool m_generativeDataHasBeenSet = false;
121
122 IntentDetectedDataDetails m_intentDetectedData;
123 bool m_intentDetectedDataHasBeenSet = false;
124
125 SourceContentDataDetails m_sourceContentData;
126 bool m_sourceContentDataHasBeenSet = false;
127
128 std::shared_ptr<GenerativeChunkDataDetails> m_generativeChunkData;
129 bool m_generativeChunkDataHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace QConnect
134} // namespace Aws
void SetSourceContentData(SourceContentDataT &&value)
Definition DataDetails.h:93
AWS_QCONNECT_API DataDetails(Aws::Utils::Json::JsonView jsonValue)
const IntentDetectedDataDetails & GetIntentDetectedData() const
Definition DataDetails.h:78
const GenerativeChunkDataDetails & GetGenerativeChunkData() const
void SetIntentDetectedData(IntentDetectedDataT &&value)
Definition DataDetails.h:81
DataDetails & WithSourceContentData(SourceContentDataT &&value)
Definition DataDetails.h:95
const SourceContentDataDetails & GetSourceContentData() const
Definition DataDetails.h:90
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API DataDetails()=default
void SetContentData(ContentDataT &&value)
Definition DataDetails.h:52
DataDetails & WithIntentDetectedData(IntentDetectedDataT &&value)
Definition DataDetails.h:83
void SetGenerativeChunkData(GenerativeChunkDataT &&value)
AWS_QCONNECT_API DataDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
DataDetails & WithGenerativeChunkData(GenerativeChunkDataT &&value)
const GenerativeDataDetails & GetGenerativeData() const
Definition DataDetails.h:61
DataDetails & WithGenerativeData(GenerativeDataT &&value)
Definition DataDetails.h:71
const ContentDataDetails & GetContentData() const
Definition DataDetails.h:49
void SetGenerativeData(GenerativeDataT &&value)
Definition DataDetails.h:66
DataDetails & WithContentData(ContentDataT &&value)
Definition DataDetails.h:54
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue