AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
DescribeKeyResult.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/model/ApiKeyRestrictions.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LocationService
27{
28namespace Model
29{
31 {
32 public:
33 AWS_LOCATIONSERVICE_API DescribeKeyResult() = default;
36
37
39
42 inline const Aws::String& GetKey() const { return m_key; }
43 template<typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
45 template<typename KeyT = Aws::String>
46 DescribeKeyResult& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
48
50
56 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
57 template<typename KeyArnT = Aws::String>
58 void SetKeyArn(KeyArnT&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::forward<KeyArnT>(value); }
59 template<typename KeyArnT = Aws::String>
60 DescribeKeyResult& WithKeyArn(KeyArnT&& value) { SetKeyArn(std::forward<KeyArnT>(value)); return *this;}
62
64
67 inline const Aws::String& GetKeyName() const { return m_keyName; }
68 template<typename KeyNameT = Aws::String>
69 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
70 template<typename KeyNameT = Aws::String>
71 DescribeKeyResult& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
73
75
76 inline const ApiKeyRestrictions& GetRestrictions() const { return m_restrictions; }
77 template<typename RestrictionsT = ApiKeyRestrictions>
78 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
79 template<typename RestrictionsT = ApiKeyRestrictions>
80 DescribeKeyResult& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
82
84
89 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
90 template<typename CreateTimeT = Aws::Utils::DateTime>
91 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
92 template<typename CreateTimeT = Aws::Utils::DateTime>
93 DescribeKeyResult& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
95
97
102 inline const Aws::Utils::DateTime& GetExpireTime() const { return m_expireTime; }
103 template<typename ExpireTimeT = Aws::Utils::DateTime>
104 void SetExpireTime(ExpireTimeT&& value) { m_expireTimeHasBeenSet = true; m_expireTime = std::forward<ExpireTimeT>(value); }
105 template<typename ExpireTimeT = Aws::Utils::DateTime>
106 DescribeKeyResult& WithExpireTime(ExpireTimeT&& value) { SetExpireTime(std::forward<ExpireTimeT>(value)); return *this;}
108
110
115 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
116 template<typename UpdateTimeT = Aws::Utils::DateTime>
117 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
118 template<typename UpdateTimeT = Aws::Utils::DateTime>
119 DescribeKeyResult& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 template<typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
129 template<typename DescriptionT = Aws::String>
130 DescribeKeyResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
138 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 DescribeKeyResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
143 DescribeKeyResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
144 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
145 }
147
149
150 inline const Aws::String& GetRequestId() const { return m_requestId; }
151 template<typename RequestIdT = Aws::String>
152 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
153 template<typename RequestIdT = Aws::String>
154 DescribeKeyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
156 private:
157
158 Aws::String m_key;
159 bool m_keyHasBeenSet = false;
160
161 Aws::String m_keyArn;
162 bool m_keyArnHasBeenSet = false;
163
164 Aws::String m_keyName;
165 bool m_keyNameHasBeenSet = false;
166
167 ApiKeyRestrictions m_restrictions;
168 bool m_restrictionsHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createTime{};
171 bool m_createTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_expireTime{};
174 bool m_expireTimeHasBeenSet = false;
175
176 Aws::Utils::DateTime m_updateTime{};
177 bool m_updateTimeHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
183 bool m_tagsHasBeenSet = false;
184
185 Aws::String m_requestId;
186 bool m_requestIdHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace LocationService
191} // 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