AWS SDK for C++  0.14.3
AWS SDK for C++
CreateApiKeyRequest.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
21 
22 namespace Aws
23 {
24 namespace APIGateway
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 
51  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 
61  inline CreateApiKeyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 
66  inline CreateApiKeyRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
67 
71  inline CreateApiKeyRequest& WithName(const char* value) { SetName(value); return *this;}
72 
76  inline const Aws::String& GetDescription() const{ return m_description; }
77 
81  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 
86  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 
91  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
92 
96  inline CreateApiKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 
101  inline CreateApiKeyRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
102 
106  inline CreateApiKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107 
111  inline bool GetEnabled() const{ return m_enabled; }
112 
116  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
117 
121  inline CreateApiKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
122 
126  inline const Aws::Vector<StageKey>& GetStageKeys() const{ return m_stageKeys; }
127 
131  inline void SetStageKeys(const Aws::Vector<StageKey>& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
132 
136  inline void SetStageKeys(Aws::Vector<StageKey>&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
137 
141  inline CreateApiKeyRequest& WithStageKeys(const Aws::Vector<StageKey>& value) { SetStageKeys(value); return *this;}
142 
146  inline CreateApiKeyRequest& WithStageKeys(Aws::Vector<StageKey>&& value) { SetStageKeys(value); return *this;}
147 
151  inline CreateApiKeyRequest& AddStageKeys(const StageKey& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
152 
156  inline CreateApiKeyRequest& AddStageKeys(StageKey&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
157 
158  private:
159  Aws::String m_name;
160  bool m_nameHasBeenSet;
161  Aws::String m_description;
162  bool m_descriptionHasBeenSet;
163  bool m_enabled;
164  bool m_enabledHasBeenSet;
165  Aws::Vector<StageKey> m_stageKeys;
166  bool m_stageKeysHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace APIGateway
171 } // namespace Aws
CreateApiKeyRequest & WithName(Aws::String &&value)
CreateApiKeyRequest & WithDescription(const char *value)
void SetStageKeys(Aws::Vector< StageKey > &&value)
CreateApiKeyRequest & WithDescription(const Aws::String &value)
CreateApiKeyRequest & WithEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateApiKeyRequest & WithName(const Aws::String &value)
CreateApiKeyRequest & WithStageKeys(const Aws::Vector< StageKey > &value)
CreateApiKeyRequest & WithName(const char *value)
CreateApiKeyRequest & WithStageKeys(Aws::Vector< StageKey > &&value)
const Aws::Vector< StageKey > & GetStageKeys() const
void SetDescription(const Aws::String &value)
CreateApiKeyRequest & AddStageKeys(StageKey &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
void SetStageKeys(const Aws::Vector< StageKey > &value)
CreateApiKeyRequest & AddStageKeys(const StageKey &value)
CreateApiKeyRequest & WithDescription(Aws::String &&value)
JSON (JavaScript Object Notation).