AWS SDK for C++  0.14.3
AWS SDK for C++
Stage.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
23 
24 namespace Aws
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 {
37 
43  {
44  public:
45  Stage();
46  Stage(const Aws::Utils::Json::JsonValue& jsonValue);
47  Stage& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
54 
58  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
59 
63  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
64 
68  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
69 
73  inline Stage& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
74 
78  inline Stage& WithDeploymentId(Aws::String&& value) { SetDeploymentId(value); return *this;}
79 
83  inline Stage& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
84 
85 
86  inline const Aws::String& GetClientCertificateId() const{ return m_clientCertificateId; }
87 
88 
89  inline void SetClientCertificateId(const Aws::String& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
90 
91 
92  inline void SetClientCertificateId(Aws::String&& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
93 
94 
95  inline void SetClientCertificateId(const char* value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId.assign(value); }
96 
97 
98  inline Stage& WithClientCertificateId(const Aws::String& value) { SetClientCertificateId(value); return *this;}
99 
100 
101  inline Stage& WithClientCertificateId(Aws::String&& value) { SetClientCertificateId(value); return *this;}
102 
103 
104  inline Stage& WithClientCertificateId(const char* value) { SetClientCertificateId(value); return *this;}
105 
110  inline const Aws::String& GetStageName() const{ return m_stageName; }
111 
116  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
117 
122  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
123 
128  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
129 
134  inline Stage& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
135 
140  inline Stage& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
141 
146  inline Stage& WithStageName(const char* value) { SetStageName(value); return *this;}
147 
151  inline const Aws::String& GetDescription() const{ return m_description; }
152 
156  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
157 
161  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
162 
166  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
167 
171  inline Stage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
172 
176  inline Stage& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
177 
181  inline Stage& WithDescription(const char* value) { SetDescription(value); return *this;}
182 
186  inline bool GetCacheClusterEnabled() const{ return m_cacheClusterEnabled; }
187 
191  inline void SetCacheClusterEnabled(bool value) { m_cacheClusterEnabledHasBeenSet = true; m_cacheClusterEnabled = value; }
192 
196  inline Stage& WithCacheClusterEnabled(bool value) { SetCacheClusterEnabled(value); return *this;}
197 
201  inline const CacheClusterSize& GetCacheClusterSize() const{ return m_cacheClusterSize; }
202 
206  inline void SetCacheClusterSize(const CacheClusterSize& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
207 
211  inline void SetCacheClusterSize(CacheClusterSize&& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
212 
216  inline Stage& WithCacheClusterSize(const CacheClusterSize& value) { SetCacheClusterSize(value); return *this;}
217 
221  inline Stage& WithCacheClusterSize(CacheClusterSize&& value) { SetCacheClusterSize(value); return *this;}
222 
226  inline const CacheClusterStatus& GetCacheClusterStatus() const{ return m_cacheClusterStatus; }
227 
231  inline void SetCacheClusterStatus(const CacheClusterStatus& value) { m_cacheClusterStatusHasBeenSet = true; m_cacheClusterStatus = value; }
232 
236  inline void SetCacheClusterStatus(CacheClusterStatus&& value) { m_cacheClusterStatusHasBeenSet = true; m_cacheClusterStatus = value; }
237 
241  inline Stage& WithCacheClusterStatus(const CacheClusterStatus& value) { SetCacheClusterStatus(value); return *this;}
242 
246  inline Stage& WithCacheClusterStatus(CacheClusterStatus&& value) { SetCacheClusterStatus(value); return *this;}
247 
254  inline const Aws::Map<Aws::String, MethodSetting>& GetMethodSettings() const{ return m_methodSettings; }
255 
262  inline void SetMethodSettings(const Aws::Map<Aws::String, MethodSetting>& value) { m_methodSettingsHasBeenSet = true; m_methodSettings = value; }
263 
270  inline void SetMethodSettings(Aws::Map<Aws::String, MethodSetting>&& value) { m_methodSettingsHasBeenSet = true; m_methodSettings = value; }
271 
278  inline Stage& WithMethodSettings(const Aws::Map<Aws::String, MethodSetting>& value) { SetMethodSettings(value); return *this;}
279 
286  inline Stage& WithMethodSettings(Aws::Map<Aws::String, MethodSetting>&& value) { SetMethodSettings(value); return *this;}
287 
294  inline Stage& AddMethodSettings(const Aws::String& key, const MethodSetting& value) { m_methodSettingsHasBeenSet = true; m_methodSettings[key] = value; return *this; }
295 
302  inline Stage& AddMethodSettings(Aws::String&& key, const MethodSetting& value) { m_methodSettingsHasBeenSet = true; m_methodSettings[key] = value; return *this; }
303 
310  inline Stage& AddMethodSettings(const Aws::String& key, MethodSetting&& value) { m_methodSettingsHasBeenSet = true; m_methodSettings[key] = value; return *this; }
311 
318  inline Stage& AddMethodSettings(Aws::String&& key, MethodSetting&& value) { m_methodSettingsHasBeenSet = true; m_methodSettings[key] = value; return *this; }
319 
326  inline Stage& AddMethodSettings(const char* key, MethodSetting&& value) { m_methodSettingsHasBeenSet = true; m_methodSettings[key] = value; return *this; }
327 
334  inline Stage& AddMethodSettings(const char* key, const MethodSetting& value) { m_methodSettingsHasBeenSet = true; m_methodSettings[key] = value; return *this; }
335 
341  inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
342 
348  inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
349 
355  inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = value; }
356 
362  inline Stage& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
363 
369  inline Stage& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(value); return *this;}
370 
376  inline Stage& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
377 
383  inline Stage& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
384 
390  inline Stage& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
391 
397  inline Stage& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
398 
404  inline Stage& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
405 
411  inline Stage& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
412 
418  inline Stage& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables[key] = value; return *this; }
419 
425  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
426 
432  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
433 
439  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
440 
446  inline Stage& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
447 
453  inline Stage& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
454 
460  inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
461 
467  inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
468 
474  inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
475 
481  inline Stage& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
482 
488  inline Stage& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(value); return *this;}
489 
490  private:
491  Aws::String m_deploymentId;
492  bool m_deploymentIdHasBeenSet;
493  Aws::String m_clientCertificateId;
494  bool m_clientCertificateIdHasBeenSet;
495  Aws::String m_stageName;
496  bool m_stageNameHasBeenSet;
497  Aws::String m_description;
498  bool m_descriptionHasBeenSet;
499  bool m_cacheClusterEnabled;
500  bool m_cacheClusterEnabledHasBeenSet;
501  CacheClusterSize m_cacheClusterSize;
502  bool m_cacheClusterSizeHasBeenSet;
503  CacheClusterStatus m_cacheClusterStatus;
504  bool m_cacheClusterStatusHasBeenSet;
505  Aws::Map<Aws::String, MethodSetting> m_methodSettings;
506  bool m_methodSettingsHasBeenSet;
508  bool m_variablesHasBeenSet;
509  Aws::Utils::DateTime m_createdDate;
510  bool m_createdDateHasBeenSet;
511  Aws::Utils::DateTime m_lastUpdatedDate;
512  bool m_lastUpdatedDateHasBeenSet;
513  };
514 
515 } // namespace Model
516 } // namespace APIGateway
517 } // namespace Aws
void SetStageName(const Aws::String &value)
Definition: Stage.h:116
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition: Stage.h:460
Stage & AddVariables(const char *key, Aws::String &&value)
Definition: Stage.h:404
Stage & AddMethodSettings(Aws::String &&key, const MethodSetting &value)
Definition: Stage.h:302
Stage & AddVariables(Aws::String &&key, const Aws::String &value)
Definition: Stage.h:383
void SetStageName(Aws::String &&value)
Definition: Stage.h:122
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition: Stage.h:467
Stage & WithCacheClusterStatus(const CacheClusterStatus &value)
Definition: Stage.h:241
void SetCacheClusterStatus(CacheClusterStatus &&value)
Definition: Stage.h:236
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetClientCertificateId(Aws::String &&value)
Definition: Stage.h:92
Stage & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition: Stage.h:481
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition: Stage.h:439
Stage & WithMethodSettings(const Aws::Map< Aws::String, MethodSetting > &value)
Definition: Stage.h:278
Stage & AddMethodSettings(const char *key, MethodSetting &&value)
Definition: Stage.h:326
void SetCacheClusterEnabled(bool value)
Definition: Stage.h:191
Stage & WithClientCertificateId(const char *value)
Definition: Stage.h:104
Stage & AddMethodSettings(const Aws::String &key, const MethodSetting &value)
Definition: Stage.h:294
Stage & AddVariables(const Aws::String &key, const Aws::String &value)
Definition: Stage.h:376
void SetClientCertificateId(const Aws::String &value)
Definition: Stage.h:89
Stage & AddMethodSettings(const Aws::String &key, MethodSetting &&value)
Definition: Stage.h:310
void SetCacheClusterSize(CacheClusterSize &&value)
Definition: Stage.h:211
Stage & AddVariables(Aws::String &&key, const char *value)
Definition: Stage.h:411
Stage & WithDescription(const char *value)
Definition: Stage.h:181
Stage & WithStageName(Aws::String &&value)
Definition: Stage.h:140
const Aws::String & GetDescription() const
Definition: Stage.h:151
Stage & WithDescription(Aws::String &&value)
Definition: Stage.h:176
Stage & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Stage.h:362
Stage & WithCacheClusterSize(CacheClusterSize &&value)
Definition: Stage.h:221
const Aws::String & GetDeploymentId() const
Definition: Stage.h:53
void SetDeploymentId(Aws::String &&value)
Definition: Stage.h:63
void SetClientCertificateId(const char *value)
Definition: Stage.h:95
void SetCacheClusterStatus(const CacheClusterStatus &value)
Definition: Stage.h:231
const CacheClusterSize & GetCacheClusterSize() const
Definition: Stage.h:201
Stage & WithClientCertificateId(const Aws::String &value)
Definition: Stage.h:98
Stage & WithCacheClusterEnabled(bool value)
Definition: Stage.h:196
void SetDeploymentId(const Aws::String &value)
Definition: Stage.h:58
Stage & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition: Stage.h:453
Stage & WithDeploymentId(Aws::String &&value)
Definition: Stage.h:78
Stage & WithDescription(const Aws::String &value)
Definition: Stage.h:171
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition: Stage.h:341
Stage & WithCacheClusterStatus(CacheClusterStatus &&value)
Definition: Stage.h:246
void SetStageName(const char *value)
Definition: Stage.h:128
void SetMethodSettings(Aws::Map< Aws::String, MethodSetting > &&value)
Definition: Stage.h:270
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition: Stage.h:474
const Aws::Utils::DateTime & GetCreatedDate() const
Definition: Stage.h:425
Stage & WithMethodSettings(Aws::Map< Aws::String, MethodSetting > &&value)
Definition: Stage.h:286
Stage & WithClientCertificateId(Aws::String &&value)
Definition: Stage.h:101
Stage & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition: Stage.h:446
void SetCacheClusterSize(const CacheClusterSize &value)
Definition: Stage.h:206
Stage & WithCacheClusterSize(const CacheClusterSize &value)
Definition: Stage.h:216
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Stage.h:355
void SetDescription(const Aws::String &value)
Definition: Stage.h:156
const CacheClusterStatus & GetCacheClusterStatus() const
Definition: Stage.h:226
#define AWS_APIGATEWAY_API
Stage & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition: Stage.h:488
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Stage.h:348
Stage & WithDeploymentId(const char *value)
Definition: Stage.h:83
bool GetCacheClusterEnabled() const
Definition: Stage.h:186
void SetDeploymentId(const char *value)
Definition: Stage.h:68
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition: Stage.h:432
void SetMethodSettings(const Aws::Map< Aws::String, MethodSetting > &value)
Definition: Stage.h:262
Stage & AddMethodSettings(Aws::String &&key, MethodSetting &&value)
Definition: Stage.h:318
const Aws::String & GetClientCertificateId() const
Definition: Stage.h:86
Stage & AddMethodSettings(const char *key, const MethodSetting &value)
Definition: Stage.h:334
Stage & AddVariables(const Aws::String &key, Aws::String &&value)
Definition: Stage.h:390
Stage & WithDeploymentId(const Aws::String &value)
Definition: Stage.h:73
Stage & AddVariables(Aws::String &&key, Aws::String &&value)
Definition: Stage.h:397
Stage & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Stage.h:369
void SetDescription(const char *value)
Definition: Stage.h:166
const Aws::String & GetStageName() const
Definition: Stage.h:110
Stage & WithStageName(const Aws::String &value)
Definition: Stage.h:134
Stage & AddVariables(const char *key, const char *value)
Definition: Stage.h:418
Stage & WithStageName(const char *value)
Definition: Stage.h:146
const Aws::Map< Aws::String, MethodSetting > & GetMethodSettings() const
Definition: Stage.h:254
JSON (JavaScript Object Notation).
void SetDescription(Aws::String &&value)
Definition: Stage.h:161