AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Branch.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/amplify/model/Stage.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/amplify/model/Backend.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Amplify
27{
28namespace Model
29{
30
37 class Branch
38 {
39 public:
40 AWS_AMPLIFY_API Branch();
41 AWS_AMPLIFY_API Branch(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFY_API Branch& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetBranchArn() const{ return m_branchArn; }
52 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
53 inline void SetBranchArn(const Aws::String& value) { m_branchArnHasBeenSet = true; m_branchArn = value; }
54 inline void SetBranchArn(Aws::String&& value) { m_branchArnHasBeenSet = true; m_branchArn = std::move(value); }
55 inline void SetBranchArn(const char* value) { m_branchArnHasBeenSet = true; m_branchArn.assign(value); }
56 inline Branch& WithBranchArn(const Aws::String& value) { SetBranchArn(value); return *this;}
57 inline Branch& WithBranchArn(Aws::String&& value) { SetBranchArn(std::move(value)); return *this;}
58 inline Branch& WithBranchArn(const char* value) { SetBranchArn(value); return *this;}
60
62
65 inline const Aws::String& GetBranchName() const{ return m_branchName; }
66 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
67 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
68 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
69 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
70 inline Branch& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
71 inline Branch& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
72 inline Branch& WithBranchName(const char* value) { SetBranchName(value); return *this;}
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline Branch& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline Branch& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline Branch& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline Branch& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
98 inline Branch& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
99 inline Branch& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100 inline Branch& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline Branch& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
102 inline Branch& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
103 inline Branch& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
104 inline Branch& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline Branch& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107
109
112 inline const Stage& GetStage() const{ return m_stage; }
113 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
114 inline void SetStage(const Stage& value) { m_stageHasBeenSet = true; m_stage = value; }
115 inline void SetStage(Stage&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
116 inline Branch& WithStage(const Stage& value) { SetStage(value); return *this;}
117 inline Branch& WithStage(Stage&& value) { SetStage(std::move(value)); return *this;}
119
121
125 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
126 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
127 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
128 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
129 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
130 inline Branch& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
131 inline Branch& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
132 inline Branch& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
134
136
139 inline bool GetEnableNotification() const{ return m_enableNotification; }
140 inline bool EnableNotificationHasBeenSet() const { return m_enableNotificationHasBeenSet; }
141 inline void SetEnableNotification(bool value) { m_enableNotificationHasBeenSet = true; m_enableNotification = value; }
142 inline Branch& WithEnableNotification(bool value) { SetEnableNotification(value); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
150 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
151 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
152 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
153 inline Branch& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
154 inline Branch& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
156
158
162 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
163 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
164 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
165 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
166 inline Branch& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
167 inline Branch& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
175 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
176 inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
177 inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
180 inline Branch& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
181 inline Branch& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
182 inline Branch& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
183 inline Branch& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
184 inline Branch& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
185 inline Branch& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
186 inline Branch& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
188
190
193 inline bool GetEnableAutoBuild() const{ return m_enableAutoBuild; }
194 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
195 inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; }
196 inline Branch& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;}
198
200
203 inline const Aws::Vector<Aws::String>& GetCustomDomains() const{ return m_customDomains; }
204 inline bool CustomDomainsHasBeenSet() const { return m_customDomainsHasBeenSet; }
205 inline void SetCustomDomains(const Aws::Vector<Aws::String>& value) { m_customDomainsHasBeenSet = true; m_customDomains = value; }
206 inline void SetCustomDomains(Aws::Vector<Aws::String>&& value) { m_customDomainsHasBeenSet = true; m_customDomains = std::move(value); }
207 inline Branch& WithCustomDomains(const Aws::Vector<Aws::String>& value) { SetCustomDomains(value); return *this;}
208 inline Branch& WithCustomDomains(Aws::Vector<Aws::String>&& value) { SetCustomDomains(std::move(value)); return *this;}
209 inline Branch& AddCustomDomains(const Aws::String& value) { m_customDomainsHasBeenSet = true; m_customDomains.push_back(value); return *this; }
210 inline Branch& AddCustomDomains(Aws::String&& value) { m_customDomainsHasBeenSet = true; m_customDomains.push_back(std::move(value)); return *this; }
211 inline Branch& AddCustomDomains(const char* value) { m_customDomainsHasBeenSet = true; m_customDomains.push_back(value); return *this; }
213
215
218 inline const Aws::String& GetFramework() const{ return m_framework; }
219 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
220 inline void SetFramework(const Aws::String& value) { m_frameworkHasBeenSet = true; m_framework = value; }
221 inline void SetFramework(Aws::String&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
222 inline void SetFramework(const char* value) { m_frameworkHasBeenSet = true; m_framework.assign(value); }
223 inline Branch& WithFramework(const Aws::String& value) { SetFramework(value); return *this;}
224 inline Branch& WithFramework(Aws::String&& value) { SetFramework(std::move(value)); return *this;}
225 inline Branch& WithFramework(const char* value) { SetFramework(value); return *this;}
227
229
232 inline const Aws::String& GetActiveJobId() const{ return m_activeJobId; }
233 inline bool ActiveJobIdHasBeenSet() const { return m_activeJobIdHasBeenSet; }
234 inline void SetActiveJobId(const Aws::String& value) { m_activeJobIdHasBeenSet = true; m_activeJobId = value; }
235 inline void SetActiveJobId(Aws::String&& value) { m_activeJobIdHasBeenSet = true; m_activeJobId = std::move(value); }
236 inline void SetActiveJobId(const char* value) { m_activeJobIdHasBeenSet = true; m_activeJobId.assign(value); }
237 inline Branch& WithActiveJobId(const Aws::String& value) { SetActiveJobId(value); return *this;}
238 inline Branch& WithActiveJobId(Aws::String&& value) { SetActiveJobId(std::move(value)); return *this;}
239 inline Branch& WithActiveJobId(const char* value) { SetActiveJobId(value); return *this;}
241
243
246 inline const Aws::String& GetTotalNumberOfJobs() const{ return m_totalNumberOfJobs; }
247 inline bool TotalNumberOfJobsHasBeenSet() const { return m_totalNumberOfJobsHasBeenSet; }
248 inline void SetTotalNumberOfJobs(const Aws::String& value) { m_totalNumberOfJobsHasBeenSet = true; m_totalNumberOfJobs = value; }
249 inline void SetTotalNumberOfJobs(Aws::String&& value) { m_totalNumberOfJobsHasBeenSet = true; m_totalNumberOfJobs = std::move(value); }
250 inline void SetTotalNumberOfJobs(const char* value) { m_totalNumberOfJobsHasBeenSet = true; m_totalNumberOfJobs.assign(value); }
251 inline Branch& WithTotalNumberOfJobs(const Aws::String& value) { SetTotalNumberOfJobs(value); return *this;}
252 inline Branch& WithTotalNumberOfJobs(Aws::String&& value) { SetTotalNumberOfJobs(std::move(value)); return *this;}
253 inline Branch& WithTotalNumberOfJobs(const char* value) { SetTotalNumberOfJobs(value); return *this;}
255
257
260 inline bool GetEnableBasicAuth() const{ return m_enableBasicAuth; }
261 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
262 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
263 inline Branch& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
265
267
273 inline bool GetEnablePerformanceMode() const{ return m_enablePerformanceMode; }
274 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
275 inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; }
276 inline Branch& WithEnablePerformanceMode(bool value) { SetEnablePerformanceMode(value); return *this;}
278
280
283 inline const Aws::String& GetThumbnailUrl() const{ return m_thumbnailUrl; }
284 inline bool ThumbnailUrlHasBeenSet() const { return m_thumbnailUrlHasBeenSet; }
285 inline void SetThumbnailUrl(const Aws::String& value) { m_thumbnailUrlHasBeenSet = true; m_thumbnailUrl = value; }
286 inline void SetThumbnailUrl(Aws::String&& value) { m_thumbnailUrlHasBeenSet = true; m_thumbnailUrl = std::move(value); }
287 inline void SetThumbnailUrl(const char* value) { m_thumbnailUrlHasBeenSet = true; m_thumbnailUrl.assign(value); }
288 inline Branch& WithThumbnailUrl(const Aws::String& value) { SetThumbnailUrl(value); return *this;}
289 inline Branch& WithThumbnailUrl(Aws::String&& value) { SetThumbnailUrl(std::move(value)); return *this;}
290 inline Branch& WithThumbnailUrl(const char* value) { SetThumbnailUrl(value); return *this;}
292
294
299 inline const Aws::String& GetBasicAuthCredentials() const{ return m_basicAuthCredentials; }
300 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
301 inline void SetBasicAuthCredentials(const Aws::String& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = value; }
302 inline void SetBasicAuthCredentials(Aws::String&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::move(value); }
303 inline void SetBasicAuthCredentials(const char* value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials.assign(value); }
304 inline Branch& WithBasicAuthCredentials(const Aws::String& value) { SetBasicAuthCredentials(value); return *this;}
305 inline Branch& WithBasicAuthCredentials(Aws::String&& value) { SetBasicAuthCredentials(std::move(value)); return *this;}
306 inline Branch& WithBasicAuthCredentials(const char* value) { SetBasicAuthCredentials(value); return *this;}
308
310
314 inline const Aws::String& GetBuildSpec() const{ return m_buildSpec; }
315 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
316 inline void SetBuildSpec(const Aws::String& value) { m_buildSpecHasBeenSet = true; m_buildSpec = value; }
317 inline void SetBuildSpec(Aws::String&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::move(value); }
318 inline void SetBuildSpec(const char* value) { m_buildSpecHasBeenSet = true; m_buildSpec.assign(value); }
319 inline Branch& WithBuildSpec(const Aws::String& value) { SetBuildSpec(value); return *this;}
320 inline Branch& WithBuildSpec(Aws::String&& value) { SetBuildSpec(std::move(value)); return *this;}
321 inline Branch& WithBuildSpec(const char* value) { SetBuildSpec(value); return *this;}
323
325
328 inline const Aws::String& GetTtl() const{ return m_ttl; }
329 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
330 inline void SetTtl(const Aws::String& value) { m_ttlHasBeenSet = true; m_ttl = value; }
331 inline void SetTtl(Aws::String&& value) { m_ttlHasBeenSet = true; m_ttl = std::move(value); }
332 inline void SetTtl(const char* value) { m_ttlHasBeenSet = true; m_ttl.assign(value); }
333 inline Branch& WithTtl(const Aws::String& value) { SetTtl(value); return *this;}
334 inline Branch& WithTtl(Aws::String&& value) { SetTtl(std::move(value)); return *this;}
335 inline Branch& WithTtl(const char* value) { SetTtl(value); return *this;}
337
339
342 inline const Aws::Vector<Aws::String>& GetAssociatedResources() const{ return m_associatedResources; }
343 inline bool AssociatedResourcesHasBeenSet() const { return m_associatedResourcesHasBeenSet; }
344 inline void SetAssociatedResources(const Aws::Vector<Aws::String>& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources = value; }
345 inline void SetAssociatedResources(Aws::Vector<Aws::String>&& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources = std::move(value); }
347 inline Branch& WithAssociatedResources(Aws::Vector<Aws::String>&& value) { SetAssociatedResources(std::move(value)); return *this;}
348 inline Branch& AddAssociatedResources(const Aws::String& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources.push_back(value); return *this; }
349 inline Branch& AddAssociatedResources(Aws::String&& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources.push_back(std::move(value)); return *this; }
350 inline Branch& AddAssociatedResources(const char* value) { m_associatedResourcesHasBeenSet = true; m_associatedResources.push_back(value); return *this; }
352
354
357 inline bool GetEnablePullRequestPreview() const{ return m_enablePullRequestPreview; }
358 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
359 inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; }
360 inline Branch& WithEnablePullRequestPreview(bool value) { SetEnablePullRequestPreview(value); return *this;}
362
364
367 inline const Aws::String& GetPullRequestEnvironmentName() const{ return m_pullRequestEnvironmentName; }
368 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
369 inline void SetPullRequestEnvironmentName(const Aws::String& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = value; }
370 inline void SetPullRequestEnvironmentName(Aws::String&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::move(value); }
371 inline void SetPullRequestEnvironmentName(const char* value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName.assign(value); }
373 inline Branch& WithPullRequestEnvironmentName(Aws::String&& value) { SetPullRequestEnvironmentName(std::move(value)); return *this;}
374 inline Branch& WithPullRequestEnvironmentName(const char* value) { SetPullRequestEnvironmentName(value); return *this;}
376
378
381 inline const Aws::String& GetDestinationBranch() const{ return m_destinationBranch; }
382 inline bool DestinationBranchHasBeenSet() const { return m_destinationBranchHasBeenSet; }
383 inline void SetDestinationBranch(const Aws::String& value) { m_destinationBranchHasBeenSet = true; m_destinationBranch = value; }
384 inline void SetDestinationBranch(Aws::String&& value) { m_destinationBranchHasBeenSet = true; m_destinationBranch = std::move(value); }
385 inline void SetDestinationBranch(const char* value) { m_destinationBranchHasBeenSet = true; m_destinationBranch.assign(value); }
386 inline Branch& WithDestinationBranch(const Aws::String& value) { SetDestinationBranch(value); return *this;}
387 inline Branch& WithDestinationBranch(Aws::String&& value) { SetDestinationBranch(std::move(value)); return *this;}
388 inline Branch& WithDestinationBranch(const char* value) { SetDestinationBranch(value); return *this;}
390
392
395 inline const Aws::String& GetSourceBranch() const{ return m_sourceBranch; }
396 inline bool SourceBranchHasBeenSet() const { return m_sourceBranchHasBeenSet; }
397 inline void SetSourceBranch(const Aws::String& value) { m_sourceBranchHasBeenSet = true; m_sourceBranch = value; }
398 inline void SetSourceBranch(Aws::String&& value) { m_sourceBranchHasBeenSet = true; m_sourceBranch = std::move(value); }
399 inline void SetSourceBranch(const char* value) { m_sourceBranchHasBeenSet = true; m_sourceBranch.assign(value); }
400 inline Branch& WithSourceBranch(const Aws::String& value) { SetSourceBranch(value); return *this;}
401 inline Branch& WithSourceBranch(Aws::String&& value) { SetSourceBranch(std::move(value)); return *this;}
402 inline Branch& WithSourceBranch(const char* value) { SetSourceBranch(value); return *this;}
404
406
412 inline const Aws::String& GetBackendEnvironmentArn() const{ return m_backendEnvironmentArn; }
413 inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; }
414 inline void SetBackendEnvironmentArn(const Aws::String& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = value; }
415 inline void SetBackendEnvironmentArn(Aws::String&& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = std::move(value); }
416 inline void SetBackendEnvironmentArn(const char* value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn.assign(value); }
417 inline Branch& WithBackendEnvironmentArn(const Aws::String& value) { SetBackendEnvironmentArn(value); return *this;}
418 inline Branch& WithBackendEnvironmentArn(Aws::String&& value) { SetBackendEnvironmentArn(std::move(value)); return *this;}
419 inline Branch& WithBackendEnvironmentArn(const char* value) { SetBackendEnvironmentArn(value); return *this;}
421
423
424 inline const Backend& GetBackend() const{ return m_backend; }
425 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
426 inline void SetBackend(const Backend& value) { m_backendHasBeenSet = true; m_backend = value; }
427 inline void SetBackend(Backend&& value) { m_backendHasBeenSet = true; m_backend = std::move(value); }
428 inline Branch& WithBackend(const Backend& value) { SetBackend(value); return *this;}
429 inline Branch& WithBackend(Backend&& value) { SetBackend(std::move(value)); return *this;}
431 private:
432
433 Aws::String m_branchArn;
434 bool m_branchArnHasBeenSet = false;
435
436 Aws::String m_branchName;
437 bool m_branchNameHasBeenSet = false;
438
439 Aws::String m_description;
440 bool m_descriptionHasBeenSet = false;
441
443 bool m_tagsHasBeenSet = false;
444
445 Stage m_stage;
446 bool m_stageHasBeenSet = false;
447
448 Aws::String m_displayName;
449 bool m_displayNameHasBeenSet = false;
450
451 bool m_enableNotification;
452 bool m_enableNotificationHasBeenSet = false;
453
454 Aws::Utils::DateTime m_createTime;
455 bool m_createTimeHasBeenSet = false;
456
457 Aws::Utils::DateTime m_updateTime;
458 bool m_updateTimeHasBeenSet = false;
459
460 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
461 bool m_environmentVariablesHasBeenSet = false;
462
463 bool m_enableAutoBuild;
464 bool m_enableAutoBuildHasBeenSet = false;
465
466 Aws::Vector<Aws::String> m_customDomains;
467 bool m_customDomainsHasBeenSet = false;
468
469 Aws::String m_framework;
470 bool m_frameworkHasBeenSet = false;
471
472 Aws::String m_activeJobId;
473 bool m_activeJobIdHasBeenSet = false;
474
475 Aws::String m_totalNumberOfJobs;
476 bool m_totalNumberOfJobsHasBeenSet = false;
477
478 bool m_enableBasicAuth;
479 bool m_enableBasicAuthHasBeenSet = false;
480
481 bool m_enablePerformanceMode;
482 bool m_enablePerformanceModeHasBeenSet = false;
483
484 Aws::String m_thumbnailUrl;
485 bool m_thumbnailUrlHasBeenSet = false;
486
487 Aws::String m_basicAuthCredentials;
488 bool m_basicAuthCredentialsHasBeenSet = false;
489
490 Aws::String m_buildSpec;
491 bool m_buildSpecHasBeenSet = false;
492
493 Aws::String m_ttl;
494 bool m_ttlHasBeenSet = false;
495
496 Aws::Vector<Aws::String> m_associatedResources;
497 bool m_associatedResourcesHasBeenSet = false;
498
499 bool m_enablePullRequestPreview;
500 bool m_enablePullRequestPreviewHasBeenSet = false;
501
502 Aws::String m_pullRequestEnvironmentName;
503 bool m_pullRequestEnvironmentNameHasBeenSet = false;
504
505 Aws::String m_destinationBranch;
506 bool m_destinationBranchHasBeenSet = false;
507
508 Aws::String m_sourceBranch;
509 bool m_sourceBranchHasBeenSet = false;
510
511 Aws::String m_backendEnvironmentArn;
512 bool m_backendEnvironmentArnHasBeenSet = false;
513
514 Backend m_backend;
515 bool m_backendHasBeenSet = false;
516 };
517
518} // namespace Model
519} // namespace Amplify
520} // namespace Aws
Branch & WithDescription(const Aws::String &value)
Definition Branch.h:84
Branch & WithDestinationBranch(Aws::String &&value)
Definition Branch.h:387
bool TotalNumberOfJobsHasBeenSet() const
Definition Branch.h:247
bool AssociatedResourcesHasBeenSet() const
Definition Branch.h:343
Branch & AddTags(const Aws::String &key, Aws::String &&value)
Definition Branch.h:101
void SetDescription(const char *value)
Definition Branch.h:83
void SetBackend(const Backend &value)
Definition Branch.h:426
const Aws::String & GetBasicAuthCredentials() const
Definition Branch.h:299
void SetCustomDomains(const Aws::Vector< Aws::String > &value)
Definition Branch.h:205
Branch & AddTags(const Aws::String &key, const Aws::String &value)
Definition Branch.h:99
Branch & WithBranchName(const Aws::String &value)
Definition Branch.h:70
Branch & AddEnvironmentVariables(const Aws::String &key, const Aws::String &value)
Definition Branch.h:180
const Aws::String & GetThumbnailUrl() const
Definition Branch.h:283
Branch & AddEnvironmentVariables(Aws::String &&key, const Aws::String &value)
Definition Branch.h:181
Branch & WithPullRequestEnvironmentName(const Aws::String &value)
Definition Branch.h:372
Branch & WithBackendEnvironmentArn(const char *value)
Definition Branch.h:419
Branch & WithFramework(const Aws::String &value)
Definition Branch.h:223
bool GetEnableAutoBuild() const
Definition Branch.h:193
bool ThumbnailUrlHasBeenSet() const
Definition Branch.h:284
void SetBuildSpec(const char *value)
Definition Branch.h:318
void SetDescription(const Aws::String &value)
Definition Branch.h:81
void SetAssociatedResources(Aws::Vector< Aws::String > &&value)
Definition Branch.h:345
bool EnableNotificationHasBeenSet() const
Definition Branch.h:140
void SetEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition Branch.h:176
void SetActiveJobId(const char *value)
Definition Branch.h:236
Branch & AddCustomDomains(const Aws::String &value)
Definition Branch.h:209
Branch & AddTags(Aws::String &&key, Aws::String &&value)
Definition Branch.h:102
Branch & WithTotalNumberOfJobs(const Aws::String &value)
Definition Branch.h:251
void SetFramework(const Aws::String &value)
Definition Branch.h:220
Branch & AddTags(Aws::String &&key, const Aws::String &value)
Definition Branch.h:100
void SetDescription(Aws::String &&value)
Definition Branch.h:82
const Aws::String & GetTtl() const
Definition Branch.h:328
Branch & WithBranchName(const char *value)
Definition Branch.h:72
Branch & WithBasicAuthCredentials(const char *value)
Definition Branch.h:306
bool UpdateTimeHasBeenSet() const
Definition Branch.h:163
Branch & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition Branch.h:167
void SetPullRequestEnvironmentName(Aws::String &&value)
Definition Branch.h:370
Branch & WithAssociatedResources(const Aws::Vector< Aws::String > &value)
Definition Branch.h:346
void SetThumbnailUrl(const Aws::String &value)
Definition Branch.h:285
Branch & WithAssociatedResources(Aws::Vector< Aws::String > &&value)
Definition Branch.h:347
void SetDestinationBranch(Aws::String &&value)
Definition Branch.h:384
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Branch.h:95
Branch & WithTotalNumberOfJobs(Aws::String &&value)
Definition Branch.h:252
Branch & WithStage(Stage &&value)
Definition Branch.h:117
void SetTotalNumberOfJobs(Aws::String &&value)
Definition Branch.h:249
Branch & WithDisplayName(const Aws::String &value)
Definition Branch.h:130
Branch & WithTtl(Aws::String &&value)
Definition Branch.h:334
Branch & WithThumbnailUrl(const Aws::String &value)
Definition Branch.h:288
bool BuildSpecHasBeenSet() const
Definition Branch.h:315
void SetActiveJobId(const Aws::String &value)
Definition Branch.h:234
void SetEnablePerformanceMode(bool value)
Definition Branch.h:275
Branch & WithPullRequestEnvironmentName(const char *value)
Definition Branch.h:374
Branch & WithFramework(Aws::String &&value)
Definition Branch.h:224
void SetBranchArn(Aws::String &&value)
Definition Branch.h:54
void SetBranchName(const Aws::String &value)
Definition Branch.h:67
void SetEnableNotification(bool value)
Definition Branch.h:141
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition Branch.h:164
Branch & WithDescription(const char *value)
Definition Branch.h:86
Branch & WithEnableNotification(bool value)
Definition Branch.h:142
AWS_AMPLIFY_API Branch(Aws::Utils::Json::JsonView jsonValue)
void SetFramework(Aws::String &&value)
Definition Branch.h:221
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition Branch.h:152
void SetBranchName(Aws::String &&value)
Definition Branch.h:68
void SetThumbnailUrl(Aws::String &&value)
Definition Branch.h:286
const Aws::String & GetTotalNumberOfJobs() const
Definition Branch.h:246
Branch & AddAssociatedResources(Aws::String &&value)
Definition Branch.h:349
void SetThumbnailUrl(const char *value)
Definition Branch.h:287
bool TagsHasBeenSet() const
Definition Branch.h:94
bool GetEnableBasicAuth() const
Definition Branch.h:260
const Aws::String & GetBranchName() const
Definition Branch.h:65
Branch & AddCustomDomains(const char *value)
Definition Branch.h:211
Branch & WithPullRequestEnvironmentName(Aws::String &&value)
Definition Branch.h:373
bool CustomDomainsHasBeenSet() const
Definition Branch.h:204
Branch & WithEnablePerformanceMode(bool value)
Definition Branch.h:276
bool BackendEnvironmentArnHasBeenSet() const
Definition Branch.h:413
Branch & WithBuildSpec(Aws::String &&value)
Definition Branch.h:320
Branch & AddEnvironmentVariables(const char *key, Aws::String &&value)
Definition Branch.h:184
void SetBackendEnvironmentArn(Aws::String &&value)
Definition Branch.h:415
Branch & WithSourceBranch(Aws::String &&value)
Definition Branch.h:401
Branch & AddAssociatedResources(const Aws::String &value)
Definition Branch.h:348
bool EnableAutoBuildHasBeenSet() const
Definition Branch.h:194
void SetDisplayName(const char *value)
Definition Branch.h:129
void SetPullRequestEnvironmentName(const char *value)
Definition Branch.h:371
Branch & WithEnablePullRequestPreview(bool value)
Definition Branch.h:360
Branch & WithCreateTime(const Aws::Utils::DateTime &value)
Definition Branch.h:153
Branch & AddTags(Aws::String &&key, const char *value)
Definition Branch.h:104
Branch & WithCustomDomains(const Aws::Vector< Aws::String > &value)
Definition Branch.h:207
void SetTotalNumberOfJobs(const char *value)
Definition Branch.h:250
Branch & WithTtl(const char *value)
Definition Branch.h:335
Branch & WithSourceBranch(const Aws::String &value)
Definition Branch.h:400
void SetFramework(const char *value)
Definition Branch.h:222
void SetTotalNumberOfJobs(const Aws::String &value)
Definition Branch.h:248
void SetTtl(Aws::String &&value)
Definition Branch.h:331
void SetBuildSpec(const Aws::String &value)
Definition Branch.h:316
Branch & WithEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition Branch.h:178
void SetDestinationBranch(const char *value)
Definition Branch.h:385
bool FrameworkHasBeenSet() const
Definition Branch.h:219
bool EnvironmentVariablesHasBeenSet() const
Definition Branch.h:175
void SetBranchArn(const Aws::String &value)
Definition Branch.h:53
Branch & WithBranchName(Aws::String &&value)
Definition Branch.h:71
const Backend & GetBackend() const
Definition Branch.h:424
void SetBasicAuthCredentials(const Aws::String &value)
Definition Branch.h:301
bool BranchArnHasBeenSet() const
Definition Branch.h:52
bool BranchNameHasBeenSet() const
Definition Branch.h:66
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition Branch.h:151
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Branch.h:93
bool GetEnablePullRequestPreview() const
Definition Branch.h:357
const Aws::String & GetActiveJobId() const
Definition Branch.h:232
Branch & AddAssociatedResources(const char *value)
Definition Branch.h:350
const Aws::String & GetSourceBranch() const
Definition Branch.h:395
const Aws::String & GetPullRequestEnvironmentName() const
Definition Branch.h:367
bool BackendHasBeenSet() const
Definition Branch.h:425
void SetAssociatedResources(const Aws::Vector< Aws::String > &value)
Definition Branch.h:344
const Aws::String & GetBranchArn() const
Definition Branch.h:51
Branch & AddEnvironmentVariables(const char *key, const char *value)
Definition Branch.h:186
Branch & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Branch.h:98
void SetEnableAutoBuild(bool value)
Definition Branch.h:195
Branch & WithActiveJobId(const Aws::String &value)
Definition Branch.h:237
bool PullRequestEnvironmentNameHasBeenSet() const
Definition Branch.h:368
Branch & WithBackendEnvironmentArn(Aws::String &&value)
Definition Branch.h:418
Branch & WithBranchArn(const char *value)
Definition Branch.h:58
Branch & WithBuildSpec(const char *value)
Definition Branch.h:321
void SetBackendEnvironmentArn(const char *value)
Definition Branch.h:416
void SetBackendEnvironmentArn(const Aws::String &value)
Definition Branch.h:414
Branch & WithBasicAuthCredentials(Aws::String &&value)
Definition Branch.h:305
bool TtlHasBeenSet() const
Definition Branch.h:329
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Branch.h:96
void SetBackend(Backend &&value)
Definition Branch.h:427
Branch & WithBranchArn(Aws::String &&value)
Definition Branch.h:57
void SetTtl(const char *value)
Definition Branch.h:332
bool ActiveJobIdHasBeenSet() const
Definition Branch.h:233
const Stage & GetStage() const
Definition Branch.h:112
Branch & WithBasicAuthCredentials(const Aws::String &value)
Definition Branch.h:304
Branch & WithBackend(const Backend &value)
Definition Branch.h:428
Branch & WithDescription(Aws::String &&value)
Definition Branch.h:85
void SetTtl(const Aws::String &value)
Definition Branch.h:330
bool BasicAuthCredentialsHasBeenSet() const
Definition Branch.h:300
void SetStage(const Stage &value)
Definition Branch.h:114
Branch & WithDisplayName(Aws::String &&value)
Definition Branch.h:131
Branch & AddCustomDomains(Aws::String &&value)
Definition Branch.h:210
void SetDestinationBranch(const Aws::String &value)
Definition Branch.h:383
Branch & WithDestinationBranch(const Aws::String &value)
Definition Branch.h:386
bool DestinationBranchHasBeenSet() const
Definition Branch.h:382
Branch & AddEnvironmentVariables(Aws::String &&key, Aws::String &&value)
Definition Branch.h:183
Branch & WithActiveJobId(const char *value)
Definition Branch.h:239
void SetDisplayName(Aws::String &&value)
Definition Branch.h:128
bool GetEnablePerformanceMode() const
Definition Branch.h:273
Branch & WithStage(const Stage &value)
Definition Branch.h:116
void SetPullRequestEnvironmentName(const Aws::String &value)
Definition Branch.h:369
Branch & WithActiveJobId(Aws::String &&value)
Definition Branch.h:238
Branch & WithTtl(const Aws::String &value)
Definition Branch.h:333
bool DescriptionHasBeenSet() const
Definition Branch.h:80
void SetSourceBranch(const char *value)
Definition Branch.h:399
bool StageHasBeenSet() const
Definition Branch.h:113
AWS_AMPLIFY_API Branch()
const Aws::String & GetDestinationBranch() const
Definition Branch.h:381
bool GetEnableNotification() const
Definition Branch.h:139
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFramework() const
Definition Branch.h:218
const Aws::String & GetDescription() const
Definition Branch.h:79
Branch & WithBranchArn(const Aws::String &value)
Definition Branch.h:56
void SetBasicAuthCredentials(Aws::String &&value)
Definition Branch.h:302
const Aws::String & GetBuildSpec() const
Definition Branch.h:314
Branch & WithTotalNumberOfJobs(const char *value)
Definition Branch.h:253
Branch & WithFramework(const char *value)
Definition Branch.h:225
Branch & WithThumbnailUrl(Aws::String &&value)
Definition Branch.h:289
const Aws::Vector< Aws::String > & GetCustomDomains() const
Definition Branch.h:203
void SetEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition Branch.h:177
Branch & WithCustomDomains(Aws::Vector< Aws::String > &&value)
Definition Branch.h:208
const Aws::Utils::DateTime & GetUpdateTime() const
Definition Branch.h:162
Branch & AddTags(const char *key, const char *value)
Definition Branch.h:105
const Aws::String & GetBackendEnvironmentArn() const
Definition Branch.h:412
Branch & WithDisplayName(const char *value)
Definition Branch.h:132
bool SourceBranchHasBeenSet() const
Definition Branch.h:396
Branch & AddEnvironmentVariables(const Aws::String &key, Aws::String &&value)
Definition Branch.h:182
Branch & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition Branch.h:166
AWS_AMPLIFY_API Branch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBasicAuthCredentials(const char *value)
Definition Branch.h:303
Branch & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Branch.h:97
Branch & WithBackendEnvironmentArn(const Aws::String &value)
Definition Branch.h:417
void SetSourceBranch(Aws::String &&value)
Definition Branch.h:398
Branch & WithBackend(Backend &&value)
Definition Branch.h:429
void SetCustomDomains(Aws::Vector< Aws::String > &&value)
Definition Branch.h:206
void SetActiveJobId(Aws::String &&value)
Definition Branch.h:235
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition Branch.h:165
void SetEnableBasicAuth(bool value)
Definition Branch.h:262
bool CreateTimeHasBeenSet() const
Definition Branch.h:150
bool DisplayNameHasBeenSet() const
Definition Branch.h:126
Branch & WithCreateTime(Aws::Utils::DateTime &&value)
Definition Branch.h:154
void SetBuildSpec(Aws::String &&value)
Definition Branch.h:317
void SetEnablePullRequestPreview(bool value)
Definition Branch.h:359
Branch & AddEnvironmentVariables(Aws::String &&key, const char *value)
Definition Branch.h:185
void SetSourceBranch(const Aws::String &value)
Definition Branch.h:397
Branch & AddTags(const char *key, Aws::String &&value)
Definition Branch.h:103
Branch & WithThumbnailUrl(const char *value)
Definition Branch.h:290
void SetBranchName(const char *value)
Definition Branch.h:69
const Aws::String & GetDisplayName() const
Definition Branch.h:125
void SetBranchArn(const char *value)
Definition Branch.h:55
Branch & WithEnableBasicAuth(bool value)
Definition Branch.h:263
bool EnablePullRequestPreviewHasBeenSet() const
Definition Branch.h:358
const Aws::Vector< Aws::String > & GetAssociatedResources() const
Definition Branch.h:342
void SetDisplayName(const Aws::String &value)
Definition Branch.h:127
Branch & WithEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition Branch.h:179
void SetStage(Stage &&value)
Definition Branch.h:115
Branch & WithDestinationBranch(const char *value)
Definition Branch.h:388
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
Definition Branch.h:174
const Aws::Utils::DateTime & GetCreateTime() const
Definition Branch.h:149
Branch & WithEnableAutoBuild(bool value)
Definition Branch.h:196
bool EnableBasicAuthHasBeenSet() const
Definition Branch.h:261
Branch & WithSourceBranch(const char *value)
Definition Branch.h:402
Branch & WithBuildSpec(const Aws::String &value)
Definition Branch.h:319
bool EnablePerformanceModeHasBeenSet() const
Definition Branch.h:274
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue