AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContentReference.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/ReferenceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QCONNECT_API ContentReference() = default;
36 AWS_QCONNECT_API ContentReference(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
46 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
47 template<typename KnowledgeBaseArnT = Aws::String>
48 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
49 template<typename KnowledgeBaseArnT = Aws::String>
50 ContentReference& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
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) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
62 template<typename KnowledgeBaseIdT = Aws::String>
63 ContentReference& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetContentArn() const { return m_contentArn; }
71 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
72 template<typename ContentArnT = Aws::String>
73 void SetContentArn(ContentArnT&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::forward<ContentArnT>(value); }
74 template<typename ContentArnT = Aws::String>
75 ContentReference& WithContentArn(ContentArnT&& value) { SetContentArn(std::forward<ContentArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetContentId() const { return m_contentId; }
83 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
84 template<typename ContentIdT = Aws::String>
85 void SetContentId(ContentIdT&& value) { m_contentIdHasBeenSet = true; m_contentId = std::forward<ContentIdT>(value); }
86 template<typename ContentIdT = Aws::String>
87 ContentReference& WithContentId(ContentIdT&& value) { SetContentId(std::forward<ContentIdT>(value)); return *this;}
89
91
94 inline const Aws::String& GetSourceURL() const { return m_sourceURL; }
95 inline bool SourceURLHasBeenSet() const { return m_sourceURLHasBeenSet; }
96 template<typename SourceURLT = Aws::String>
97 void SetSourceURL(SourceURLT&& value) { m_sourceURLHasBeenSet = true; m_sourceURL = std::forward<SourceURLT>(value); }
98 template<typename SourceURLT = Aws::String>
99 ContentReference& WithSourceURL(SourceURLT&& value) { SetSourceURL(std::forward<SourceURLT>(value)); return *this;}
101
103
106 inline ReferenceType GetReferenceType() const { return m_referenceType; }
107 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
108 inline void SetReferenceType(ReferenceType value) { m_referenceTypeHasBeenSet = true; m_referenceType = value; }
109 inline ContentReference& WithReferenceType(ReferenceType value) { SetReferenceType(value); return *this;}
111 private:
112
113 Aws::String m_knowledgeBaseArn;
114 bool m_knowledgeBaseArnHasBeenSet = false;
115
116 Aws::String m_knowledgeBaseId;
117 bool m_knowledgeBaseIdHasBeenSet = false;
118
119 Aws::String m_contentArn;
120 bool m_contentArnHasBeenSet = false;
121
122 Aws::String m_contentId;
123 bool m_contentIdHasBeenSet = false;
124
125 Aws::String m_sourceURL;
126 bool m_sourceURLHasBeenSet = false;
127
128 ReferenceType m_referenceType{ReferenceType::NOT_SET};
129 bool m_referenceTypeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace QConnect
134} // 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