AWS SDK for C++  0.14.3
AWS SDK for C++
ApiKey.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace APIGateway
31 {
32 namespace Model
33 {
34 
42  {
43  public:
44  ApiKey();
45  ApiKey(const Aws::Utils::Json::JsonValue& jsonValue);
46  ApiKey& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline ApiKey& WithId(Aws::String&& value) { SetId(value); return *this;}
78 
82  inline ApiKey& WithId(const char* value) { SetId(value); return *this;}
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 
97  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 
107  inline ApiKey& WithName(const Aws::String& value) { SetName(value); return *this;}
108 
112  inline ApiKey& WithName(Aws::String&& value) { SetName(value); return *this;}
113 
117  inline ApiKey& WithName(const char* value) { SetName(value); return *this;}
118 
122  inline const Aws::String& GetDescription() const{ return m_description; }
123 
127  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
128 
132  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
133 
137  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
138 
142  inline ApiKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
143 
147  inline ApiKey& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
148 
152  inline ApiKey& WithDescription(const char* value) { SetDescription(value); return *this;}
153 
157  inline bool GetEnabled() const{ return m_enabled; }
158 
162  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
163 
167  inline ApiKey& WithEnabled(bool value) { SetEnabled(value); return *this;}
168 
173  inline const Aws::Vector<Aws::String>& GetStageKeys() const{ return m_stageKeys; }
174 
179  inline void SetStageKeys(const Aws::Vector<Aws::String>& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
180 
185  inline void SetStageKeys(Aws::Vector<Aws::String>&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
186 
191  inline ApiKey& WithStageKeys(const Aws::Vector<Aws::String>& value) { SetStageKeys(value); return *this;}
192 
197  inline ApiKey& WithStageKeys(Aws::Vector<Aws::String>&& value) { SetStageKeys(value); return *this;}
198 
203  inline ApiKey& AddStageKeys(const Aws::String& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
204 
209  inline ApiKey& AddStageKeys(Aws::String&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
210 
215  inline ApiKey& AddStageKeys(const char* value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
216 
222  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
223 
229  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
230 
236  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
237 
243  inline ApiKey& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
244 
250  inline ApiKey& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
251 
255  inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
256 
260  inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
261 
265  inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
266 
270  inline ApiKey& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
271 
275  inline ApiKey& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(value); return *this;}
276 
277  private:
278  Aws::String m_id;
279  bool m_idHasBeenSet;
280  Aws::String m_name;
281  bool m_nameHasBeenSet;
282  Aws::String m_description;
283  bool m_descriptionHasBeenSet;
284  bool m_enabled;
285  bool m_enabledHasBeenSet;
286  Aws::Vector<Aws::String> m_stageKeys;
287  bool m_stageKeysHasBeenSet;
288  Aws::Utils::DateTime m_createdDate;
289  bool m_createdDateHasBeenSet;
290  Aws::Utils::DateTime m_lastUpdatedDate;
291  bool m_lastUpdatedDateHasBeenSet;
292  };
293 
294 } // namespace Model
295 } // namespace APIGateway
296 } // namespace Aws
void SetDescription(Aws::String &&value)
Definition: ApiKey.h:132
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition: ApiKey.h:260
const Aws::String & GetId() const
Definition: ApiKey.h:52
ApiKey & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition: ApiKey.h:275
void SetDescription(const char *value)
Definition: ApiKey.h:137
ApiKey & WithId(const char *value)
Definition: ApiKey.h:82
bool GetEnabled() const
Definition: ApiKey.h:157
const Aws::String & GetName() const
Definition: ApiKey.h:87
const Aws::String & GetDescription() const
Definition: ApiKey.h:122
ApiKey & AddStageKeys(const Aws::String &value)
Definition: ApiKey.h:203
void SetEnabled(bool value)
Definition: ApiKey.h:162
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ApiKey & WithDescription(Aws::String &&value)
Definition: ApiKey.h:147
ApiKey & WithDescription(const char *value)
Definition: ApiKey.h:152
ApiKey & WithId(Aws::String &&value)
Definition: ApiKey.h:77
void SetName(const char *value)
Definition: ApiKey.h:102
ApiKey & WithEnabled(bool value)
Definition: ApiKey.h:167
void SetId(const Aws::String &value)
Definition: ApiKey.h:57
ApiKey & WithName(const char *value)
Definition: ApiKey.h:117
const Aws::Vector< Aws::String > & GetStageKeys() const
Definition: ApiKey.h:173
ApiKey & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition: ApiKey.h:250
ApiKey & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition: ApiKey.h:270
ApiKey & WithName(const Aws::String &value)
Definition: ApiKey.h:107
ApiKey & AddStageKeys(const char *value)
Definition: ApiKey.h:215
ApiKey & WithName(Aws::String &&value)
Definition: ApiKey.h:112
ApiKey & WithStageKeys(const Aws::Vector< Aws::String > &value)
Definition: ApiKey.h:191
ApiKey & WithId(const Aws::String &value)
Definition: ApiKey.h:72
ApiKey & AddStageKeys(Aws::String &&value)
Definition: ApiKey.h:209
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition: ApiKey.h:255
void SetStageKeys(const Aws::Vector< Aws::String > &value)
Definition: ApiKey.h:179
const Aws::Utils::DateTime & GetCreatedDate() const
Definition: ApiKey.h:222
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition: ApiKey.h:265
void SetId(Aws::String &&value)
Definition: ApiKey.h:62
ApiKey & WithDescription(const Aws::String &value)
Definition: ApiKey.h:142
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition: ApiKey.h:229
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition: ApiKey.h:236
void SetName(const Aws::String &value)
Definition: ApiKey.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ApiKey & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition: ApiKey.h:243
void SetId(const char *value)
Definition: ApiKey.h:67
#define AWS_APIGATEWAY_API
void SetDescription(const Aws::String &value)
Definition: ApiKey.h:127
ApiKey & WithStageKeys(Aws::Vector< Aws::String > &&value)
Definition: ApiKey.h:197
void SetName(Aws::String &&value)
Definition: ApiKey.h:97
JSON (JavaScript Object Notation).
void SetStageKeys(Aws::Vector< Aws::String > &&value)
Definition: ApiKey.h:185