AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContentAssociationData.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
35 {
36 public:
37 AWS_QCONNECT_API ContentAssociationData() = default;
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
48 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
49 template<typename KnowledgeBaseIdT = Aws::String>
50 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
51 template<typename KnowledgeBaseIdT = Aws::String>
52 ContentAssociationData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
60 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
61 template<typename KnowledgeBaseArnT = Aws::String>
62 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
63 template<typename KnowledgeBaseArnT = Aws::String>
64 ContentAssociationData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetContentId() const { return m_contentId; }
72 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
73 template<typename ContentIdT = Aws::String>
74 void SetContentId(ContentIdT&& value) { m_contentIdHasBeenSet = true; m_contentId = std::forward<ContentIdT>(value); }
75 template<typename ContentIdT = Aws::String>
76 ContentAssociationData& WithContentId(ContentIdT&& value) { SetContentId(std::forward<ContentIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetContentArn() const { return m_contentArn; }
84 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
85 template<typename ContentArnT = Aws::String>
86 void SetContentArn(ContentArnT&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::forward<ContentArnT>(value); }
87 template<typename ContentArnT = Aws::String>
88 ContentAssociationData& WithContentArn(ContentArnT&& value) { SetContentArn(std::forward<ContentArnT>(value)); return *this;}
90
92
96 inline const Aws::String& GetContentAssociationId() const { return m_contentAssociationId; }
97 inline bool ContentAssociationIdHasBeenSet() const { return m_contentAssociationIdHasBeenSet; }
98 template<typename ContentAssociationIdT = Aws::String>
99 void SetContentAssociationId(ContentAssociationIdT&& value) { m_contentAssociationIdHasBeenSet = true; m_contentAssociationId = std::forward<ContentAssociationIdT>(value); }
100 template<typename ContentAssociationIdT = Aws::String>
101 ContentAssociationData& WithContentAssociationId(ContentAssociationIdT&& value) { SetContentAssociationId(std::forward<ContentAssociationIdT>(value)); return *this;}
103
105
108 inline const Aws::String& GetContentAssociationArn() const { return m_contentAssociationArn; }
109 inline bool ContentAssociationArnHasBeenSet() const { return m_contentAssociationArnHasBeenSet; }
110 template<typename ContentAssociationArnT = Aws::String>
111 void SetContentAssociationArn(ContentAssociationArnT&& value) { m_contentAssociationArnHasBeenSet = true; m_contentAssociationArn = std::forward<ContentAssociationArnT>(value); }
112 template<typename ContentAssociationArnT = Aws::String>
113 ContentAssociationData& WithContentAssociationArn(ContentAssociationArnT&& value) { SetContentAssociationArn(std::forward<ContentAssociationArnT>(value)); return *this;}
115
117
120 inline ContentAssociationType GetAssociationType() const { return m_associationType; }
121 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
122 inline void SetAssociationType(ContentAssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
125
127
130 inline const ContentAssociationContents& GetAssociationData() const { return m_associationData; }
131 inline bool AssociationDataHasBeenSet() const { return m_associationDataHasBeenSet; }
132 template<typename AssociationDataT = ContentAssociationContents>
133 void SetAssociationData(AssociationDataT&& value) { m_associationDataHasBeenSet = true; m_associationData = std::forward<AssociationDataT>(value); }
134 template<typename AssociationDataT = ContentAssociationContents>
135 ContentAssociationData& WithAssociationData(AssociationDataT&& value) { SetAssociationData(std::forward<AssociationDataT>(value)); return *this;}
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
146 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 ContentAssociationData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
148 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 ContentAssociationData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
151 }
153 private:
154
155 Aws::String m_knowledgeBaseId;
156 bool m_knowledgeBaseIdHasBeenSet = false;
157
158 Aws::String m_knowledgeBaseArn;
159 bool m_knowledgeBaseArnHasBeenSet = false;
160
161 Aws::String m_contentId;
162 bool m_contentIdHasBeenSet = false;
163
164 Aws::String m_contentArn;
165 bool m_contentArnHasBeenSet = false;
166
167 Aws::String m_contentAssociationId;
168 bool m_contentAssociationIdHasBeenSet = false;
169
170 Aws::String m_contentAssociationArn;
171 bool m_contentAssociationArnHasBeenSet = false;
172
174 bool m_associationTypeHasBeenSet = false;
175
176 ContentAssociationContents m_associationData;
177 bool m_associationDataHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace QConnect
185} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API ContentAssociationData()=default
void SetContentAssociationArn(ContentAssociationArnT &&value)
ContentAssociationData & WithContentId(ContentIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociationType(ContentAssociationType value)
ContentAssociationData & WithContentArn(ContentArnT &&value)
ContentAssociationData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ContentAssociationData & WithContentAssociationId(ContentAssociationIdT &&value)
ContentAssociationData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
ContentAssociationData & WithContentAssociationArn(ContentAssociationArnT &&value)
AWS_QCONNECT_API ContentAssociationData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API ContentAssociationData(Aws::Utils::Json::JsonView jsonValue)
ContentAssociationData & WithAssociationData(AssociationDataT &&value)
const ContentAssociationContents & GetAssociationData() const
void SetContentAssociationId(ContentAssociationIdT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ContentAssociationData & WithAssociationType(ContentAssociationType value)
ContentAssociationData & WithTags(TagsT &&value)
ContentAssociationData & AddTags(TagsKeyT &&key, TagsValueT &&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