AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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& GetContentArn() const{ return m_contentArn; }
46 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
47 inline void SetContentArn(const Aws::String& value) { m_contentArnHasBeenSet = true; m_contentArn = value; }
48 inline void SetContentArn(Aws::String&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::move(value); }
49 inline void SetContentArn(const char* value) { m_contentArnHasBeenSet = true; m_contentArn.assign(value); }
50 inline ContentReference& WithContentArn(const Aws::String& value) { SetContentArn(value); return *this;}
51 inline ContentReference& WithContentArn(Aws::String&& value) { SetContentArn(std::move(value)); return *this;}
52 inline ContentReference& WithContentArn(const char* value) { SetContentArn(value); return *this;}
54
56
59 inline const Aws::String& GetContentId() const{ return m_contentId; }
60 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
61 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
62 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
63 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
64 inline ContentReference& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
65 inline ContentReference& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
66 inline ContentReference& WithContentId(const char* value) { SetContentId(value); return *this;}
68
70
73 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
74 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
75 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
76 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
77 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
78 inline ContentReference& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;}
79 inline ContentReference& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
80 inline ContentReference& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
82
84
88 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
89 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
90 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
91 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
92 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
93 inline ContentReference& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
94 inline ContentReference& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
95 inline ContentReference& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
97
99
102 inline const ReferenceType& GetReferenceType() const{ return m_referenceType; }
103 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
104 inline void SetReferenceType(const ReferenceType& value) { m_referenceTypeHasBeenSet = true; m_referenceType = value; }
105 inline void SetReferenceType(ReferenceType&& value) { m_referenceTypeHasBeenSet = true; m_referenceType = std::move(value); }
106 inline ContentReference& WithReferenceType(const ReferenceType& value) { SetReferenceType(value); return *this;}
107 inline ContentReference& WithReferenceType(ReferenceType&& value) { SetReferenceType(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetSourceURL() const{ return m_sourceURL; }
115 inline bool SourceURLHasBeenSet() const { return m_sourceURLHasBeenSet; }
116 inline void SetSourceURL(const Aws::String& value) { m_sourceURLHasBeenSet = true; m_sourceURL = value; }
117 inline void SetSourceURL(Aws::String&& value) { m_sourceURLHasBeenSet = true; m_sourceURL = std::move(value); }
118 inline void SetSourceURL(const char* value) { m_sourceURLHasBeenSet = true; m_sourceURL.assign(value); }
119 inline ContentReference& WithSourceURL(const Aws::String& value) { SetSourceURL(value); return *this;}
120 inline ContentReference& WithSourceURL(Aws::String&& value) { SetSourceURL(std::move(value)); return *this;}
121 inline ContentReference& WithSourceURL(const char* value) { SetSourceURL(value); return *this;}
123 private:
124
125 Aws::String m_contentArn;
126 bool m_contentArnHasBeenSet = false;
127
128 Aws::String m_contentId;
129 bool m_contentIdHasBeenSet = false;
130
131 Aws::String m_knowledgeBaseArn;
132 bool m_knowledgeBaseArnHasBeenSet = false;
133
134 Aws::String m_knowledgeBaseId;
135 bool m_knowledgeBaseIdHasBeenSet = false;
136
137 ReferenceType m_referenceType;
138 bool m_referenceTypeHasBeenSet = false;
139
140 Aws::String m_sourceURL;
141 bool m_sourceURLHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace QConnect
146} // namespace Aws
void SetReferenceType(ReferenceType &&value)
ContentReference & WithReferenceType(ReferenceType &&value)
ContentReference & WithContentArn(const char *value)
ContentReference & WithKnowledgeBaseId(const Aws::String &value)
void SetKnowledgeBaseId(const Aws::String &value)
void SetSourceURL(const Aws::String &value)
AWS_QCONNECT_API ContentReference(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceURL() const
ContentReference & WithSourceURL(const Aws::String &value)
ContentReference & WithContentArn(Aws::String &&value)
ContentReference & WithKnowledgeBaseArn(const Aws::String &value)
ContentReference & WithKnowledgeBaseId(Aws::String &&value)
ContentReference & WithContentArn(const Aws::String &value)
void SetKnowledgeBaseId(const char *value)
void SetContentArn(Aws::String &&value)
const ReferenceType & GetReferenceType() const
ContentReference & WithKnowledgeBaseArn(const char *value)
void SetReferenceType(const ReferenceType &value)
const Aws::String & GetKnowledgeBaseArn() const
ContentReference & WithContentId(const char *value)
ContentReference & WithKnowledgeBaseArn(Aws::String &&value)
ContentReference & WithSourceURL(const char *value)
void SetContentId(Aws::String &&value)
void SetContentId(const Aws::String &value)
ContentReference & WithSourceURL(Aws::String &&value)
ContentReference & WithKnowledgeBaseId(const char *value)
const Aws::String & GetContentArn() const
const Aws::String & GetContentId() const
AWS_QCONNECT_API ContentReference & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentArn(const Aws::String &value)
const Aws::String & GetKnowledgeBaseId() const
ContentReference & WithContentId(const Aws::String &value)
void SetKnowledgeBaseArn(const char *value)
ContentReference & WithContentId(Aws::String &&value)
void SetKnowledgeBaseArn(Aws::String &&value)
void SetKnowledgeBaseId(Aws::String &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ContentReference & WithReferenceType(const ReferenceType &value)
void SetKnowledgeBaseArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue