AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RestApiIdT = Aws::String>
49 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
50 template<typename RestApiIdT = Aws::String>
51 CreateDeploymentRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetStageName() const { return m_stageName; }
59 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
60 template<typename StageNameT = Aws::String>
61 void SetStageName(StageNameT&& value) { m_stageNameHasBeenSet = true; m_stageName = std::forward<StageNameT>(value); }
62 template<typename StageNameT = Aws::String>
63 CreateDeploymentRequest& WithStageName(StageNameT&& value) { SetStageName(std::forward<StageNameT>(value)); return *this;}
65
67
71 inline const Aws::String& GetStageDescription() const { return m_stageDescription; }
72 inline bool StageDescriptionHasBeenSet() const { return m_stageDescriptionHasBeenSet; }
73 template<typename StageDescriptionT = Aws::String>
74 void SetStageDescription(StageDescriptionT&& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = std::forward<StageDescriptionT>(value); }
75 template<typename StageDescriptionT = Aws::String>
76 CreateDeploymentRequest& WithStageDescription(StageDescriptionT&& value) { SetStageDescription(std::forward<StageDescriptionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 CreateDeploymentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
95 inline bool GetCacheClusterEnabled() const { return m_cacheClusterEnabled; }
96 inline bool CacheClusterEnabledHasBeenSet() const { return m_cacheClusterEnabledHasBeenSet; }
97 inline void SetCacheClusterEnabled(bool value) { m_cacheClusterEnabledHasBeenSet = true; m_cacheClusterEnabled = value; }
98 inline CreateDeploymentRequest& WithCacheClusterEnabled(bool value) { SetCacheClusterEnabled(value); return *this;}
100
102
108 inline CacheClusterSize GetCacheClusterSize() const { return m_cacheClusterSize; }
109 inline bool CacheClusterSizeHasBeenSet() const { return m_cacheClusterSizeHasBeenSet; }
110 inline void SetCacheClusterSize(CacheClusterSize value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
113
115
121 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
122 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
123 template<typename VariablesT = Aws::Map<Aws::String, Aws::String>>
124 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables = std::forward<VariablesT>(value); }
125 template<typename VariablesT = Aws::Map<Aws::String, Aws::String>>
126 CreateDeploymentRequest& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
127 template<typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
128 CreateDeploymentRequest& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
129 m_variablesHasBeenSet = true; m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value)); return *this;
130 }
132
134
138 inline const DeploymentCanarySettings& GetCanarySettings() const { return m_canarySettings; }
139 inline bool CanarySettingsHasBeenSet() const { return m_canarySettingsHasBeenSet; }
140 template<typename CanarySettingsT = DeploymentCanarySettings>
141 void SetCanarySettings(CanarySettingsT&& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = std::forward<CanarySettingsT>(value); }
142 template<typename CanarySettingsT = DeploymentCanarySettings>
143 CreateDeploymentRequest& WithCanarySettings(CanarySettingsT&& value) { SetCanarySettings(std::forward<CanarySettingsT>(value)); return *this;}
145
147
150 inline bool GetTracingEnabled() const { return m_tracingEnabled; }
151 inline bool TracingEnabledHasBeenSet() const { return m_tracingEnabledHasBeenSet; }
152 inline void SetTracingEnabled(bool value) { m_tracingEnabledHasBeenSet = true; m_tracingEnabled = value; }
153 inline CreateDeploymentRequest& WithTracingEnabled(bool value) { SetTracingEnabled(value); return *this;}
155 private:
156
157 Aws::String m_restApiId;
158 bool m_restApiIdHasBeenSet = false;
159
160 Aws::String m_stageName;
161 bool m_stageNameHasBeenSet = false;
162
163 Aws::String m_stageDescription;
164 bool m_stageDescriptionHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 bool m_cacheClusterEnabled{false};
170 bool m_cacheClusterEnabledHasBeenSet = false;
171
173 bool m_cacheClusterSizeHasBeenSet = false;
174
176 bool m_variablesHasBeenSet = false;
177
178 DeploymentCanarySettings m_canarySettings;
179 bool m_canarySettingsHasBeenSet = false;
180
181 bool m_tracingEnabled{false};
182 bool m_tracingEnabledHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace APIGateway
187} // namespace Aws
CreateDeploymentRequest & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
CreateDeploymentRequest & WithCacheClusterSize(CacheClusterSize value)
CreateDeploymentRequest & WithRestApiId(RestApiIdT &&value)
CreateDeploymentRequest & WithCacheClusterEnabled(bool value)
CreateDeploymentRequest & WithStageDescription(StageDescriptionT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithStageName(StageNameT &&value)
CreateDeploymentRequest & WithCanarySettings(CanarySettingsT &&value)
const DeploymentCanarySettings & GetCanarySettings() const
AWS_APIGATEWAY_API CreateDeploymentRequest()=default
CreateDeploymentRequest & WithTracingEnabled(bool value)
CreateDeploymentRequest & WithVariables(VariablesT &&value)
CreateDeploymentRequest & WithDescription(DescriptionT &&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