AWS SDK for C++

AWS SDK for C++ Version 1.11.814

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
56 inline DictionaryLanguage GetLanguage() const { return m_language; }
57 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
58 inline void SetLanguage(DictionaryLanguage value) {
59 m_languageHasBeenSet = true;
60 m_language = value;
61 }
63 SetLanguage(value);
64 return *this;
65 }
67
69
73 inline const Aws::String& GetEntries() const { return m_entries; }
74 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
75 template <typename EntriesT = Aws::String>
76 void SetEntries(EntriesT&& value) {
77 m_entriesHasBeenSet = true;
78 m_entries = std::forward<EntriesT>(value);
79 }
80 template <typename EntriesT = Aws::String>
82 SetEntries(std::forward<EntriesT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 CreateDictionaryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_name;
112
114
115 Aws::String m_entries;
116
118 bool m_nameHasBeenSet = false;
119 bool m_languageHasBeenSet = false;
120 bool m_entriesHasBeenSet = false;
121 bool m_tagsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace ElementalInference
126} // 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