AWS SDK for C++  1.9.18
AWS SDK for C++
CreateDeploymentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace APIGateway
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
46 
50  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
51 
55  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
56 
60  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
61 
65  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
66 
70  inline CreateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
71 
75  inline CreateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
76 
80  inline CreateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
81 
82 
87  inline const Aws::String& GetStageName() const{ return m_stageName; }
88 
93  inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
94 
99  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
100 
105  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
106 
111  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
112 
117  inline CreateDeploymentRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
118 
123  inline CreateDeploymentRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
124 
129  inline CreateDeploymentRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
130 
131 
136  inline const Aws::String& GetStageDescription() const{ return m_stageDescription; }
137 
142  inline bool StageDescriptionHasBeenSet() const { return m_stageDescriptionHasBeenSet; }
143 
148  inline void SetStageDescription(const Aws::String& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = value; }
149 
154  inline void SetStageDescription(Aws::String&& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = std::move(value); }
155 
160  inline void SetStageDescription(const char* value) { m_stageDescriptionHasBeenSet = true; m_stageDescription.assign(value); }
161 
166  inline CreateDeploymentRequest& WithStageDescription(const Aws::String& value) { SetStageDescription(value); return *this;}
167 
172  inline CreateDeploymentRequest& WithStageDescription(Aws::String&& value) { SetStageDescription(std::move(value)); return *this;}
173 
178  inline CreateDeploymentRequest& WithStageDescription(const char* value) { SetStageDescription(value); return *this;}
179 
180 
184  inline const Aws::String& GetDescription() const{ return m_description; }
185 
189  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
190 
194  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
195 
199  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
200 
204  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
205 
209  inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
210 
214  inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
215 
219  inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
220 
221 
226  inline bool GetCacheClusterEnabled() const{ return m_cacheClusterEnabled; }
227 
232  inline bool CacheClusterEnabledHasBeenSet() const { return m_cacheClusterEnabledHasBeenSet; }
233 
238  inline void SetCacheClusterEnabled(bool value) { m_cacheClusterEnabledHasBeenSet = true; m_cacheClusterEnabled = value; }
239 
244  inline CreateDeploymentRequest& WithCacheClusterEnabled(bool value) { SetCacheClusterEnabled(value); return *this;}
245 
246 
251  inline const CacheClusterSize& GetCacheClusterSize() const{ return m_cacheClusterSize; }
252 
257  inline bool CacheClusterSizeHasBeenSet() const { return m_cacheClusterSizeHasBeenSet; }
258 
263  inline void SetCacheClusterSize(const CacheClusterSize& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
264 
269  inline void SetCacheClusterSize(CacheClusterSize&& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = std::move(value); }
270 
275  inline CreateDeploymentRequest& WithCacheClusterSize(const CacheClusterSize& value) { SetCacheClusterSize(value); return *this;}
276 
281  inline CreateDeploymentRequest& WithCacheClusterSize(CacheClusterSize&& value) { SetCacheClusterSize(std::move(value)); return *this;}
282 
283 
290  inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
291 
298  inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
299 
306  inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
307 
314  inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
315 
322  inline CreateDeploymentRequest& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
323 
330  inline CreateDeploymentRequest& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
331 
338  inline CreateDeploymentRequest& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
339 
346  inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
347 
354  inline CreateDeploymentRequest& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
355 
362  inline CreateDeploymentRequest& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
363 
370  inline CreateDeploymentRequest& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
371 
378  inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
379 
386  inline CreateDeploymentRequest& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
387 
388 
393  inline const DeploymentCanarySettings& GetCanarySettings() const{ return m_canarySettings; }
394 
399  inline bool CanarySettingsHasBeenSet() const { return m_canarySettingsHasBeenSet; }
400 
405  inline void SetCanarySettings(const DeploymentCanarySettings& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = value; }
406 
411  inline void SetCanarySettings(DeploymentCanarySettings&& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = std::move(value); }
412 
417  inline CreateDeploymentRequest& WithCanarySettings(const DeploymentCanarySettings& value) { SetCanarySettings(value); return *this;}
418 
423  inline CreateDeploymentRequest& WithCanarySettings(DeploymentCanarySettings&& value) { SetCanarySettings(std::move(value)); return *this;}
424 
425 
430  inline bool GetTracingEnabled() const{ return m_tracingEnabled; }
431 
436  inline bool TracingEnabledHasBeenSet() const { return m_tracingEnabledHasBeenSet; }
437 
442  inline void SetTracingEnabled(bool value) { m_tracingEnabledHasBeenSet = true; m_tracingEnabled = value; }
443 
448  inline CreateDeploymentRequest& WithTracingEnabled(bool value) { SetTracingEnabled(value); return *this;}
449 
450  private:
451 
452  Aws::String m_restApiId;
453  bool m_restApiIdHasBeenSet;
454 
455  Aws::String m_stageName;
456  bool m_stageNameHasBeenSet;
457 
458  Aws::String m_stageDescription;
459  bool m_stageDescriptionHasBeenSet;
460 
461  Aws::String m_description;
462  bool m_descriptionHasBeenSet;
463 
464  bool m_cacheClusterEnabled;
465  bool m_cacheClusterEnabledHasBeenSet;
466 
467  CacheClusterSize m_cacheClusterSize;
468  bool m_cacheClusterSizeHasBeenSet;
469 
471  bool m_variablesHasBeenSet;
472 
473  DeploymentCanarySettings m_canarySettings;
474  bool m_canarySettingsHasBeenSet;
475 
476  bool m_tracingEnabled;
477  bool m_tracingEnabledHasBeenSet;
478  };
479 
480 } // namespace Model
481 } // namespace APIGateway
482 } // namespace Aws
Aws::APIGateway::Model::CreateDeploymentRequest::SetTracingEnabled
void SetTracingEnabled(bool value)
Definition: CreateDeploymentRequest.h:442
Aws::APIGateway::Model::CreateDeploymentRequest::WithRestApiId
CreateDeploymentRequest & WithRestApiId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:75
Aws::APIGateway::Model::CreateDeploymentRequest::SetCacheClusterEnabled
void SetCacheClusterEnabled(bool value)
Definition: CreateDeploymentRequest.h:238
Aws::APIGateway::Model::CreateDeploymentRequest::WithDescription
CreateDeploymentRequest & WithDescription(const Aws::String &value)
Definition: CreateDeploymentRequest.h:209
Aws::APIGateway::Model::CreateDeploymentRequest
Definition: CreateDeploymentRequest.h:29
Aws::APIGateway::Model::CreateDeploymentRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateDeploymentRequest.h:184
Aws::APIGateway::Model::CreateDeploymentRequest::StageNameHasBeenSet
bool StageNameHasBeenSet() const
Definition: CreateDeploymentRequest.h:93
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateDeploymentRequest::WithRestApiId
CreateDeploymentRequest & WithRestApiId(const char *value)
Definition: CreateDeploymentRequest.h:80
Aws::APIGateway::Model::CreateDeploymentRequest::GetCacheClusterSize
const CacheClusterSize & GetCacheClusterSize() const
Definition: CreateDeploymentRequest.h:251
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(const char *key, const char *value)
Definition: CreateDeploymentRequest.h:386
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(Aws::String &&key, Aws::String &&value)
Definition: CreateDeploymentRequest.h:362
Aws::APIGateway::Model::CreateDeploymentRequest::SetStageName
void SetStageName(const Aws::String &value)
Definition: CreateDeploymentRequest.h:99
Aws::APIGateway::Model::CreateDeploymentRequest::WithCacheClusterSize
CreateDeploymentRequest & WithCacheClusterSize(const CacheClusterSize &value)
Definition: CreateDeploymentRequest.h:275
Aws::APIGateway::Model::CreateDeploymentRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: CreateDeploymentRequest.h:45
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(Aws::String &&key, const Aws::String &value)
Definition: CreateDeploymentRequest.h:346
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateDeploymentRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:55
Aws::APIGateway::Model::CacheClusterSize
CacheClusterSize
Definition: CacheClusterSize.h:17
Aws::APIGateway::Model::CreateDeploymentRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateDeploymentRequest.h:189
Aws::APIGateway::Model::CreateDeploymentRequest::CreateDeploymentRequest
CreateDeploymentRequest()
APIGatewayRequest.h
Aws::APIGateway::Model::CreateDeploymentRequest::GetStageDescription
const Aws::String & GetStageDescription() const
Definition: CreateDeploymentRequest.h:136
Aws::APIGateway::Model::CreateDeploymentRequest::SetStageDescription
void SetStageDescription(const char *value)
Definition: CreateDeploymentRequest.h:160
Aws::APIGateway::Model::CreateDeploymentRequest::SetVariables
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDeploymentRequest.h:314
Aws::APIGateway::Model::CreateDeploymentRequest::WithVariables
CreateDeploymentRequest & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDeploymentRequest.h:330
Aws::APIGateway::Model::CreateDeploymentRequest::WithCacheClusterEnabled
CreateDeploymentRequest & WithCacheClusterEnabled(bool value)
Definition: CreateDeploymentRequest.h:244
Aws::APIGateway::Model::DeploymentCanarySettings
Definition: DeploymentCanarySettings.h:34
Aws::APIGateway::Model::CreateDeploymentRequest::WithStageName
CreateDeploymentRequest & WithStageName(const char *value)
Definition: CreateDeploymentRequest.h:129
Aws::APIGateway::Model::CreateDeploymentRequest::GetTracingEnabled
bool GetTracingEnabled() const
Definition: CreateDeploymentRequest.h:430
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(const Aws::String &key, const Aws::String &value)
Definition: CreateDeploymentRequest.h:338
Aws::APIGateway::Model::CreateDeploymentRequest::SetStageDescription
void SetStageDescription(const Aws::String &value)
Definition: CreateDeploymentRequest.h:148
Aws::APIGateway::Model::CreateDeploymentRequest::WithRestApiId
CreateDeploymentRequest & WithRestApiId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:70
Aws::APIGateway::Model::CreateDeploymentRequest::GetCanarySettings
const DeploymentCanarySettings & GetCanarySettings() const
Definition: CreateDeploymentRequest.h:393
Aws::APIGateway::Model::CreateDeploymentRequest::WithDescription
CreateDeploymentRequest & WithDescription(Aws::String &&value)
Definition: CreateDeploymentRequest.h:214
Aws::APIGateway::Model::CreateDeploymentRequest::StageDescriptionHasBeenSet
bool StageDescriptionHasBeenSet() const
Definition: CreateDeploymentRequest.h:142
CacheClusterSize.h
Aws::APIGateway::Model::CreateDeploymentRequest::SetStageName
void SetStageName(const char *value)
Definition: CreateDeploymentRequest.h:111
Aws::APIGateway::Model::CreateDeploymentRequest::WithStageName
CreateDeploymentRequest & WithStageName(const Aws::String &value)
Definition: CreateDeploymentRequest.h:117
Aws::APIGateway::Model::CreateDeploymentRequest::WithCanarySettings
CreateDeploymentRequest & WithCanarySettings(DeploymentCanarySettings &&value)
Definition: CreateDeploymentRequest.h:423
Aws::APIGateway::Model::CreateDeploymentRequest::VariablesHasBeenSet
bool VariablesHasBeenSet() const
Definition: CreateDeploymentRequest.h:298
AWSString.h
Aws::APIGateway::Model::CreateDeploymentRequest::SetCacheClusterSize
void SetCacheClusterSize(CacheClusterSize &&value)
Definition: CreateDeploymentRequest.h:269
Aws::APIGateway::Model::CreateDeploymentRequest::WithStageName
CreateDeploymentRequest & WithStageName(Aws::String &&value)
Definition: CreateDeploymentRequest.h:123
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(const Aws::String &key, Aws::String &&value)
Definition: CreateDeploymentRequest.h:354
Aws::APIGateway::Model::CreateDeploymentRequest::SetStageName
void SetStageName(Aws::String &&value)
Definition: CreateDeploymentRequest.h:105
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(Aws::String &&key, const char *value)
Definition: CreateDeploymentRequest.h:378
Aws::APIGateway::Model::CreateDeploymentRequest::CacheClusterSizeHasBeenSet
bool CacheClusterSizeHasBeenSet() const
Definition: CreateDeploymentRequest.h:257
Aws::APIGateway::Model::CreateDeploymentRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateDeploymentRequest.h:194
Aws::APIGateway::Model::CreateDeploymentRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:60
Aws::APIGateway::Model::CreateDeploymentRequest::WithStageDescription
CreateDeploymentRequest & WithStageDescription(const char *value)
Definition: CreateDeploymentRequest.h:178
Aws::APIGateway::Model::CreateDeploymentRequest::GetStageName
const Aws::String & GetStageName() const
Definition: CreateDeploymentRequest.h:87
Aws
Definition: AccessManagementClient.h:15
DeploymentCanarySettings.h
Aws::APIGateway::Model::CreateDeploymentRequest::GetCacheClusterEnabled
bool GetCacheClusterEnabled() const
Definition: CreateDeploymentRequest.h:226
Aws::APIGateway::Model::CreateDeploymentRequest::WithDescription
CreateDeploymentRequest & WithDescription(const char *value)
Definition: CreateDeploymentRequest.h:219
Aws::APIGateway::Model::CreateDeploymentRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: CreateDeploymentRequest.h:50
Aws::APIGateway::Model::CreateDeploymentRequest::CacheClusterEnabledHasBeenSet
bool CacheClusterEnabledHasBeenSet() const
Definition: CreateDeploymentRequest.h:232
Aws::APIGateway::Model::CreateDeploymentRequest::SetCanarySettings
void SetCanarySettings(DeploymentCanarySettings &&value)
Definition: CreateDeploymentRequest.h:411
Aws::APIGateway::Model::CreateDeploymentRequest::CanarySettingsHasBeenSet
bool CanarySettingsHasBeenSet() const
Definition: CreateDeploymentRequest.h:399
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateDeploymentRequest::WithVariables
CreateDeploymentRequest & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDeploymentRequest.h:322
Aws::APIGateway::Model::CreateDeploymentRequest::SetVariables
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDeploymentRequest.h:306
Aws::APIGateway::Model::CreateDeploymentRequest::SetCanarySettings
void SetCanarySettings(const DeploymentCanarySettings &value)
Definition: CreateDeploymentRequest.h:405
Aws::APIGateway::Model::CreateDeploymentRequest::SetCacheClusterSize
void SetCacheClusterSize(const CacheClusterSize &value)
Definition: CreateDeploymentRequest.h:263
Aws::APIGateway::Model::CreateDeploymentRequest::WithStageDescription
CreateDeploymentRequest & WithStageDescription(Aws::String &&value)
Definition: CreateDeploymentRequest.h:172
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateDeploymentRequest::WithCacheClusterSize
CreateDeploymentRequest & WithCacheClusterSize(CacheClusterSize &&value)
Definition: CreateDeploymentRequest.h:281
Aws::APIGateway::Model::CreateDeploymentRequest::WithCanarySettings
CreateDeploymentRequest & WithCanarySettings(const DeploymentCanarySettings &value)
Definition: CreateDeploymentRequest.h:417
AWSMap.h
Aws::APIGateway::Model::CreateDeploymentRequest::TracingEnabledHasBeenSet
bool TracingEnabledHasBeenSet() const
Definition: CreateDeploymentRequest.h:436
Aws::APIGateway::Model::CreateDeploymentRequest::AddVariables
CreateDeploymentRequest & AddVariables(const char *key, Aws::String &&value)
Definition: CreateDeploymentRequest.h:370
Aws::APIGateway::Model::CreateDeploymentRequest::WithTracingEnabled
CreateDeploymentRequest & WithTracingEnabled(bool value)
Definition: CreateDeploymentRequest.h:448
Aws::APIGateway::Model::CreateDeploymentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDeploymentRequest.h:37
Aws::APIGateway::Model::CreateDeploymentRequest::SetStageDescription
void SetStageDescription(Aws::String &&value)
Definition: CreateDeploymentRequest.h:154
Aws::APIGateway::Model::CreateDeploymentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateDeploymentRequest::GetVariables
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition: CreateDeploymentRequest.h:290
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::CreateDeploymentRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateDeploymentRequest.h:204
Aws::APIGateway::Model::CreateDeploymentRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateDeploymentRequest.h:199
Aws::APIGateway::Model::CreateDeploymentRequest::WithStageDescription
CreateDeploymentRequest & WithStageDescription(const Aws::String &value)
Definition: CreateDeploymentRequest.h:166
Aws::APIGateway::Model::CreateDeploymentRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: CreateDeploymentRequest.h:65