AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApiKey.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway
25{
26namespace Model
27{
28
37 class ApiKey
38 {
39 public:
40 AWS_APIGATEWAY_API ApiKey() = default;
41 AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APIGATEWAY_API ApiKey& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 ApiKey& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template<typename ValueT = Aws::String>
65 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
66 template<typename ValueT = Aws::String>
67 ApiKey& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 ApiKey& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
87 inline const Aws::String& GetCustomerId() const { return m_customerId; }
88 inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
89 template<typename CustomerIdT = Aws::String>
90 void SetCustomerId(CustomerIdT&& value) { m_customerIdHasBeenSet = true; m_customerId = std::forward<CustomerIdT>(value); }
91 template<typename CustomerIdT = Aws::String>
92 ApiKey& WithCustomerId(CustomerIdT&& value) { SetCustomerId(std::forward<CustomerIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 ApiKey& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
111 inline bool GetEnabled() const { return m_enabled; }
112 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
113 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
114 inline ApiKey& WithEnabled(bool value) { SetEnabled(value); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
122 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
123 template<typename CreatedDateT = Aws::Utils::DateTime>
124 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
125 template<typename CreatedDateT = Aws::Utils::DateTime>
126 ApiKey& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
134 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
135 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
136 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
137 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
138 ApiKey& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
140
142
145 inline const Aws::Vector<Aws::String>& GetStageKeys() const { return m_stageKeys; }
146 inline bool StageKeysHasBeenSet() const { return m_stageKeysHasBeenSet; }
147 template<typename StageKeysT = Aws::Vector<Aws::String>>
148 void SetStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = std::forward<StageKeysT>(value); }
149 template<typename StageKeysT = Aws::Vector<Aws::String>>
150 ApiKey& WithStageKeys(StageKeysT&& value) { SetStageKeys(std::forward<StageKeysT>(value)); return *this;}
151 template<typename StageKeysT = Aws::String>
152 ApiKey& AddStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.emplace_back(std::forward<StageKeysT>(value)); return *this; }
154
156
160 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
161 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
162 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
164 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 ApiKey& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
166 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 ApiKey& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
169 }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
176 template<typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
178 template<typename RequestIdT = Aws::String>
179 ApiKey& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
181 private:
182
183 Aws::String m_id;
184 bool m_idHasBeenSet = false;
185
186 Aws::String m_value;
187 bool m_valueHasBeenSet = false;
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 Aws::String m_customerId;
193 bool m_customerIdHasBeenSet = false;
194
195 Aws::String m_description;
196 bool m_descriptionHasBeenSet = false;
197
198 bool m_enabled{false};
199 bool m_enabledHasBeenSet = false;
200
201 Aws::Utils::DateTime m_createdDate{};
202 bool m_createdDateHasBeenSet = false;
203
204 Aws::Utils::DateTime m_lastUpdatedDate{};
205 bool m_lastUpdatedDateHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_stageKeys;
208 bool m_stageKeysHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212
213 Aws::String m_requestId;
214 bool m_requestIdHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace APIGateway
219} // namespace Aws
ApiKey & WithLastUpdatedDate(LastUpdatedDateT &&value)
Definition ApiKey.h:138
void SetValue(ValueT &&value)
Definition ApiKey.h:65
void SetStageKeys(StageKeysT &&value)
Definition ApiKey.h:148
ApiKey & WithStageKeys(StageKeysT &&value)
Definition ApiKey.h:150
AWS_APIGATEWAY_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StageKeysHasBeenSet() const
Definition ApiKey.h:146
const Aws::Vector< Aws::String > & GetStageKeys() const
Definition ApiKey.h:145
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & WithId(IdT &&value)
Definition ApiKey.h:55
bool CreatedDateHasBeenSet() const
Definition ApiKey.h:122
void SetId(IdT &&value)
Definition ApiKey.h:53
void SetName(NameT &&value)
Definition ApiKey.h:77
void SetCustomerId(CustomerIdT &&value)
Definition ApiKey.h:90
ApiKey & WithCustomerId(CustomerIdT &&value)
Definition ApiKey.h:92
bool EnabledHasBeenSet() const
Definition ApiKey.h:112
bool LastUpdatedDateHasBeenSet() const
Definition ApiKey.h:134
const Aws::String & GetValue() const
Definition ApiKey.h:62
bool ValueHasBeenSet() const
Definition ApiKey.h:63
bool NameHasBeenSet() const
Definition ApiKey.h:75
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition ApiKey.h:133
ApiKey & WithRequestId(RequestIdT &&value)
Definition ApiKey.h:179
void SetTags(TagsT &&value)
Definition ApiKey.h:163
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition ApiKey.h:136
ApiKey & WithCreatedDate(CreatedDateT &&value)
Definition ApiKey.h:126
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition ApiKey.h:160
void SetRequestId(RequestIdT &&value)
Definition ApiKey.h:177
void SetEnabled(bool value)
Definition ApiKey.h:113
const Aws::String & GetRequestId() const
Definition ApiKey.h:174
void SetCreatedDate(CreatedDateT &&value)
Definition ApiKey.h:124
AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
ApiKey & WithEnabled(bool value)
Definition ApiKey.h:114
ApiKey & WithDescription(DescriptionT &&value)
Definition ApiKey.h:104
bool RequestIdHasBeenSet() const
Definition ApiKey.h:175
const Aws::Utils::DateTime & GetCreatedDate() const
Definition ApiKey.h:121
ApiKey & WithValue(ValueT &&value)
Definition ApiKey.h:67
const Aws::String & GetCustomerId() const
Definition ApiKey.h:87
const Aws::String & GetDescription() const
Definition ApiKey.h:99
const Aws::String & GetName() const
Definition ApiKey.h:74
AWS_APIGATEWAY_API ApiKey()=default
ApiKey & AddStageKeys(StageKeysT &&value)
Definition ApiKey.h:152
bool CustomerIdHasBeenSet() const
Definition ApiKey.h:88
bool DescriptionHasBeenSet() const
Definition ApiKey.h:100
void SetDescription(DescriptionT &&value)
Definition ApiKey.h:102
ApiKey & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition ApiKey.h:167
ApiKey & WithName(NameT &&value)
Definition ApiKey.h:79
const Aws::String & GetId() const
Definition ApiKey.h:50
ApiKey & WithTags(TagsT &&value)
Definition ApiKey.h:165
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