AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDeploymentRequest.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 
42  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
48  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
49 
54  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
55 
60  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
61 
66  inline CreateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
72  inline CreateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
73 
78  inline CreateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
79 
84  inline const Aws::String& GetStageName() const{ return m_stageName; }
85 
90  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
91 
96  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
97 
102  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
103 
108  inline CreateDeploymentRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
109 
114  inline CreateDeploymentRequest& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
115 
120  inline CreateDeploymentRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
121 
126  inline const Aws::String& GetStageDescription() const{ return m_stageDescription; }
127 
132  inline void SetStageDescription(const Aws::String& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = value; }
133 
138  inline void SetStageDescription(Aws::String&& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = value; }
139 
144  inline void SetStageDescription(const char* value) { m_stageDescriptionHasBeenSet = true; m_stageDescription.assign(value); }
145 
150  inline CreateDeploymentRequest& WithStageDescription(const Aws::String& value) { SetStageDescription(value); return *this;}
151 
156  inline CreateDeploymentRequest& WithStageDescription(Aws::String&& value) { SetStageDescription(value); return *this;}
157 
162  inline CreateDeploymentRequest& WithStageDescription(const char* value) { SetStageDescription(value); return *this;}
163 
167  inline const Aws::String& GetDescription() const{ return m_description; }
168 
172  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
173 
177  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
178 
182  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
183 
187  inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
188 
192  inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
193 
197  inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
198 
203  inline bool GetCacheClusterEnabled() const{ return m_cacheClusterEnabled; }
204 
209  inline void SetCacheClusterEnabled(bool value) { m_cacheClusterEnabledHasBeenSet = true; m_cacheClusterEnabled = value; }
210 
215  inline CreateDeploymentRequest& WithCacheClusterEnabled(bool value) { SetCacheClusterEnabled(value); return *this;}
216 
221  inline const CacheClusterSize& GetCacheClusterSize() const{ return m_cacheClusterSize; }
222 
227  inline void SetCacheClusterSize(const CacheClusterSize& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
228 
233  inline void SetCacheClusterSize(CacheClusterSize&& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
234 
239  inline CreateDeploymentRequest& WithCacheClusterSize(const CacheClusterSize& value) { SetCacheClusterSize(value); return *this;}
240 
245  inline CreateDeploymentRequest& WithCacheClusterSize(CacheClusterSize&& value) { SetCacheClusterSize(value); return *this;}
246 
253  inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
254 
261  inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
262 
269  inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = value; }
270 
277  inline CreateDeploymentRequest& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
278 
285  inline CreateDeploymentRequest& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(value); return *this;}
286 
293  inline CreateDeploymentRequest& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
294 
301  inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
302 
309  inline CreateDeploymentRequest& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
310 
317  inline CreateDeploymentRequest& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
318 
325  inline CreateDeploymentRequest& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
326 
333  inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
334 
341  inline CreateDeploymentRequest& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
342 
343  private:
344  Aws::String m_restApiId;
345  bool m_restApiIdHasBeenSet;
346  Aws::String m_stageName;
347  bool m_stageNameHasBeenSet;
348  Aws::String m_stageDescription;
349  bool m_stageDescriptionHasBeenSet;
350  Aws::String m_description;
351  bool m_descriptionHasBeenSet;
352  bool m_cacheClusterEnabled;
353  bool m_cacheClusterEnabledHasBeenSet;
354  CacheClusterSize m_cacheClusterSize;
355  bool m_cacheClusterSizeHasBeenSet;
357  bool m_variablesHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace APIGateway
362 } // namespace Aws
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeploymentRequest & AddVariables(Aws::String &&key, const Aws::String &value)
CreateDeploymentRequest & WithCacheClusterSize(const CacheClusterSize &value)
CreateDeploymentRequest & WithDescription(Aws::String &&value)
CreateDeploymentRequest & WithStageName(Aws::String &&value)
CreateDeploymentRequest & AddVariables(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
CreateDeploymentRequest & WithDescription(const Aws::String &value)
CreateDeploymentRequest & WithStageDescription(const Aws::String &value)
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentRequest & WithStageDescription(Aws::String &&value)
CreateDeploymentRequest & WithRestApiId(const char *value)
CreateDeploymentRequest & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentRequest & WithCacheClusterSize(CacheClusterSize &&value)
CreateDeploymentRequest & AddVariables(const char *key, Aws::String &&value)
CreateDeploymentRequest & WithStageName(const char *value)
CreateDeploymentRequest & WithDescription(const char *value)
const CacheClusterSize & GetCacheClusterSize() const
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
void SetCacheClusterSize(const CacheClusterSize &value)
CreateDeploymentRequest & WithStageName(const Aws::String &value)
CreateDeploymentRequest & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeploymentRequest & WithRestApiId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDeploymentRequest & WithRestApiId(Aws::String &&value)
#define AWS_APIGATEWAY_API
CreateDeploymentRequest & AddVariables(const Aws::String &key, const Aws::String &value)
CreateDeploymentRequest & WithStageDescription(const char *value)
CreateDeploymentRequest & AddVariables(const char *key, const char *value)
CreateDeploymentRequest & AddVariables(Aws::String &&key, const char *value)
CreateDeploymentRequest & WithCacheClusterEnabled(bool value)
CreateDeploymentRequest & AddVariables(Aws::String &&key, Aws::String &&value)
JSON (JavaScript Object Notation).