AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateVocabularyRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/VocabularyLanguageCode.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API CreateVocabularyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateVocabulary"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
65 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
66 template <typename InstanceIdT = Aws::String>
67 void SetInstanceId(InstanceIdT&& value) {
68 m_instanceIdHasBeenSet = true;
69 m_instanceId = std::forward<InstanceIdT>(value);
70 }
71 template <typename InstanceIdT = Aws::String>
73 SetInstanceId(std::forward<InstanceIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
83 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
84 template <typename VocabularyNameT = Aws::String>
85 void SetVocabularyName(VocabularyNameT&& value) {
86 m_vocabularyNameHasBeenSet = true;
87 m_vocabularyName = std::forward<VocabularyNameT>(value);
88 }
89 template <typename VocabularyNameT = Aws::String>
90 CreateVocabularyRequest& WithVocabularyName(VocabularyNameT&& value) {
91 SetVocabularyName(std::forward<VocabularyNameT>(value));
92 return *this;
93 }
95
97
103 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
104 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
106 m_languageCodeHasBeenSet = true;
107 m_languageCode = value;
108 }
110 SetLanguageCode(value);
111 return *this;
112 }
114
116
125 inline const Aws::String& GetContent() const { return m_content; }
126 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
127 template <typename ContentT = Aws::String>
128 void SetContent(ContentT&& value) {
129 m_contentHasBeenSet = true;
130 m_content = std::forward<ContentT>(value);
131 }
132 template <typename ContentT = Aws::String>
134 SetContent(std::forward<ContentT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 CreateVocabularyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163 private:
165 bool m_clientTokenHasBeenSet = true;
166
167 Aws::String m_instanceId;
168 bool m_instanceIdHasBeenSet = false;
169
170 Aws::String m_vocabularyName;
171 bool m_vocabularyNameHasBeenSet = false;
172
174 bool m_languageCodeHasBeenSet = false;
175
176 Aws::String m_content;
177 bool m_contentHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Connect
185} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateVocabularyRequest & WithContent(ContentT &&value)
AWS_CONNECT_API CreateVocabularyRequest()=default
CreateVocabularyRequest & WithInstanceId(InstanceIdT &&value)
CreateVocabularyRequest & WithVocabularyName(VocabularyNameT &&value)
CreateVocabularyRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVocabularyRequest & WithTags(TagsT &&value)
CreateVocabularyRequest & WithLanguageCode(VocabularyLanguageCode value)
CreateVocabularyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetLanguageCode(VocabularyLanguageCode value)
AWS_CONNECT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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