AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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