AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVocabularyRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/VocabularyLanguageCode.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreateVocabularyRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateVocabulary"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateVocabularyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline CreateVocabularyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateVocabularyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
64 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
65 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
66 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
67 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
68 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
69 inline CreateVocabularyRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
70 inline CreateVocabularyRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
71 inline CreateVocabularyRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
73
75
78 inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
79 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
80 inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
81 inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
82 inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
83 inline CreateVocabularyRequest& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;}
84 inline CreateVocabularyRequest& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;}
85 inline CreateVocabularyRequest& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;}
87
89
95 inline const VocabularyLanguageCode& GetLanguageCode() const{ return m_languageCode; }
96 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
97 inline void SetLanguageCode(const VocabularyLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
98 inline void SetLanguageCode(VocabularyLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
100 inline CreateVocabularyRequest& WithLanguageCode(VocabularyLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
102
104
113 inline const Aws::String& GetContent() const{ return m_content; }
114 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
115 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
116 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
117 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
118 inline CreateVocabularyRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
119 inline CreateVocabularyRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
120 inline CreateVocabularyRequest& WithContent(const char* value) { SetContent(value); return *this;}
122
124
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
132 inline CreateVocabularyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
133 inline CreateVocabularyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
134 inline CreateVocabularyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135 inline CreateVocabularyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline CreateVocabularyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline CreateVocabularyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
138 inline CreateVocabularyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline CreateVocabularyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline CreateVocabularyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
142 private:
143
144 Aws::String m_clientToken;
145 bool m_clientTokenHasBeenSet = false;
146
147 Aws::String m_instanceId;
148 bool m_instanceIdHasBeenSet = false;
149
150 Aws::String m_vocabularyName;
151 bool m_vocabularyNameHasBeenSet = false;
152
153 VocabularyLanguageCode m_languageCode;
154 bool m_languageCodeHasBeenSet = false;
155
156 Aws::String m_content;
157 bool m_contentHasBeenSet = false;
158
160 bool m_tagsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Connect
165} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateVocabularyRequest & WithLanguageCode(const VocabularyLanguageCode &value)
CreateVocabularyRequest & WithInstanceId(Aws::String &&value)
void SetLanguageCode(const VocabularyLanguageCode &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateVocabularyRequest & WithContent(Aws::String &&value)
CreateVocabularyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateVocabularyRequest & AddTags(const Aws::String &key, Aws::String &&value)
const VocabularyLanguageCode & GetLanguageCode() const
CreateVocabularyRequest & WithContent(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateVocabularyRequest & WithInstanceId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVocabularyRequest & AddTags(const char *key, const char *value)
CreateVocabularyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateVocabularyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateVocabularyRequest & WithVocabularyName(const Aws::String &value)
CreateVocabularyRequest & AddTags(const char *key, Aws::String &&value)
CreateVocabularyRequest & WithInstanceId(const Aws::String &value)
CreateVocabularyRequest & AddTags(Aws::String &&key, const char *value)
CreateVocabularyRequest & WithLanguageCode(VocabularyLanguageCode &&value)
CreateVocabularyRequest & WithContent(const Aws::String &value)
void SetLanguageCode(VocabularyLanguageCode &&value)
CreateVocabularyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateVocabularyRequest & WithClientToken(Aws::String &&value)
CreateVocabularyRequest & WithClientToken(const char *value)
CreateVocabularyRequest & WithVocabularyName(Aws::String &&value)
CreateVocabularyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateVocabularyRequest & WithVocabularyName(const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateVocabularyRequest & 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