AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const Aws::String& GetKey() const{ return m_key; }
43 inline void SetKey(const Aws::String& value) { m_key = value; }
44 inline void SetKey(Aws::String&& value) { m_key = std::move(value); }
45 inline void SetKey(const char* value) { m_key.assign(value); }
46 inline DescribeKeyResult& WithKey(const Aws::String& value) { SetKey(value); return *this;}
47 inline DescribeKeyResult& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
48 inline DescribeKeyResult& WithKey(const char* value) { SetKey(value); return *this;}
50
52
58 inline const Aws::String& GetKeyArn() const{ return m_keyArn; }
59 inline void SetKeyArn(const Aws::String& value) { m_keyArn = value; }
60 inline void SetKeyArn(Aws::String&& value) { m_keyArn = std::move(value); }
61 inline void SetKeyArn(const char* value) { m_keyArn.assign(value); }
62 inline DescribeKeyResult& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;}
63 inline DescribeKeyResult& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;}
64 inline DescribeKeyResult& WithKeyArn(const char* value) { SetKeyArn(value); return *this;}
66
68
71 inline const Aws::String& GetKeyName() const{ return m_keyName; }
72 inline void SetKeyName(const Aws::String& value) { m_keyName = value; }
73 inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); }
74 inline void SetKeyName(const char* value) { m_keyName.assign(value); }
75 inline DescribeKeyResult& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
76 inline DescribeKeyResult& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
77 inline DescribeKeyResult& WithKeyName(const char* value) { SetKeyName(value); return *this;}
79
81
82 inline const ApiKeyRestrictions& GetRestrictions() const{ return m_restrictions; }
83 inline void SetRestrictions(const ApiKeyRestrictions& value) { m_restrictions = value; }
84 inline void SetRestrictions(ApiKeyRestrictions&& value) { m_restrictions = std::move(value); }
85 inline DescribeKeyResult& WithRestrictions(const ApiKeyRestrictions& value) { SetRestrictions(value); return *this;}
86 inline DescribeKeyResult& WithRestrictions(ApiKeyRestrictions&& value) { SetRestrictions(std::move(value)); return *this;}
88
90
95 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
96 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTime = value; }
97 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTime = std::move(value); }
98 inline DescribeKeyResult& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
99 inline DescribeKeyResult& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
101
103
108 inline const Aws::Utils::DateTime& GetExpireTime() const{ return m_expireTime; }
109 inline void SetExpireTime(const Aws::Utils::DateTime& value) { m_expireTime = value; }
110 inline void SetExpireTime(Aws::Utils::DateTime&& value) { m_expireTime = std::move(value); }
111 inline DescribeKeyResult& WithExpireTime(const Aws::Utils::DateTime& value) { SetExpireTime(value); return *this;}
112 inline DescribeKeyResult& WithExpireTime(Aws::Utils::DateTime&& value) { SetExpireTime(std::move(value)); return *this;}
114
116
121 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
122 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTime = value; }
123 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTime = std::move(value); }
124 inline DescribeKeyResult& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
125 inline DescribeKeyResult& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
127
129
132 inline const Aws::String& GetDescription() const{ return m_description; }
133 inline void SetDescription(const Aws::String& value) { m_description = value; }
134 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
135 inline void SetDescription(const char* value) { m_description.assign(value); }
136 inline DescribeKeyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
137 inline DescribeKeyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
138 inline DescribeKeyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
140
142
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
146 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
147 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
148 inline DescribeKeyResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
149 inline DescribeKeyResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
150 inline DescribeKeyResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
151 inline DescribeKeyResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
152 inline DescribeKeyResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
153 inline DescribeKeyResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
154 inline DescribeKeyResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
155 inline DescribeKeyResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
156 inline DescribeKeyResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
158
160
161 inline const Aws::String& GetRequestId() const{ return m_requestId; }
162 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
163 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
164 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
165 inline DescribeKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
166 inline DescribeKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
167 inline DescribeKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
169 private:
170
171 Aws::String m_key;
172
173 Aws::String m_keyArn;
174
175 Aws::String m_keyName;
176
177 ApiKeyRestrictions m_restrictions;
178
179 Aws::Utils::DateTime m_createTime;
180
181 Aws::Utils::DateTime m_expireTime;
182
183 Aws::Utils::DateTime m_updateTime;
184
185 Aws::String m_description;
186
188
189 Aws::String m_requestId;
190 };
191
192} // namespace Model
193} // namespace LocationService
194} // namespace Aws
const Aws::Utils::DateTime & GetUpdateTime() const
DescribeKeyResult & AddTags(const Aws::String &key, Aws::String &&value)
DescribeKeyResult & WithUpdateTime(const Aws::Utils::DateTime &value)
DescribeKeyResult & WithKeyArn(const Aws::String &value)
DescribeKeyResult & AddTags(Aws::String &&key, Aws::String &&value)
DescribeKeyResult & WithExpireTime(const Aws::Utils::DateTime &value)
DescribeKeyResult & AddTags(const char *key, Aws::String &&value)
DescribeKeyResult & AddTags(Aws::String &&key, const Aws::String &value)
void SetCreateTime(Aws::Utils::DateTime &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeKeyResult & WithExpireTime(Aws::Utils::DateTime &&value)
DescribeKeyResult & WithKeyArn(const char *value)
void SetUpdateTime(const Aws::Utils::DateTime &value)
DescribeKeyResult & WithDescription(const Aws::String &value)
DescribeKeyResult & WithRestrictions(ApiKeyRestrictions &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeKeyResult & WithRequestId(Aws::String &&value)
DescribeKeyResult & WithCreateTime(const Aws::Utils::DateTime &value)
DescribeKeyResult & WithDescription(Aws::String &&value)
DescribeKeyResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeKeyResult & WithKey(const char *value)
const ApiKeyRestrictions & GetRestrictions() const
DescribeKeyResult & WithKeyName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::Utils::DateTime & GetExpireTime() const
DescribeKeyResult & WithRequestId(const char *value)
DescribeKeyResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeKeyResult & WithDescription(const char *value)
void SetRestrictions(const ApiKeyRestrictions &value)
void SetRestrictions(ApiKeyRestrictions &&value)
DescribeKeyResult & AddTags(const char *key, const char *value)
void SetExpireTime(Aws::Utils::DateTime &&value)
DescribeKeyResult & WithKey(Aws::String &&value)
AWS_LOCATIONSERVICE_API DescribeKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeKeyResult & AddTags(const Aws::String &key, const Aws::String &value)
DescribeKeyResult & WithKeyArn(Aws::String &&value)
DescribeKeyResult & WithRestrictions(const ApiKeyRestrictions &value)
AWS_LOCATIONSERVICE_API DescribeKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeKeyResult & AddTags(Aws::String &&key, const char *value)
DescribeKeyResult & WithKeyName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeKeyResult & WithUpdateTime(Aws::Utils::DateTime &&value)
DescribeKeyResult & WithCreateTime(Aws::Utils::DateTime &&value)
void SetExpireTime(const Aws::Utils::DateTime &value)
void SetUpdateTime(Aws::Utils::DateTime &&value)
DescribeKeyResult & WithRequestId(const Aws::String &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
DescribeKeyResult & WithKeyName(Aws::String &&value)
DescribeKeyResult & WithKey(const Aws::String &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