AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContentAssociationSummary.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
36 {
37 public:
38 AWS_QCONNECT_API ContentAssociationSummary();
41 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ContentAssociationContents& GetAssociationData() const{ return m_associationData; }
49 inline bool AssociationDataHasBeenSet() const { return m_associationDataHasBeenSet; }
50 inline void SetAssociationData(const ContentAssociationContents& value) { m_associationDataHasBeenSet = true; m_associationData = value; }
51 inline void SetAssociationData(ContentAssociationContents&& value) { m_associationDataHasBeenSet = true; m_associationData = std::move(value); }
55
57
60 inline const ContentAssociationType& GetAssociationType() const{ return m_associationType; }
61 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
62 inline void SetAssociationType(const ContentAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
63 inline void SetAssociationType(ContentAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
67
69
72 inline const Aws::String& GetContentArn() const{ return m_contentArn; }
73 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
74 inline void SetContentArn(const Aws::String& value) { m_contentArnHasBeenSet = true; m_contentArn = value; }
75 inline void SetContentArn(Aws::String&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::move(value); }
76 inline void SetContentArn(const char* value) { m_contentArnHasBeenSet = true; m_contentArn.assign(value); }
77 inline ContentAssociationSummary& WithContentArn(const Aws::String& value) { SetContentArn(value); return *this;}
78 inline ContentAssociationSummary& WithContentArn(Aws::String&& value) { SetContentArn(std::move(value)); return *this;}
79 inline ContentAssociationSummary& WithContentArn(const char* value) { SetContentArn(value); return *this;}
81
83
86 inline const Aws::String& GetContentAssociationArn() const{ return m_contentAssociationArn; }
87 inline bool ContentAssociationArnHasBeenSet() const { return m_contentAssociationArnHasBeenSet; }
88 inline void SetContentAssociationArn(const Aws::String& value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn = value; }
89 inline void SetContentAssociationArn(Aws::String&& value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn = std::move(value); }
90 inline void SetContentAssociationArn(const char* value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn.assign(value); }
93 inline ContentAssociationSummary& WithContentAssociationArn(const char* value) { SetContentAssociationArn(value); return *this;}
95
97
101 inline const Aws::String& GetContentAssociationId() const{ return m_contentAssociationId; }
102 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
103 inline void SetContentAssociationId(const Aws::String& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = value; }
104 inline void SetContentAssociationId(Aws::String&& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = std::move(value); }
105 inline void SetContentAssociationId(const char* value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId.assign(value); }
108 inline ContentAssociationSummary& WithContentAssociationId(const char* value) { SetContentAssociationId(value); return *this;}
110
112
115 inline const Aws::String& GetContentId() const{ return m_contentId; }
116 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
117 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
118 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
119 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
120 inline ContentAssociationSummary& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
121 inline ContentAssociationSummary& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
122 inline ContentAssociationSummary& WithContentId(const char* value) { SetContentId(value); return *this;}
124
126
129 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
130 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
131 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
132 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
133 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
135 inline ContentAssociationSummary& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
136 inline ContentAssociationSummary& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
138
140
143 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
144 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
145 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
146 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
147 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
149 inline ContentAssociationSummary& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
150 inline ContentAssociationSummary& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
152
154
157 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
160 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
162 inline ContentAssociationSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
163 inline ContentAssociationSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
164 inline ContentAssociationSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
165 inline ContentAssociationSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
166 inline ContentAssociationSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
167 inline ContentAssociationSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
168 inline ContentAssociationSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
169 inline ContentAssociationSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
171 private:
172
173 ContentAssociationContents m_associationData;
174 bool m_associationDataHasBeenSet = false;
175
176 ContentAssociationType m_associationType;
177 bool m_associationTypeHasBeenSet = false;
178
179 Aws::String m_contentArn;
180 bool m_contentArnHasBeenSet = false;
181
182 Aws::String m_contentAssociationArn;
183 bool m_contentAssociationArnHasBeenSet = false;
184
185 Aws::String m_contentAssociationId;
186 bool m_contentAssociationIdHasBeenSet = false;
187
188 Aws::String m_contentId;
189 bool m_contentIdHasBeenSet = false;
190
191 Aws::String m_knowledgeBaseArn;
192 bool m_knowledgeBaseArnHasBeenSet = false;
193
194 Aws::String m_knowledgeBaseId;
195 bool m_knowledgeBaseIdHasBeenSet = false;
196
198 bool m_tagsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace QConnect
203} // namespace Aws
ContentAssociationSummary & WithContentAssociationArn(const char *value)
ContentAssociationSummary & WithKnowledgeBaseArn(const Aws::String &value)
ContentAssociationSummary & WithContentAssociationArn(const Aws::String &value)
ContentAssociationSummary & WithKnowledgeBaseArn(const char *value)
ContentAssociationSummary & AddTags(const Aws::String &key, Aws::String &&value)
ContentAssociationSummary & WithContentArn(const char *value)
ContentAssociationSummary & WithContentId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentAssociationSummary & WithContentArn(const Aws::String &value)
ContentAssociationSummary & WithContentId(Aws::String &&value)
ContentAssociationSummary & AddTags(const char *key, Aws::String &&value)
const ContentAssociationType & GetAssociationType() const
ContentAssociationSummary & WithKnowledgeBaseId(const Aws::String &value)
ContentAssociationSummary & AddTags(const char *key, const char *value)
ContentAssociationSummary & WithContentAssociationId(const char *value)
const ContentAssociationContents & GetAssociationData() const
ContentAssociationSummary & WithContentAssociationArn(Aws::String &&value)
ContentAssociationSummary & WithContentAssociationId(Aws::String &&value)
ContentAssociationSummary & WithAssociationType(ContentAssociationType &&value)
ContentAssociationSummary & WithKnowledgeBaseId(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetAssociationType(const ContentAssociationType &value)
void SetAssociationType(ContentAssociationType &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociationData(const ContentAssociationContents &value)
ContentAssociationSummary & AddTags(Aws::String &&key, Aws::String &&value)
ContentAssociationSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentAssociationSummary & WithAssociationData(ContentAssociationContents &&value)
ContentAssociationSummary & WithContentId(const char *value)
ContentAssociationSummary & WithKnowledgeBaseArn(Aws::String &&value)
ContentAssociationSummary & WithContentAssociationId(const Aws::String &value)
ContentAssociationSummary & WithAssociationData(const ContentAssociationContents &value)
ContentAssociationSummary & AddTags(Aws::String &&key, const Aws::String &value)
ContentAssociationSummary & WithAssociationType(const ContentAssociationType &value)
ContentAssociationSummary & AddTags(Aws::String &&key, const char *value)
ContentAssociationSummary & WithContentArn(Aws::String &&value)
AWS_QCONNECT_API ContentAssociationSummary(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationSummary & AddTags(const Aws::String &key, const Aws::String &value)
ContentAssociationSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_QCONNECT_API ContentAssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationSummary & WithKnowledgeBaseId(Aws::String &&value)
void SetAssociationData(ContentAssociationContents &&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