AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateVocabularyRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
62 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
63 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
64 template<typename InstanceIdT = Aws::String>
65 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
66 template<typename InstanceIdT = Aws::String>
67 CreateVocabularyRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
75 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
76 template<typename VocabularyNameT = Aws::String>
77 void SetVocabularyName(VocabularyNameT&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::forward<VocabularyNameT>(value); }
78 template<typename VocabularyNameT = Aws::String>
79 CreateVocabularyRequest& WithVocabularyName(VocabularyNameT&& value) { SetVocabularyName(std::forward<VocabularyNameT>(value)); return *this;}
81
83
89 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
90 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
91 inline void SetLanguageCode(VocabularyLanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
94
96
105 inline const Aws::String& GetContent() const { return m_content; }
106 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
107 template<typename ContentT = Aws::String>
108 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
109 template<typename ContentT = Aws::String>
110 CreateVocabularyRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
112
114
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 CreateVocabularyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 CreateVocabularyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129 private:
130
131 Aws::String m_clientToken;
132 bool m_clientTokenHasBeenSet = false;
133
134 Aws::String m_instanceId;
135 bool m_instanceIdHasBeenSet = false;
136
137 Aws::String m_vocabularyName;
138 bool m_vocabularyNameHasBeenSet = false;
139
141 bool m_languageCodeHasBeenSet = false;
142
143 Aws::String m_content;
144 bool m_contentHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Connect
152} // 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
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