AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
GetDictionaryResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elementalinference/ElementalInference_EXPORTS.h>
12#include <aws/elementalinference/model/DictionaryLanguage.h>
13#include <aws/elementalinference/model/DictionaryStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ElementalInference {
27namespace Model {
29 public:
30 AWS_ELEMENTALINFERENCE_API GetDictionaryResult() = default;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
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>
45 GetDictionaryResult& WithName(NameT&& value) {
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetId() const { return m_id; }
73 template <typename IdT = Aws::String>
74 void SetId(IdT&& value) {
75 m_idHasBeenSet = true;
76 m_id = std::forward<IdT>(value);
77 }
78 template <typename IdT = Aws::String>
80 SetId(std::forward<IdT>(value));
81 return *this;
82 }
84
86
89 inline DictionaryLanguage GetLanguage() const { return m_language; }
90 inline void SetLanguage(DictionaryLanguage value) {
91 m_languageHasBeenSet = true;
92 m_language = value;
93 }
95 SetLanguage(value);
96 return *this;
97 }
99
101
104 inline DictionaryStatus GetStatus() const { return m_status; }
105 inline void SetStatus(DictionaryStatus value) {
106 m_statusHasBeenSet = true;
107 m_status = value;
108 }
110 SetStatus(value);
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
120 template <typename ReferencesT = Aws::Vector<Aws::String>>
121 void SetReferences(ReferencesT&& value) {
122 m_referencesHasBeenSet = true;
123 m_references = std::forward<ReferencesT>(value);
124 }
125 template <typename ReferencesT = Aws::Vector<Aws::String>>
126 GetDictionaryResult& WithReferences(ReferencesT&& value) {
127 SetReferences(std::forward<ReferencesT>(value));
128 return *this;
129 }
130 template <typename ReferencesT = Aws::String>
131 GetDictionaryResult& AddReferences(ReferencesT&& value) {
132 m_referencesHasBeenSet = true;
133 m_references.emplace_back(std::forward<ReferencesT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags = std::forward<TagsT>(value);
147 }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 SetTags(std::forward<TagsT>(value));
151 return *this;
152 }
153 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 GetDictionaryResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
157 return *this;
158 }
160
162
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 template <typename RequestIdT = Aws::String>
165 void SetRequestId(RequestIdT&& value) {
166 m_requestIdHasBeenSet = true;
167 m_requestId = std::forward<RequestIdT>(value);
168 }
169 template <typename RequestIdT = Aws::String>
170 GetDictionaryResult& WithRequestId(RequestIdT&& value) {
171 SetRequestId(std::forward<RequestIdT>(value));
172 return *this;
173 }
175 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
176
177 private:
178 Aws::String m_name;
179
180 Aws::String m_arn;
181
182 Aws::String m_id;
183
185
187
188 Aws::Vector<Aws::String> m_references;
189
191
192 Aws::String m_requestId;
193 Aws::Http::HttpResponseCode m_HttpResponseCode;
194 bool m_nameHasBeenSet = false;
195 bool m_arnHasBeenSet = false;
196 bool m_idHasBeenSet = false;
197 bool m_languageHasBeenSet = false;
198 bool m_statusHasBeenSet = false;
199 bool m_referencesHasBeenSet = false;
200 bool m_tagsHasBeenSet = false;
201 bool m_requestIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace ElementalInference
206} // namespace Aws
AWS_ELEMENTALINFERENCE_API GetDictionaryResult()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDictionaryResult & WithRequestId(RequestIdT &&value)
GetDictionaryResult & AddReferences(ReferencesT &&value)
GetDictionaryResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ELEMENTALINFERENCE_API GetDictionaryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDictionaryResult & WithLanguage(DictionaryLanguage value)
GetDictionaryResult & WithStatus(DictionaryStatus value)
GetDictionaryResult & WithReferences(ReferencesT &&value)
const Aws::Vector< Aws::String > & GetReferences() const
AWS_ELEMENTALINFERENCE_API GetDictionaryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue