AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeKeyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/location/LocationService_EXPORTS.h>
12#include <aws/location/model/ApiKeyRestrictions.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LocationService {
26namespace Model {
28 public:
29 AWS_LOCATIONSERVICE_API DescribeKeyResult() = default;
32
34
37 inline const Aws::String& GetKey() const { return m_key; }
38 template <typename KeyT = Aws::String>
39 void SetKey(KeyT&& value) {
40 m_keyHasBeenSet = true;
41 m_key = std::forward<KeyT>(value);
42 }
43 template <typename KeyT = Aws::String>
44 DescribeKeyResult& WithKey(KeyT&& value) {
45 SetKey(std::forward<KeyT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
58 template <typename KeyArnT = Aws::String>
59 void SetKeyArn(KeyArnT&& value) {
60 m_keyArnHasBeenSet = true;
61 m_keyArn = std::forward<KeyArnT>(value);
62 }
63 template <typename KeyArnT = Aws::String>
64 DescribeKeyResult& WithKeyArn(KeyArnT&& value) {
65 SetKeyArn(std::forward<KeyArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetKeyName() const { return m_keyName; }
75 template <typename KeyNameT = Aws::String>
76 void SetKeyName(KeyNameT&& value) {
77 m_keyNameHasBeenSet = true;
78 m_keyName = std::forward<KeyNameT>(value);
79 }
80 template <typename KeyNameT = Aws::String>
81 DescribeKeyResult& WithKeyName(KeyNameT&& value) {
82 SetKeyName(std::forward<KeyNameT>(value));
83 return *this;
84 }
86
88
89 inline const ApiKeyRestrictions& GetRestrictions() const { return m_restrictions; }
90 template <typename RestrictionsT = ApiKeyRestrictions>
91 void SetRestrictions(RestrictionsT&& value) {
92 m_restrictionsHasBeenSet = true;
93 m_restrictions = std::forward<RestrictionsT>(value);
94 }
95 template <typename RestrictionsT = ApiKeyRestrictions>
96 DescribeKeyResult& WithRestrictions(RestrictionsT&& value) {
97 SetRestrictions(std::forward<RestrictionsT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
109 template <typename CreateTimeT = Aws::Utils::DateTime>
110 void SetCreateTime(CreateTimeT&& value) {
111 m_createTimeHasBeenSet = true;
112 m_createTime = std::forward<CreateTimeT>(value);
113 }
114 template <typename CreateTimeT = Aws::Utils::DateTime>
115 DescribeKeyResult& WithCreateTime(CreateTimeT&& value) {
116 SetCreateTime(std::forward<CreateTimeT>(value));
117 return *this;
118 }
120
122
127 inline const Aws::Utils::DateTime& GetExpireTime() const { return m_expireTime; }
128 template <typename ExpireTimeT = Aws::Utils::DateTime>
129 void SetExpireTime(ExpireTimeT&& value) {
130 m_expireTimeHasBeenSet = true;
131 m_expireTime = std::forward<ExpireTimeT>(value);
132 }
133 template <typename ExpireTimeT = Aws::Utils::DateTime>
134 DescribeKeyResult& WithExpireTime(ExpireTimeT&& value) {
135 SetExpireTime(std::forward<ExpireTimeT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
147 template <typename UpdateTimeT = Aws::Utils::DateTime>
148 void SetUpdateTime(UpdateTimeT&& value) {
149 m_updateTimeHasBeenSet = true;
150 m_updateTime = std::forward<UpdateTimeT>(value);
151 }
152 template <typename UpdateTimeT = Aws::Utils::DateTime>
153 DescribeKeyResult& WithUpdateTime(UpdateTimeT&& value) {
154 SetUpdateTime(std::forward<UpdateTimeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetDescription() const { return m_description; }
164 template <typename DescriptionT = Aws::String>
165 void SetDescription(DescriptionT&& value) {
166 m_descriptionHasBeenSet = true;
167 m_description = std::forward<DescriptionT>(value);
168 }
169 template <typename DescriptionT = Aws::String>
170 DescribeKeyResult& WithDescription(DescriptionT&& value) {
171 SetDescription(std::forward<DescriptionT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 void SetTags(TagsT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags = std::forward<TagsT>(value);
185 }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 DescribeKeyResult& WithTags(TagsT&& value) {
188 SetTags(std::forward<TagsT>(value));
189 return *this;
190 }
191 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
192 DescribeKeyResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
208 DescribeKeyResult& WithRequestId(RequestIdT&& value) {
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_key;
217
218 Aws::String m_keyArn;
219
220 Aws::String m_keyName;
221
222 ApiKeyRestrictions m_restrictions;
223
224 Aws::Utils::DateTime m_createTime{};
225
226 Aws::Utils::DateTime m_expireTime{};
227
228 Aws::Utils::DateTime m_updateTime{};
229
230 Aws::String m_description;
231
233
234 Aws::String m_requestId;
235 Aws::Http::HttpResponseCode m_HttpResponseCode;
236 bool m_keyHasBeenSet = false;
237 bool m_keyArnHasBeenSet = false;
238 bool m_keyNameHasBeenSet = false;
239 bool m_restrictionsHasBeenSet = false;
240 bool m_createTimeHasBeenSet = false;
241 bool m_expireTimeHasBeenSet = false;
242 bool m_updateTimeHasBeenSet = false;
243 bool m_descriptionHasBeenSet = false;
244 bool m_tagsHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace LocationService
250} // namespace Aws
const Aws::Utils::DateTime & GetUpdateTime() const
DescribeKeyResult & WithExpireTime(ExpireTimeT &&value)
AWS_LOCATIONSERVICE_API DescribeKeyResult()=default
DescribeKeyResult & WithKeyName(KeyNameT &&value)
DescribeKeyResult & WithKey(KeyT &&value)
DescribeKeyResult & WithTags(TagsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeKeyResult & WithRequestId(RequestIdT &&value)
DescribeKeyResult & WithUpdateTime(UpdateTimeT &&value)
const ApiKeyRestrictions & GetRestrictions() const
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::Utils::DateTime & GetExpireTime() const
DescribeKeyResult & WithKeyArn(KeyArnT &&value)
DescribeKeyResult & WithRestrictions(RestrictionsT &&value)
DescribeKeyResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_LOCATIONSERVICE_API DescribeKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LOCATIONSERVICE_API DescribeKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeKeyResult & WithCreateTime(CreateTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeKeyResult & WithDescription(DescriptionT &&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
Aws::Utils::Json::JsonValue JsonValue