AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ContentReference.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/ReferenceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
29 public:
30 AWS_QCONNECT_API ContentReference() = default;
31 AWS_QCONNECT_API ContentReference(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
40 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
41 template <typename KnowledgeBaseArnT = Aws::String>
42 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
43 m_knowledgeBaseArnHasBeenSet = true;
44 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
45 }
46 template <typename KnowledgeBaseArnT = Aws::String>
47 ContentReference& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
48 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
59 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
60 template <typename KnowledgeBaseIdT = Aws::String>
61 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
62 m_knowledgeBaseIdHasBeenSet = true;
63 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
64 }
65 template <typename KnowledgeBaseIdT = Aws::String>
66 ContentReference& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
67 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetContentArn() const { return m_contentArn; }
77 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
78 template <typename ContentArnT = Aws::String>
79 void SetContentArn(ContentArnT&& value) {
80 m_contentArnHasBeenSet = true;
81 m_contentArn = std::forward<ContentArnT>(value);
82 }
83 template <typename ContentArnT = Aws::String>
84 ContentReference& WithContentArn(ContentArnT&& value) {
85 SetContentArn(std::forward<ContentArnT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetContentId() const { return m_contentId; }
95 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
96 template <typename ContentIdT = Aws::String>
97 void SetContentId(ContentIdT&& value) {
98 m_contentIdHasBeenSet = true;
99 m_contentId = std::forward<ContentIdT>(value);
100 }
101 template <typename ContentIdT = Aws::String>
102 ContentReference& WithContentId(ContentIdT&& value) {
103 SetContentId(std::forward<ContentIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetSourceURL() const { return m_sourceURL; }
113 inline bool SourceURLHasBeenSet() const { return m_sourceURLHasBeenSet; }
114 template <typename SourceURLT = Aws::String>
115 void SetSourceURL(SourceURLT&& value) {
116 m_sourceURLHasBeenSet = true;
117 m_sourceURL = std::forward<SourceURLT>(value);
118 }
119 template <typename SourceURLT = Aws::String>
120 ContentReference& WithSourceURL(SourceURLT&& value) {
121 SetSourceURL(std::forward<SourceURLT>(value));
122 return *this;
123 }
125
127
130 inline ReferenceType GetReferenceType() const { return m_referenceType; }
131 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
132 inline void SetReferenceType(ReferenceType value) {
133 m_referenceTypeHasBeenSet = true;
134 m_referenceType = value;
135 }
137 SetReferenceType(value);
138 return *this;
139 }
141 private:
142 Aws::String m_knowledgeBaseArn;
143
144 Aws::String m_knowledgeBaseId;
145
146 Aws::String m_contentArn;
147
148 Aws::String m_contentId;
149
150 Aws::String m_sourceURL;
151
152 ReferenceType m_referenceType{ReferenceType::NOT_SET};
153 bool m_knowledgeBaseArnHasBeenSet = false;
154 bool m_knowledgeBaseIdHasBeenSet = false;
155 bool m_contentArnHasBeenSet = false;
156 bool m_contentIdHasBeenSet = false;
157 bool m_sourceURLHasBeenSet = false;
158 bool m_referenceTypeHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace QConnect
163} // namespace Aws
AWS_QCONNECT_API ContentReference(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceURL() const
ContentReference & WithContentArn(ContentArnT &&value)
const Aws::String & GetKnowledgeBaseArn() const
ContentReference & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::String & GetContentArn() const
const Aws::String & GetContentId() const
void SetReferenceType(ReferenceType value)
ContentReference & WithSourceURL(SourceURLT &&value)
AWS_QCONNECT_API ContentReference()=default
AWS_QCONNECT_API ContentReference & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentReference & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
ContentReference & WithReferenceType(ReferenceType value)
ContentReference & WithContentId(ContentIdT &&value)
const Aws::String & GetKnowledgeBaseId() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetContentArn(ContentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue