AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
49 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
50 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
51 inline UpdateBranchRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
52 inline UpdateBranchRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
53 inline UpdateBranchRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
55
57
60 inline const Aws::String& GetBranchName() const{ return m_branchName; }
61 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
62 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
63 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
64 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
65 inline UpdateBranchRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
66 inline UpdateBranchRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
67 inline UpdateBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline UpdateBranchRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline UpdateBranchRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline UpdateBranchRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
88 inline const Aws::String& GetFramework() const{ return m_framework; }
89 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
90 inline void SetFramework(const Aws::String& value) { m_frameworkHasBeenSet = true; m_framework = value; }
91 inline void SetFramework(Aws::String&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
92 inline void SetFramework(const char* value) { m_frameworkHasBeenSet = true; m_framework.assign(value); }
93 inline UpdateBranchRequest& WithFramework(const Aws::String& value) { SetFramework(value); return *this;}
94 inline UpdateBranchRequest& WithFramework(Aws::String&& value) { SetFramework(std::move(value)); return *this;}
95 inline UpdateBranchRequest& WithFramework(const char* value) { SetFramework(value); return *this;}
97
99
102 inline const Stage& GetStage() const{ return m_stage; }
103 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
104 inline void SetStage(const Stage& value) { m_stageHasBeenSet = true; m_stage = value; }
105 inline void SetStage(Stage&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
106 inline UpdateBranchRequest& WithStage(const Stage& value) { SetStage(value); return *this;}
107 inline UpdateBranchRequest& WithStage(Stage&& value) { SetStage(std::move(value)); return *this;}
109
111
114 inline bool GetEnableNotification() const{ return m_enableNotification; }
115 inline bool EnableNotificationHasBeenSet() const { return m_enableNotificationHasBeenSet; }
116 inline void SetEnableNotification(bool value) { m_enableNotificationHasBeenSet = true; m_enableNotification = value; }
117 inline UpdateBranchRequest& WithEnableNotification(bool value) { SetEnableNotification(value); return *this;}
119
121
124 inline bool GetEnableAutoBuild() const{ return m_enableAutoBuild; }
125 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
126 inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; }
127 inline UpdateBranchRequest& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;}
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
135 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
136 inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
137 inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
140 inline UpdateBranchRequest& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
141 inline UpdateBranchRequest& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
142 inline UpdateBranchRequest& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
143 inline UpdateBranchRequest& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
144 inline UpdateBranchRequest& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
145 inline UpdateBranchRequest& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
146 inline UpdateBranchRequest& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
148
150
155 inline const Aws::String& GetBasicAuthCredentials() const{ return m_basicAuthCredentials; }
156 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
157 inline void SetBasicAuthCredentials(const Aws::String& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = value; }
158 inline void SetBasicAuthCredentials(Aws::String&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::move(value); }
159 inline void SetBasicAuthCredentials(const char* value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials.assign(value); }
161 inline UpdateBranchRequest& WithBasicAuthCredentials(Aws::String&& value) { SetBasicAuthCredentials(std::move(value)); return *this;}
162 inline UpdateBranchRequest& WithBasicAuthCredentials(const char* value) { SetBasicAuthCredentials(value); return *this;}
164
166
169 inline bool GetEnableBasicAuth() const{ return m_enableBasicAuth; }
170 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
171 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
172 inline UpdateBranchRequest& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
174
176
182 inline bool GetEnablePerformanceMode() const{ return m_enablePerformanceMode; }
183 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
184 inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; }
185 inline UpdateBranchRequest& WithEnablePerformanceMode(bool value) { SetEnablePerformanceMode(value); return *this;}
187
189
192 inline const Aws::String& GetBuildSpec() const{ return m_buildSpec; }
193 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
194 inline void SetBuildSpec(const Aws::String& value) { m_buildSpecHasBeenSet = true; m_buildSpec = value; }
195 inline void SetBuildSpec(Aws::String&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::move(value); }
196 inline void SetBuildSpec(const char* value) { m_buildSpecHasBeenSet = true; m_buildSpec.assign(value); }
197 inline UpdateBranchRequest& WithBuildSpec(const Aws::String& value) { SetBuildSpec(value); return *this;}
198 inline UpdateBranchRequest& WithBuildSpec(Aws::String&& value) { SetBuildSpec(std::move(value)); return *this;}
199 inline UpdateBranchRequest& WithBuildSpec(const char* value) { SetBuildSpec(value); return *this;}
201
203
206 inline const Aws::String& GetTtl() const{ return m_ttl; }
207 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
208 inline void SetTtl(const Aws::String& value) { m_ttlHasBeenSet = true; m_ttl = value; }
209 inline void SetTtl(Aws::String&& value) { m_ttlHasBeenSet = true; m_ttl = std::move(value); }
210 inline void SetTtl(const char* value) { m_ttlHasBeenSet = true; m_ttl.assign(value); }
211 inline UpdateBranchRequest& WithTtl(const Aws::String& value) { SetTtl(value); return *this;}
212 inline UpdateBranchRequest& WithTtl(Aws::String&& value) { SetTtl(std::move(value)); return *this;}
213 inline UpdateBranchRequest& WithTtl(const char* value) { SetTtl(value); return *this;}
215
217
221 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
222 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
223 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
224 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
225 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
226 inline UpdateBranchRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
227 inline UpdateBranchRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
228 inline UpdateBranchRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
230
232
235 inline bool GetEnablePullRequestPreview() const{ return m_enablePullRequestPreview; }
236 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
237 inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; }
240
242
245 inline const Aws::String& GetPullRequestEnvironmentName() const{ return m_pullRequestEnvironmentName; }
246 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
247 inline void SetPullRequestEnvironmentName(const Aws::String& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = value; }
248 inline void SetPullRequestEnvironmentName(Aws::String&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::move(value); }
249 inline void SetPullRequestEnvironmentName(const char* value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName.assign(value); }
252 inline UpdateBranchRequest& WithPullRequestEnvironmentName(const char* value) { SetPullRequestEnvironmentName(value); return *this;}
254
256
262 inline const Aws::String& GetBackendEnvironmentArn() const{ return m_backendEnvironmentArn; }
263 inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; }
264 inline void SetBackendEnvironmentArn(const Aws::String& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = value; }
265 inline void SetBackendEnvironmentArn(Aws::String&& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = std::move(value); }
266 inline void SetBackendEnvironmentArn(const char* value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn.assign(value); }
268 inline UpdateBranchRequest& WithBackendEnvironmentArn(Aws::String&& value) { SetBackendEnvironmentArn(std::move(value)); return *this;}
269 inline UpdateBranchRequest& WithBackendEnvironmentArn(const char* value) { SetBackendEnvironmentArn(value); return *this;}
271
273
279 inline const Backend& GetBackend() const{ return m_backend; }
280 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
281 inline void SetBackend(const Backend& value) { m_backendHasBeenSet = true; m_backend = value; }
282 inline void SetBackend(Backend&& value) { m_backendHasBeenSet = true; m_backend = std::move(value); }
283 inline UpdateBranchRequest& WithBackend(const Backend& value) { SetBackend(value); return *this;}
284 inline UpdateBranchRequest& WithBackend(Backend&& value) { SetBackend(std::move(value)); return *this;}
286 private:
287
288 Aws::String m_appId;
289 bool m_appIdHasBeenSet = false;
290
291 Aws::String m_branchName;
292 bool m_branchNameHasBeenSet = false;
293
294 Aws::String m_description;
295 bool m_descriptionHasBeenSet = false;
296
297 Aws::String m_framework;
298 bool m_frameworkHasBeenSet = false;
299
300 Stage m_stage;
301 bool m_stageHasBeenSet = false;
302
303 bool m_enableNotification;
304 bool m_enableNotificationHasBeenSet = false;
305
306 bool m_enableAutoBuild;
307 bool m_enableAutoBuildHasBeenSet = false;
308
309 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
310 bool m_environmentVariablesHasBeenSet = false;
311
312 Aws::String m_basicAuthCredentials;
313 bool m_basicAuthCredentialsHasBeenSet = false;
314
315 bool m_enableBasicAuth;
316 bool m_enableBasicAuthHasBeenSet = false;
317
318 bool m_enablePerformanceMode;
319 bool m_enablePerformanceModeHasBeenSet = false;
320
321 Aws::String m_buildSpec;
322 bool m_buildSpecHasBeenSet = false;
323
324 Aws::String m_ttl;
325 bool m_ttlHasBeenSet = false;
326
327 Aws::String m_displayName;
328 bool m_displayNameHasBeenSet = false;
329
330 bool m_enablePullRequestPreview;
331 bool m_enablePullRequestPreviewHasBeenSet = false;
332
333 Aws::String m_pullRequestEnvironmentName;
334 bool m_pullRequestEnvironmentNameHasBeenSet = false;
335
336 Aws::String m_backendEnvironmentArn;
337 bool m_backendEnvironmentArnHasBeenSet = false;
338
339 Backend m_backend;
340 bool m_backendHasBeenSet = false;
341 };
342
343} // namespace Model
344} // namespace Amplify
345} // namespace Aws
UpdateBranchRequest & WithAppId(Aws::String &&value)
void SetFramework(const Aws::String &value)
UpdateBranchRequest & WithEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
UpdateBranchRequest & WithEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
void SetAppId(const Aws::String &value)
UpdateBranchRequest & WithBuildSpec(Aws::String &&value)
UpdateBranchRequest & AddEnvironmentVariables(Aws::String &&key, const char *value)
UpdateBranchRequest & WithBackendEnvironmentArn(const Aws::String &value)
UpdateBranchRequest & WithTtl(const char *value)
UpdateBranchRequest & WithBasicAuthCredentials(Aws::String &&value)
UpdateBranchRequest & WithStage(const Stage &value)
UpdateBranchRequest & WithPullRequestEnvironmentName(const Aws::String &value)
UpdateBranchRequest & WithBuildSpec(const Aws::String &value)
UpdateBranchRequest & AddEnvironmentVariables(const Aws::String &key, const Aws::String &value)
const Aws::String & GetBackendEnvironmentArn() const
UpdateBranchRequest & AddEnvironmentVariables(const char *key, Aws::String &&value)
UpdateBranchRequest & WithDisplayName(const char *value)
const Aws::String & GetBasicAuthCredentials() const
UpdateBranchRequest & WithPullRequestEnvironmentName(Aws::String &&value)
UpdateBranchRequest & WithBackend(const Backend &value)
void SetBasicAuthCredentials(Aws::String &&value)
UpdateBranchRequest & WithEnableBasicAuth(bool value)
UpdateBranchRequest & WithStage(Stage &&value)
UpdateBranchRequest & WithTtl(const Aws::String &value)
UpdateBranchRequest & WithDisplayName(const Aws::String &value)
void SetBranchName(const Aws::String &value)
UpdateBranchRequest & WithDescription(Aws::String &&value)
UpdateBranchRequest & WithEnableAutoBuild(bool value)
UpdateBranchRequest & WithDescription(const Aws::String &value)
UpdateBranchRequest & WithTtl(Aws::String &&value)
void SetDescription(const Aws::String &value)
UpdateBranchRequest & AddEnvironmentVariables(Aws::String &&key, const Aws::String &value)
void SetEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
UpdateBranchRequest & WithAppId(const char *value)
UpdateBranchRequest & WithBranchName(Aws::String &&value)
void SetPullRequestEnvironmentName(Aws::String &&value)
void SetEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
UpdateBranchRequest & WithEnableNotification(bool value)
UpdateBranchRequest & AddEnvironmentVariables(const Aws::String &key, Aws::String &&value)
UpdateBranchRequest & WithEnablePerformanceMode(bool value)
UpdateBranchRequest & WithFramework(const Aws::String &value)
void SetDisplayName(const Aws::String &value)
UpdateBranchRequest & WithPullRequestEnvironmentName(const char *value)
UpdateBranchRequest & WithEnablePullRequestPreview(bool value)
void SetBuildSpec(const Aws::String &value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
void SetBackendEnvironmentArn(const Aws::String &value)
void SetPullRequestEnvironmentName(const Aws::String &value)
UpdateBranchRequest & WithBranchName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
UpdateBranchRequest & WithBackend(Backend &&value)
void SetBackendEnvironmentArn(Aws::String &&value)
UpdateBranchRequest & WithBackendEnvironmentArn(const char *value)
UpdateBranchRequest & AddEnvironmentVariables(Aws::String &&key, Aws::String &&value)
UpdateBranchRequest & WithBranchName(const char *value)
UpdateBranchRequest & WithDescription(const char *value)
UpdateBranchRequest & WithFramework(const char *value)
void SetBasicAuthCredentials(const Aws::String &value)
const Aws::String & GetPullRequestEnvironmentName() const
UpdateBranchRequest & WithBasicAuthCredentials(const Aws::String &value)
UpdateBranchRequest & WithAppId(const Aws::String &value)
UpdateBranchRequest & WithFramework(Aws::String &&value)
UpdateBranchRequest & WithBasicAuthCredentials(const char *value)
UpdateBranchRequest & AddEnvironmentVariables(const char *key, const char *value)
UpdateBranchRequest & WithDisplayName(Aws::String &&value)
void SetPullRequestEnvironmentName(const char *value)
UpdateBranchRequest & WithBackendEnvironmentArn(Aws::String &&value)
UpdateBranchRequest & WithBuildSpec(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