AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateBranchRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplify/model/Stage.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/amplify/model/Backend.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Amplify
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_AMPLIFY_API UpdateBranchRequest() = 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 "UpdateBranch"; }
38
39 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetAppId() const { return m_appId; }
47 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 template<typename AppIdT = Aws::String>
49 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
50 template<typename AppIdT = Aws::String>
51 UpdateBranchRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetBranchName() const { return m_branchName; }
59 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
60 template<typename BranchNameT = Aws::String>
61 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
62 template<typename BranchNameT = Aws::String>
63 UpdateBranchRequest& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 UpdateBranchRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetFramework() const { return m_framework; }
83 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
84 template<typename FrameworkT = Aws::String>
85 void SetFramework(FrameworkT&& value) { m_frameworkHasBeenSet = true; m_framework = std::forward<FrameworkT>(value); }
86 template<typename FrameworkT = Aws::String>
87 UpdateBranchRequest& WithFramework(FrameworkT&& value) { SetFramework(std::forward<FrameworkT>(value)); return *this;}
89
91
94 inline Stage GetStage() const { return m_stage; }
95 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
96 inline void SetStage(Stage value) { m_stageHasBeenSet = true; m_stage = value; }
97 inline UpdateBranchRequest& WithStage(Stage value) { SetStage(value); return *this;}
99
101
104 inline bool GetEnableNotification() const { return m_enableNotification; }
105 inline bool EnableNotificationHasBeenSet() const { return m_enableNotificationHasBeenSet; }
106 inline void SetEnableNotification(bool value) { m_enableNotificationHasBeenSet = true; m_enableNotification = value; }
107 inline UpdateBranchRequest& WithEnableNotification(bool value) { SetEnableNotification(value); return *this;}
109
111
114 inline bool GetEnableAutoBuild() const { return m_enableAutoBuild; }
115 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
116 inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; }
117 inline UpdateBranchRequest& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;}
119
121
131 inline bool GetEnableSkewProtection() const { return m_enableSkewProtection; }
132 inline bool EnableSkewProtectionHasBeenSet() const { return m_enableSkewProtectionHasBeenSet; }
133 inline void SetEnableSkewProtection(bool value) { m_enableSkewProtectionHasBeenSet = true; m_enableSkewProtection = value; }
134 inline UpdateBranchRequest& WithEnableSkewProtection(bool value) { SetEnableSkewProtection(value); return *this;}
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
142 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
143 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
144 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
145 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
146 UpdateBranchRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
147 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
148 UpdateBranchRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
149 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
150 }
152
154
159 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
160 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
161 template<typename BasicAuthCredentialsT = Aws::String>
162 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
163 template<typename BasicAuthCredentialsT = Aws::String>
164 UpdateBranchRequest& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) { SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value)); return *this;}
166
168
171 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
172 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
173 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
174 inline UpdateBranchRequest& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
176
178
184 inline bool GetEnablePerformanceMode() const { return m_enablePerformanceMode; }
185 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
186 inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; }
187 inline UpdateBranchRequest& WithEnablePerformanceMode(bool value) { SetEnablePerformanceMode(value); return *this;}
189
191
194 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
195 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
196 template<typename BuildSpecT = Aws::String>
197 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::forward<BuildSpecT>(value); }
198 template<typename BuildSpecT = Aws::String>
199 UpdateBranchRequest& WithBuildSpec(BuildSpecT&& value) { SetBuildSpec(std::forward<BuildSpecT>(value)); return *this;}
201
203
206 inline const Aws::String& GetTtl() const { return m_ttl; }
207 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
208 template<typename TtlT = Aws::String>
209 void SetTtl(TtlT&& value) { m_ttlHasBeenSet = true; m_ttl = std::forward<TtlT>(value); }
210 template<typename TtlT = Aws::String>
211 UpdateBranchRequest& WithTtl(TtlT&& value) { SetTtl(std::forward<TtlT>(value)); return *this;}
213
215
219 inline const Aws::String& GetDisplayName() const { return m_displayName; }
220 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
221 template<typename DisplayNameT = Aws::String>
222 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
223 template<typename DisplayNameT = Aws::String>
224 UpdateBranchRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
226
228
231 inline bool GetEnablePullRequestPreview() const { return m_enablePullRequestPreview; }
232 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
233 inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; }
236
238
241 inline const Aws::String& GetPullRequestEnvironmentName() const { return m_pullRequestEnvironmentName; }
242 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
243 template<typename PullRequestEnvironmentNameT = Aws::String>
244 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value); }
245 template<typename PullRequestEnvironmentNameT = Aws::String>
246 UpdateBranchRequest& WithPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { SetPullRequestEnvironmentName(std::forward<PullRequestEnvironmentNameT>(value)); return *this;}
248
250
256 inline const Aws::String& GetBackendEnvironmentArn() const { return m_backendEnvironmentArn; }
257 inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; }
258 template<typename BackendEnvironmentArnT = Aws::String>
259 void SetBackendEnvironmentArn(BackendEnvironmentArnT&& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = std::forward<BackendEnvironmentArnT>(value); }
260 template<typename BackendEnvironmentArnT = Aws::String>
261 UpdateBranchRequest& WithBackendEnvironmentArn(BackendEnvironmentArnT&& value) { SetBackendEnvironmentArn(std::forward<BackendEnvironmentArnT>(value)); return *this;}
263
265
271 inline const Backend& GetBackend() const { return m_backend; }
272 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
273 template<typename BackendT = Backend>
274 void SetBackend(BackendT&& value) { m_backendHasBeenSet = true; m_backend = std::forward<BackendT>(value); }
275 template<typename BackendT = Backend>
276 UpdateBranchRequest& WithBackend(BackendT&& value) { SetBackend(std::forward<BackendT>(value)); return *this;}
278
280
288 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
289 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
290 template<typename ComputeRoleArnT = Aws::String>
291 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet = true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
292 template<typename ComputeRoleArnT = Aws::String>
293 UpdateBranchRequest& WithComputeRoleArn(ComputeRoleArnT&& value) { SetComputeRoleArn(std::forward<ComputeRoleArnT>(value)); return *this;}
295 private:
296
297 Aws::String m_appId;
298 bool m_appIdHasBeenSet = false;
299
300 Aws::String m_branchName;
301 bool m_branchNameHasBeenSet = false;
302
303 Aws::String m_description;
304 bool m_descriptionHasBeenSet = false;
305
306 Aws::String m_framework;
307 bool m_frameworkHasBeenSet = false;
308
309 Stage m_stage{Stage::NOT_SET};
310 bool m_stageHasBeenSet = false;
311
312 bool m_enableNotification{false};
313 bool m_enableNotificationHasBeenSet = false;
314
315 bool m_enableAutoBuild{false};
316 bool m_enableAutoBuildHasBeenSet = false;
317
318 bool m_enableSkewProtection{false};
319 bool m_enableSkewProtectionHasBeenSet = false;
320
321 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
322 bool m_environmentVariablesHasBeenSet = false;
323
324 Aws::String m_basicAuthCredentials;
325 bool m_basicAuthCredentialsHasBeenSet = false;
326
327 bool m_enableBasicAuth{false};
328 bool m_enableBasicAuthHasBeenSet = false;
329
330 bool m_enablePerformanceMode{false};
331 bool m_enablePerformanceModeHasBeenSet = false;
332
333 Aws::String m_buildSpec;
334 bool m_buildSpecHasBeenSet = false;
335
336 Aws::String m_ttl;
337 bool m_ttlHasBeenSet = false;
338
339 Aws::String m_displayName;
340 bool m_displayNameHasBeenSet = false;
341
342 bool m_enablePullRequestPreview{false};
343 bool m_enablePullRequestPreviewHasBeenSet = false;
344
345 Aws::String m_pullRequestEnvironmentName;
346 bool m_pullRequestEnvironmentNameHasBeenSet = false;
347
348 Aws::String m_backendEnvironmentArn;
349 bool m_backendEnvironmentArnHasBeenSet = false;
350
351 Backend m_backend;
352 bool m_backendHasBeenSet = false;
353
354 Aws::String m_computeRoleArn;
355 bool m_computeRoleArnHasBeenSet = false;
356 };
357
358} // namespace Model
359} // namespace Amplify
360} // namespace Aws
UpdateBranchRequest & WithFramework(FrameworkT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateBranchRequest & WithAppId(AppIdT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
UpdateBranchRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
UpdateBranchRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateBranchRequest & WithTtl(TtlT &&value)
const Aws::String & GetBackendEnvironmentArn() const
UpdateBranchRequest & WithBuildSpec(BuildSpecT &&value)
UpdateBranchRequest & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::String & GetBasicAuthCredentials() const
UpdateBranchRequest & WithDisplayName(DisplayNameT &&value)
UpdateBranchRequest & WithEnableBasicAuth(bool value)
const Aws::String & GetComputeRoleArn() const
UpdateBranchRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
UpdateBranchRequest & WithEnableAutoBuild(bool value)
UpdateBranchRequest & WithBackendEnvironmentArn(BackendEnvironmentArnT &&value)
void SetBackendEnvironmentArn(BackendEnvironmentArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateBranchRequest & WithStage(Stage value)
UpdateBranchRequest & WithEnableNotification(bool value)
UpdateBranchRequest & WithBackend(BackendT &&value)
UpdateBranchRequest & WithEnablePerformanceMode(bool value)
UpdateBranchRequest & WithEnableSkewProtection(bool value)
UpdateBranchRequest & WithEnablePullRequestPreview(bool value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
AWS_AMPLIFY_API UpdateBranchRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::String & GetPullRequestEnvironmentName() const
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateBranchRequest & WithBranchName(BranchNameT &&value)
UpdateBranchRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateBranchRequest & 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