AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/CacheClusterSize.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigateway/model/DeploymentCanarySettings.h>
13#include <utility>
14
15namespace Aws
16{
17namespace APIGateway
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_APIGATEWAY_API CreateDeploymentRequest();
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_APIGATEWAY_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
47 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
48 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
49 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
50 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
51 inline CreateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
52 inline CreateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
53 inline CreateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
55
57
60 inline const Aws::String& GetStageName() const{ return m_stageName; }
61 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
62 inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
63 inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
64 inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
65 inline CreateDeploymentRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
66 inline CreateDeploymentRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
67 inline CreateDeploymentRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
69
71
75 inline const Aws::String& GetStageDescription() const{ return m_stageDescription; }
76 inline bool StageDescriptionHasBeenSet() const { return m_stageDescriptionHasBeenSet; }
77 inline void SetStageDescription(const Aws::String& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = value; }
78 inline void SetStageDescription(Aws::String&& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = std::move(value); }
79 inline void SetStageDescription(const char* value) { m_stageDescriptionHasBeenSet = true; m_stageDescription.assign(value); }
80 inline CreateDeploymentRequest& WithStageDescription(const Aws::String& value) { SetStageDescription(value); return *this;}
81 inline CreateDeploymentRequest& WithStageDescription(Aws::String&& value) { SetStageDescription(std::move(value)); return *this;}
82 inline CreateDeploymentRequest& WithStageDescription(const char* value) { SetStageDescription(value); return *this;}
84
86
89 inline const Aws::String& GetDescription() const{ return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
93 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
94 inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
98
100
103 inline bool GetCacheClusterEnabled() const{ return m_cacheClusterEnabled; }
104 inline bool CacheClusterEnabledHasBeenSet() const { return m_cacheClusterEnabledHasBeenSet; }
105 inline void SetCacheClusterEnabled(bool value) { m_cacheClusterEnabledHasBeenSet = true; m_cacheClusterEnabled = value; }
106 inline CreateDeploymentRequest& WithCacheClusterEnabled(bool value) { SetCacheClusterEnabled(value); return *this;}
108
110
116 inline const CacheClusterSize& GetCacheClusterSize() const{ return m_cacheClusterSize; }
117 inline bool CacheClusterSizeHasBeenSet() const { return m_cacheClusterSizeHasBeenSet; }
118 inline void SetCacheClusterSize(const CacheClusterSize& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
119 inline void SetCacheClusterSize(CacheClusterSize&& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = std::move(value); }
121 inline CreateDeploymentRequest& WithCacheClusterSize(CacheClusterSize&& value) { SetCacheClusterSize(std::move(value)); return *this;}
123
125
131 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
132 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
133 inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
134 inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
137 inline CreateDeploymentRequest& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
138 inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
139 inline CreateDeploymentRequest& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
140 inline CreateDeploymentRequest& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
141 inline CreateDeploymentRequest& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
142 inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
143 inline CreateDeploymentRequest& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
145
147
151 inline const DeploymentCanarySettings& GetCanarySettings() const{ return m_canarySettings; }
152 inline bool CanarySettingsHasBeenSet() const { return m_canarySettingsHasBeenSet; }
153 inline void SetCanarySettings(const DeploymentCanarySettings& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = value; }
154 inline void SetCanarySettings(DeploymentCanarySettings&& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = std::move(value); }
158
160
163 inline bool GetTracingEnabled() const{ return m_tracingEnabled; }
164 inline bool TracingEnabledHasBeenSet() const { return m_tracingEnabledHasBeenSet; }
165 inline void SetTracingEnabled(bool value) { m_tracingEnabledHasBeenSet = true; m_tracingEnabled = value; }
166 inline CreateDeploymentRequest& WithTracingEnabled(bool value) { SetTracingEnabled(value); return *this;}
168 private:
169
170 Aws::String m_restApiId;
171 bool m_restApiIdHasBeenSet = false;
172
173 Aws::String m_stageName;
174 bool m_stageNameHasBeenSet = false;
175
176 Aws::String m_stageDescription;
177 bool m_stageDescriptionHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 bool m_cacheClusterEnabled;
183 bool m_cacheClusterEnabledHasBeenSet = false;
184
185 CacheClusterSize m_cacheClusterSize;
186 bool m_cacheClusterSizeHasBeenSet = false;
187
189 bool m_variablesHasBeenSet = false;
190
191 DeploymentCanarySettings m_canarySettings;
192 bool m_canarySettingsHasBeenSet = false;
193
194 bool m_tracingEnabled;
195 bool m_tracingEnabledHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace APIGateway
200} // namespace Aws
CreateDeploymentRequest & AddVariables(Aws::String &&key, const Aws::String &value)
CreateDeploymentRequest & WithCanarySettings(const DeploymentCanarySettings &value)
CreateDeploymentRequest & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
void SetCanarySettings(DeploymentCanarySettings &&value)
CreateDeploymentRequest & AddVariables(const char *key, Aws::String &&value)
CreateDeploymentRequest & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
CreateDeploymentRequest & WithRestApiId(Aws::String &&value)
CreateDeploymentRequest & AddVariables(const Aws::String &key, Aws::String &&value)
CreateDeploymentRequest & WithCacheClusterEnabled(bool value)
CreateDeploymentRequest & AddVariables(Aws::String &&key, Aws::String &&value)
CreateDeploymentRequest & WithDescription(const Aws::String &value)
CreateDeploymentRequest & WithStageName(const char *value)
CreateDeploymentRequest & AddVariables(Aws::String &&key, const char *value)
CreateDeploymentRequest & AddVariables(const char *key, const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithCacheClusterSize(CacheClusterSize &&value)
CreateDeploymentRequest & WithRestApiId(const char *value)
CreateDeploymentRequest & WithStageDescription(Aws::String &&value)
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentRequest & WithCacheClusterSize(const CacheClusterSize &value)
CreateDeploymentRequest & WithStageName(const Aws::String &value)
const DeploymentCanarySettings & GetCanarySettings() const
CreateDeploymentRequest & WithStageDescription(const Aws::String &value)
CreateDeploymentRequest & AddVariables(const Aws::String &key, const Aws::String &value)
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeploymentRequest & WithTracingEnabled(bool value)
CreateDeploymentRequest & WithStageName(Aws::String &&value)
CreateDeploymentRequest & WithCanarySettings(DeploymentCanarySettings &&value)
void SetCacheClusterSize(const CacheClusterSize &value)
void SetCanarySettings(const DeploymentCanarySettings &value)
CreateDeploymentRequest & WithRestApiId(const Aws::String &value)
CreateDeploymentRequest & WithDescription(Aws::String &&value)
CreateDeploymentRequest & WithStageDescription(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String