AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateDictionaryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elementalinference/ElementalInferenceRequest.h>
10#include <aws/elementalinference/ElementalInference_EXPORTS.h>
11#include <aws/elementalinference/model/DictionaryLanguage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElementalInference {
17namespace Model {
18
22 public:
23 AWS_ELEMENTALINFERENCE_API CreateDictionaryRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDictionary"; }
30
31 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
59 inline DictionaryLanguage GetLanguage() const { return m_language; }
60 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
61 inline void SetLanguage(DictionaryLanguage value) {
62 m_languageHasBeenSet = true;
63 m_language = value;
64 }
66 SetLanguage(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetEntries() const { return m_entries; }
77 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
78 template <typename EntriesT = Aws::String>
79 void SetEntries(EntriesT&& value) {
80 m_entriesHasBeenSet = true;
81 m_entries = std::forward<EntriesT>(value);
82 }
83 template <typename EntriesT = Aws::String>
85 SetEntries(std::forward<EntriesT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags = std::forward<TagsT>(value);
100 }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 SetTags(std::forward<TagsT>(value));
104 return *this;
105 }
106 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 CreateDictionaryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115
117
118 Aws::String m_entries;
119
121 bool m_nameHasBeenSet = false;
122 bool m_languageHasBeenSet = false;
123 bool m_entriesHasBeenSet = false;
124 bool m_tagsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace ElementalInference
129} // namespace Aws
CreateDictionaryRequest & WithEntries(EntriesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
CreateDictionaryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDictionaryRequest & WithLanguage(DictionaryLanguage value)
AWS_ELEMENTALINFERENCE_API CreateDictionaryRequest()=default
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