AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContentAssociationData.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/ContentAssociationContents.h>
9#include <aws/qconnect/model/ContentAssociationType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.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
35 {
36 public:
37 AWS_QCONNECT_API ContentAssociationData();
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ContentAssociationContents& GetAssociationData() const{ return m_associationData; }
48 inline bool AssociationDataHasBeenSet() const { return m_associationDataHasBeenSet; }
49 inline void SetAssociationData(const ContentAssociationContents& value) { m_associationDataHasBeenSet = true; m_associationData = value; }
50 inline void SetAssociationData(ContentAssociationContents&& value) { m_associationDataHasBeenSet = true; m_associationData = std::move(value); }
54
56
59 inline const ContentAssociationType& GetAssociationType() const{ return m_associationType; }
60 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
61 inline void SetAssociationType(const ContentAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
62 inline void SetAssociationType(ContentAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
64 inline ContentAssociationData& WithAssociationType(ContentAssociationType&& value) { SetAssociationType(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetContentArn() const{ return m_contentArn; }
72 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
73 inline void SetContentArn(const Aws::String& value) { m_contentArnHasBeenSet = true; m_contentArn = value; }
74 inline void SetContentArn(Aws::String&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::move(value); }
75 inline void SetContentArn(const char* value) { m_contentArnHasBeenSet = true; m_contentArn.assign(value); }
76 inline ContentAssociationData& WithContentArn(const Aws::String& value) { SetContentArn(value); return *this;}
77 inline ContentAssociationData& WithContentArn(Aws::String&& value) { SetContentArn(std::move(value)); return *this;}
78 inline ContentAssociationData& WithContentArn(const char* value) { SetContentArn(value); return *this;}
80
82
85 inline const Aws::String& GetContentAssociationArn() const{ return m_contentAssociationArn; }
86 inline bool ContentAssociationArnHasBeenSet() const { return m_contentAssociationArnHasBeenSet; }
87 inline void SetContentAssociationArn(const Aws::String& value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn = value; }
88 inline void SetContentAssociationArn(Aws::String&& value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn = std::move(value); }
89 inline void SetContentAssociationArn(const char* value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn.assign(value); }
91 inline ContentAssociationData& WithContentAssociationArn(Aws::String&& value) { SetContentAssociationArn(std::move(value)); return *this;}
92 inline ContentAssociationData& WithContentAssociationArn(const char* value) { SetContentAssociationArn(value); return *this;}
94
96
100 inline const Aws::String& GetContentAssociationId() const{ return m_contentAssociationId; }
101 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
102 inline void SetContentAssociationId(const Aws::String& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = value; }
103 inline void SetContentAssociationId(Aws::String&& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = std::move(value); }
104 inline void SetContentAssociationId(const char* value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId.assign(value); }
106 inline ContentAssociationData& WithContentAssociationId(Aws::String&& value) { SetContentAssociationId(std::move(value)); return *this;}
107 inline ContentAssociationData& WithContentAssociationId(const char* value) { SetContentAssociationId(value); return *this;}
109
111
114 inline const Aws::String& GetContentId() const{ return m_contentId; }
115 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
116 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
117 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
118 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
119 inline ContentAssociationData& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
120 inline ContentAssociationData& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
121 inline ContentAssociationData& WithContentId(const char* value) { SetContentId(value); return *this;}
123
125
128 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
129 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
130 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
131 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
132 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
133 inline ContentAssociationData& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;}
134 inline ContentAssociationData& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
135 inline ContentAssociationData& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
137
139
142 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
143 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
144 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
145 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
146 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
147 inline ContentAssociationData& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
148 inline ContentAssociationData& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
149 inline ContentAssociationData& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
151
153
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
160 inline ContentAssociationData& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
161 inline ContentAssociationData& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
162 inline ContentAssociationData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
163 inline ContentAssociationData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
164 inline ContentAssociationData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
165 inline ContentAssociationData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
166 inline ContentAssociationData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
167 inline ContentAssociationData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
168 inline ContentAssociationData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
170 private:
171
172 ContentAssociationContents m_associationData;
173 bool m_associationDataHasBeenSet = false;
174
175 ContentAssociationType m_associationType;
176 bool m_associationTypeHasBeenSet = false;
177
178 Aws::String m_contentArn;
179 bool m_contentArnHasBeenSet = false;
180
181 Aws::String m_contentAssociationArn;
182 bool m_contentAssociationArnHasBeenSet = false;
183
184 Aws::String m_contentAssociationId;
185 bool m_contentAssociationIdHasBeenSet = false;
186
187 Aws::String m_contentId;
188 bool m_contentIdHasBeenSet = false;
189
190 Aws::String m_knowledgeBaseArn;
191 bool m_knowledgeBaseArnHasBeenSet = false;
192
193 Aws::String m_knowledgeBaseId;
194 bool m_knowledgeBaseIdHasBeenSet = false;
195
197 bool m_tagsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace QConnect
202} // namespace Aws
ContentAssociationData & WithAssociationType(const ContentAssociationType &value)
ContentAssociationData & WithAssociationType(ContentAssociationType &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetContentAssociationId(const Aws::String &value)
void SetAssociationData(const ContentAssociationContents &value)
ContentAssociationData & AddTags(const char *key, const char *value)
ContentAssociationData & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentAssociationData & WithContentAssociationId(Aws::String &&value)
ContentAssociationData & WithContentId(Aws::String &&value)
void SetAssociationType(const ContentAssociationType &value)
ContentAssociationData & WithContentArn(const Aws::String &value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ContentAssociationData & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentAssociationData & WithContentArn(const char *value)
ContentAssociationData & WithKnowledgeBaseId(const Aws::String &value)
void SetContentAssociationArn(const Aws::String &value)
ContentAssociationData & WithContentAssociationId(const Aws::String &value)
ContentAssociationData & WithContentAssociationArn(const Aws::String &value)
ContentAssociationData & AddTags(Aws::String &&key, const Aws::String &value)
ContentAssociationData & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_QCONNECT_API ContentAssociationData & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationData & WithContentAssociationArn(const char *value)
const ContentAssociationType & GetAssociationType() const
ContentAssociationData & WithAssociationData(const ContentAssociationContents &value)
ContentAssociationData & WithKnowledgeBaseArn(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentAssociationData & WithKnowledgeBaseId(const char *value)
AWS_QCONNECT_API ContentAssociationData(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationData & WithContentId(const char *value)
const ContentAssociationContents & GetAssociationData() const
ContentAssociationData & WithContentId(const Aws::String &value)
void SetAssociationData(ContentAssociationContents &&value)
ContentAssociationData & WithContentArn(Aws::String &&value)
ContentAssociationData & WithKnowledgeBaseId(Aws::String &&value)
ContentAssociationData & WithContentAssociationArn(Aws::String &&value)
ContentAssociationData & AddTags(const Aws::String &key, Aws::String &&value)
void SetAssociationType(ContentAssociationType &&value)
ContentAssociationData & WithContentAssociationId(const char *value)
ContentAssociationData & AddTags(Aws::String &&key, Aws::String &&value)
ContentAssociationData & AddTags(const Aws::String &key, const Aws::String &value)
ContentAssociationData & WithAssociationData(ContentAssociationContents &&value)
ContentAssociationData & AddTags(Aws::String &&key, const char *value)
ContentAssociationData & WithKnowledgeBaseArn(const Aws::String &value)
ContentAssociationData & WithKnowledgeBaseArn(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue