AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContentAssociationSummary.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/ContentAssociationType.h>
10#include <aws/qconnect/model/ContentAssociationContents.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() = default;
41 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
49 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
50 template<typename KnowledgeBaseIdT = Aws::String>
51 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
52 template<typename KnowledgeBaseIdT = Aws::String>
53 ContentAssociationSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
61 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
62 template<typename KnowledgeBaseArnT = Aws::String>
63 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
64 template<typename KnowledgeBaseArnT = Aws::String>
65 ContentAssociationSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetContentId() const { return m_contentId; }
73 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
74 template<typename ContentIdT = Aws::String>
75 void SetContentId(ContentIdT&& value) { m_contentIdHasBeenSet = true; m_contentId = std::forward<ContentIdT>(value); }
76 template<typename ContentIdT = Aws::String>
77 ContentAssociationSummary& WithContentId(ContentIdT&& value) { SetContentId(std::forward<ContentIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetContentArn() const { return m_contentArn; }
85 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
86 template<typename ContentArnT = Aws::String>
87 void SetContentArn(ContentArnT&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::forward<ContentArnT>(value); }
88 template<typename ContentArnT = Aws::String>
89 ContentAssociationSummary& WithContentArn(ContentArnT&& value) { SetContentArn(std::forward<ContentArnT>(value)); return *this;}
91
93
97 inline const Aws::String& GetContentAssociationId() const { return m_contentAssociationId; }
98 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
99 template<typename ContentAssociationIdT = Aws::String>
100 void SetContentAssociationId(ContentAssociationIdT&& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = std::forward<ContentAssociationIdT>(value); }
101 template<typename ContentAssociationIdT = Aws::String>
102 ContentAssociationSummary& WithContentAssociationId(ContentAssociationIdT&& value) { SetContentAssociationId(std::forward<ContentAssociationIdT>(value)); return *this;}
104
106
109 inline const Aws::String& GetContentAssociationArn() const { return m_contentAssociationArn; }
110 inline bool ContentAssociationArnHasBeenSet() const { return m_contentAssociationArnHasBeenSet; }
111 template<typename ContentAssociationArnT = Aws::String>
112 void SetContentAssociationArn(ContentAssociationArnT&& value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn = std::forward<ContentAssociationArnT>(value); }
113 template<typename ContentAssociationArnT = Aws::String>
114 ContentAssociationSummary& WithContentAssociationArn(ContentAssociationArnT&& value) { SetContentAssociationArn(std::forward<ContentAssociationArnT>(value)); return *this;}
116
118
121 inline ContentAssociationType GetAssociationType() const { return m_associationType; }
122 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
123 inline void SetAssociationType(ContentAssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
126
128
131 inline const ContentAssociationContents& GetAssociationData() const { return m_associationData; }
132 inline bool AssociationDataHasBeenSet() const { return m_associationDataHasBeenSet; }
133 template<typename AssociationDataT = ContentAssociationContents>
134 void SetAssociationData(AssociationDataT&& value) { m_associationDataHasBeenSet = true; m_associationData = std::forward<AssociationDataT>(value); }
135 template<typename AssociationDataT = ContentAssociationContents>
136 ContentAssociationSummary& WithAssociationData(AssociationDataT&& value) { SetAssociationData(std::forward<AssociationDataT>(value)); return *this;}
138
140
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 ContentAssociationSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 ContentAssociationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
152 }
154 private:
155
156 Aws::String m_knowledgeBaseId;
157 bool m_knowledgeBaseIdHasBeenSet = false;
158
159 Aws::String m_knowledgeBaseArn;
160 bool m_knowledgeBaseArnHasBeenSet = false;
161
162 Aws::String m_contentId;
163 bool m_contentIdHasBeenSet = false;
164
165 Aws::String m_contentArn;
166 bool m_contentArnHasBeenSet = false;
167
168 Aws::String m_contentAssociationId;
169 bool m_contentAssociationIdHasBeenSet = false;
170
171 Aws::String m_contentAssociationArn;
172 bool m_contentAssociationArnHasBeenSet = false;
173
175 bool m_associationTypeHasBeenSet = false;
176
177 ContentAssociationContents m_associationData;
178 bool m_associationDataHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace QConnect
186} // namespace Aws
ContentAssociationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API ContentAssociationSummary()=default
void SetContentAssociationArn(ContentAssociationArnT &&value)
const ContentAssociationContents & GetAssociationData() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentAssociationSummary & WithContentAssociationId(ContentAssociationIdT &&value)
ContentAssociationSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
ContentAssociationSummary & WithTags(TagsT &&value)
void SetContentAssociationId(ContentAssociationIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ContentAssociationSummary & WithAssociationType(ContentAssociationType value)
ContentAssociationSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ContentAssociationSummary & WithContentArn(ContentArnT &&value)
ContentAssociationSummary & WithAssociationData(AssociationDataT &&value)
AWS_QCONNECT_API ContentAssociationSummary(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationSummary & WithContentAssociationArn(ContentAssociationArnT &&value)
AWS_QCONNECT_API ContentAssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationSummary & WithContentId(ContentIdT &&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