AWS SDK for C++  0.14.3
AWS SDK for C++
GetApiKeyResult.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 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
44  {
45  public:
49 
53  inline const Aws::String& GetId() const{ return m_id; }
54 
58  inline void SetId(const Aws::String& value) { m_id = value; }
59 
63  inline void SetId(Aws::String&& value) { m_id = value; }
64 
68  inline void SetId(const char* value) { m_id.assign(value); }
69 
73  inline GetApiKeyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
78  inline GetApiKeyResult& WithId(Aws::String&& value) { SetId(value); return *this;}
79 
83  inline GetApiKeyResult& WithId(const char* value) { SetId(value); return *this;}
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline void SetName(const Aws::String& value) { m_name = value; }
94 
98  inline void SetName(Aws::String&& value) { m_name = value; }
99 
103  inline void SetName(const char* value) { m_name.assign(value); }
104 
108  inline GetApiKeyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
109 
113  inline GetApiKeyResult& WithName(Aws::String&& value) { SetName(value); return *this;}
114 
118  inline GetApiKeyResult& WithName(const char* value) { SetName(value); return *this;}
119 
123  inline const Aws::String& GetDescription() const{ return m_description; }
124 
128  inline void SetDescription(const Aws::String& value) { m_description = value; }
129 
133  inline void SetDescription(Aws::String&& value) { m_description = value; }
134 
138  inline void SetDescription(const char* value) { m_description.assign(value); }
139 
143  inline GetApiKeyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
144 
148  inline GetApiKeyResult& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
149 
153  inline GetApiKeyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
154 
158  inline bool GetEnabled() const{ return m_enabled; }
159 
163  inline void SetEnabled(bool value) { m_enabled = value; }
164 
168  inline GetApiKeyResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
169 
174  inline const Aws::Vector<Aws::String>& GetStageKeys() const{ return m_stageKeys; }
175 
180  inline void SetStageKeys(const Aws::Vector<Aws::String>& value) { m_stageKeys = value; }
181 
186  inline void SetStageKeys(Aws::Vector<Aws::String>&& value) { m_stageKeys = value; }
187 
192  inline GetApiKeyResult& WithStageKeys(const Aws::Vector<Aws::String>& value) { SetStageKeys(value); return *this;}
193 
198  inline GetApiKeyResult& WithStageKeys(Aws::Vector<Aws::String>&& value) { SetStageKeys(value); return *this;}
199 
204  inline GetApiKeyResult& AddStageKeys(const Aws::String& value) { m_stageKeys.push_back(value); return *this; }
205 
210  inline GetApiKeyResult& AddStageKeys(Aws::String&& value) { m_stageKeys.push_back(value); return *this; }
211 
216  inline GetApiKeyResult& AddStageKeys(const char* value) { m_stageKeys.push_back(value); return *this; }
217 
223  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
224 
230  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
231 
237  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = value; }
238 
244  inline GetApiKeyResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
245 
251  inline GetApiKeyResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
252 
256  inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
257 
261  inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
262 
266  inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = value; }
267 
271  inline GetApiKeyResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
272 
276  inline GetApiKeyResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(value); return *this;}
277 
278  private:
279  Aws::String m_id;
280  Aws::String m_name;
281  Aws::String m_description;
282  bool m_enabled;
283  Aws::Vector<Aws::String> m_stageKeys;
284  Aws::Utils::DateTime m_createdDate;
285  Aws::Utils::DateTime m_lastUpdatedDate;
286  };
287 
288 } // namespace Model
289 } // namespace APIGateway
290 } // namespace Aws
void SetDescription(Aws::String &&value)
GetApiKeyResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
GetApiKeyResult & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
const Aws::String & GetDescription() const
GetApiKeyResult & WithId(const char *value)
const Aws::Utils::DateTime & GetCreatedDate() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetApiKeyResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
const Aws::String & GetName() const
GetApiKeyResult & WithStageKeys(Aws::Vector< Aws::String > &&value)
void SetStageKeys(Aws::Vector< Aws::String > &&value)
GetApiKeyResult & WithName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetStageKeys() const
GetApiKeyResult & WithCreatedDate(Aws::Utils::DateTime &&value)
GetApiKeyResult & WithDescription(const Aws::String &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
GetApiKeyResult & AddStageKeys(const char *value)
GetApiKeyResult & AddStageKeys(const Aws::String &value)
GetApiKeyResult & WithCreatedDate(const Aws::Utils::DateTime &value)
GetApiKeyResult & WithDescription(Aws::String &&value)
void SetName(const Aws::String &value)
void SetStageKeys(const Aws::Vector< Aws::String > &value)
GetApiKeyResult & WithId(Aws::String &&value)
GetApiKeyResult & WithEnabled(bool value)
void SetDescription(const Aws::String &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
GetApiKeyResult & AddStageKeys(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetApiKeyResult & WithStageKeys(const Aws::Vector< Aws::String > &value)
void SetId(const Aws::String &value)
const Aws::String & GetId() const
#define AWS_APIGATEWAY_API
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
GetApiKeyResult & WithName(const char *value)
JSON (JavaScript Object Notation).
GetApiKeyResult & WithId(const Aws::String &value)
GetApiKeyResult & WithDescription(const char *value)