AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContentAssociationRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/qconnect/model/ContentAssociationContents.h>
10#include <aws/qconnect/model/ContentAssociationType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace QConnect
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateContentAssociation"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const ContentAssociationContents& GetAssociation() const{ return m_association; }
44 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
45 inline void SetAssociation(const ContentAssociationContents& value) { m_associationHasBeenSet = true; m_association = value; }
46 inline void SetAssociation(ContentAssociationContents&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
50
52
55 inline const ContentAssociationType& GetAssociationType() const{ return m_associationType; }
56 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
57 inline void SetAssociationType(const ContentAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
58 inline void SetAssociationType(ContentAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
62
64
71 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
72 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
73 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
74 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
75 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
76 inline CreateContentAssociationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
77 inline CreateContentAssociationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
78 inline CreateContentAssociationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
80
82
85 inline const Aws::String& GetContentId() const{ return m_contentId; }
86 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
87 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
88 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
89 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
90 inline CreateContentAssociationRequest& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
91 inline CreateContentAssociationRequest& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
92 inline CreateContentAssociationRequest& WithContentId(const char* value) { SetContentId(value); return *this;}
94
96
99 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
100 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
101 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
102 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
103 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
105 inline CreateContentAssociationRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
106 inline CreateContentAssociationRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline CreateContentAssociationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateContentAssociationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
120 inline CreateContentAssociationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
121 inline CreateContentAssociationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
122 inline CreateContentAssociationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
123 inline CreateContentAssociationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
124 inline CreateContentAssociationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
125 inline CreateContentAssociationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 private:
128
129 ContentAssociationContents m_association;
130 bool m_associationHasBeenSet = false;
131
132 ContentAssociationType m_associationType;
133 bool m_associationTypeHasBeenSet = false;
134
135 Aws::String m_clientToken;
136 bool m_clientTokenHasBeenSet = false;
137
138 Aws::String m_contentId;
139 bool m_contentIdHasBeenSet = false;
140
141 Aws::String m_knowledgeBaseId;
142 bool m_knowledgeBaseIdHasBeenSet = false;
143
145 bool m_tagsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace QConnect
150} // namespace Aws
CreateContentAssociationRequest & AddTags(const char *key, Aws::String &&value)
CreateContentAssociationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateContentAssociationRequest & WithAssociation(const ContentAssociationContents &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateContentAssociationRequest & WithAssociation(ContentAssociationContents &&value)
CreateContentAssociationRequest & WithAssociationType(const ContentAssociationType &value)
CreateContentAssociationRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContentAssociationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateContentAssociationRequest & WithAssociationType(ContentAssociationType &&value)
CreateContentAssociationRequest & WithKnowledgeBaseId(const Aws::String &value)
CreateContentAssociationRequest & WithContentId(const char *value)
CreateContentAssociationRequest & AddTags(const char *key, const char *value)
CreateContentAssociationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateContentAssociationRequest & WithKnowledgeBaseId(const char *value)
void SetAssociation(const ContentAssociationContents &value)
CreateContentAssociationRequest & WithKnowledgeBaseId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateContentAssociationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateContentAssociationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContentAssociationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateContentAssociationRequest & WithClientToken(const char *value)
CreateContentAssociationRequest & WithContentId(Aws::String &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateContentAssociationRequest & WithContentId(const Aws::String &value)
CreateContentAssociationRequest & AddTags(Aws::String &&key, const char *value)
CreateContentAssociationRequest & WithClientToken(const 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