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>
53 template<
typename BranchArnT = Aws::String>
54 void SetBranchArn(BranchArnT&& value) { m_branchArnHasBeenSet =
true; m_branchArn = std::forward<BranchArnT>(value); }
55 template<
typename BranchArnT = Aws::String>
65 template<
typename BranchNameT = Aws::String>
66 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet =
true; m_branchName = std::forward<BranchNameT>(value); }
67 template<
typename BranchNameT = Aws::String>
77 template<
typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
79 template<
typename DescriptionT = Aws::String>
89 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
91 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
95 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
105 inline void SetStage(
Stage value) { m_stageHasBeenSet =
true; m_stage = value; }
116 template<
typename DisplayNameT = Aws::String>
117 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet =
true; m_displayName = std::forward<DisplayNameT>(value); }
118 template<
typename DisplayNameT = Aws::String>
128 inline void SetEnableNotification(
bool value) { m_enableNotificationHasBeenSet =
true; m_enableNotification = value; }
138 template<
typename CreateTimeT = Aws::Utils::DateTime>
139 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
140 template<
typename CreateTimeT = Aws::Utils::DateTime>
150 template<
typename UpdateTimeT = Aws::Utils::DateTime>
151 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet =
true; m_updateTime = std::forward<UpdateTimeT>(value); }
152 template<
typename UpdateTimeT = Aws::Utils::DateTime>
162 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
163 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet =
true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
164 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
166 template<
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
168 m_environmentVariablesHasBeenSet =
true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
return *
this;
178 inline void SetEnableAutoBuild(
bool value) { m_enableAutoBuildHasBeenSet =
true; m_enableAutoBuild = value; }
205 template<
typename CustomDomainsT = Aws::Vector<Aws::String>>
206 void SetCustomDomains(CustomDomainsT&& value) { m_customDomainsHasBeenSet =
true; m_customDomains = std::forward<CustomDomainsT>(value); }
207 template<
typename CustomDomainsT = Aws::Vector<Aws::String>>
209 template<
typename CustomDomainsT = Aws::String>
210 Branch&
AddCustomDomains(CustomDomainsT&& value) { m_customDomainsHasBeenSet =
true; m_customDomains.emplace_back(std::forward<CustomDomainsT>(value));
return *
this; }
219 template<
typename FrameworkT = Aws::String>
220 void SetFramework(FrameworkT&& value) { m_frameworkHasBeenSet =
true; m_framework = std::forward<FrameworkT>(value); }
221 template<
typename FrameworkT = Aws::String>
231 template<
typename ActiveJobIdT = Aws::String>
232 void SetActiveJobId(ActiveJobIdT&& value) { m_activeJobIdHasBeenSet =
true; m_activeJobId = std::forward<ActiveJobIdT>(value); }
233 template<
typename ActiveJobIdT = Aws::String>
243 template<
typename TotalNumberOfJobsT = Aws::String>
244 void SetTotalNumberOfJobs(TotalNumberOfJobsT&& value) { m_totalNumberOfJobsHasBeenSet =
true; m_totalNumberOfJobs = std::forward<TotalNumberOfJobsT>(value); }
245 template<
typename TotalNumberOfJobsT = Aws::String>
255 inline void SetEnableBasicAuth(
bool value) { m_enableBasicAuthHasBeenSet =
true; m_enableBasicAuth = value; }
278 template<
typename ThumbnailUrlT = Aws::String>
279 void SetThumbnailUrl(ThumbnailUrlT&& value) { m_thumbnailUrlHasBeenSet =
true; m_thumbnailUrl = std::forward<ThumbnailUrlT>(value); }
280 template<
typename ThumbnailUrlT = Aws::String>
292 template<
typename BasicAuthCredentialsT = Aws::String>
293 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet =
true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
294 template<
typename BasicAuthCredentialsT = Aws::String>
305 template<
typename BuildSpecT = Aws::String>
306 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet =
true; m_buildSpec = std::forward<BuildSpecT>(value); }
307 template<
typename BuildSpecT = Aws::String>
317 template<
typename TtlT = Aws::String>
318 void SetTtl(TtlT&& value) { m_ttlHasBeenSet =
true; m_ttl = std::forward<TtlT>(value); }
319 template<
typename TtlT = Aws::String>
329 template<
typename AssociatedResourcesT = Aws::Vector<Aws::String>>
330 void SetAssociatedResources(AssociatedResourcesT&& value) { m_associatedResourcesHasBeenSet =
true; m_associatedResources = std::forward<AssociatedResourcesT>(value); }
331 template<
typename AssociatedResourcesT = Aws::Vector<Aws::String>>
333 template<
typename AssociatedResourcesT = Aws::String>
334 Branch&
AddAssociatedResources(AssociatedResourcesT&& value) { m_associatedResourcesHasBeenSet =
true; m_associatedResources.emplace_back(std::forward<AssociatedResourcesT>(value));
return *
this; }
353 template<
typename PullRequestEnvironmentNameT = Aws::String>
354 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { m_pullRequestEnvironmentNameHasBeenSet =
true; m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value); }
355 template<
typename PullRequestEnvironmentNameT = Aws::String>
365 template<
typename DestinationBranchT = Aws::String>
366 void SetDestinationBranch(DestinationBranchT&& value) { m_destinationBranchHasBeenSet =
true; m_destinationBranch = std::forward<DestinationBranchT>(value); }
367 template<
typename DestinationBranchT = Aws::String>
377 template<
typename SourceBranchT = Aws::String>
378 void SetSourceBranch(SourceBranchT&& value) { m_sourceBranchHasBeenSet =
true; m_sourceBranch = std::forward<SourceBranchT>(value); }
379 template<
typename SourceBranchT = Aws::String>
392 template<
typename BackendEnvironmentArnT = Aws::String>
393 void SetBackendEnvironmentArn(BackendEnvironmentArnT&& value) { m_backendEnvironmentArnHasBeenSet =
true; m_backendEnvironmentArn = std::forward<BackendEnvironmentArnT>(value); }
394 template<
typename BackendEnvironmentArnT = Aws::String>
402 template<
typename BackendT = Backend>
403 void SetBackend(BackendT&& value) { m_backendHasBeenSet =
true; m_backend = std::forward<BackendT>(value); }
404 template<
typename BackendT = Backend>
419 template<
typename ComputeRoleArnT = Aws::String>
420 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet =
true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
421 template<
typename ComputeRoleArnT = Aws::String>
427 bool m_branchArnHasBeenSet =
false;
430 bool m_branchNameHasBeenSet =
false;
433 bool m_descriptionHasBeenSet =
false;
436 bool m_tagsHasBeenSet =
false;
439 bool m_stageHasBeenSet =
false;
442 bool m_displayNameHasBeenSet =
false;
444 bool m_enableNotification{
false};
445 bool m_enableNotificationHasBeenSet =
false;
448 bool m_createTimeHasBeenSet =
false;
451 bool m_updateTimeHasBeenSet =
false;
454 bool m_environmentVariablesHasBeenSet =
false;
456 bool m_enableAutoBuild{
false};
457 bool m_enableAutoBuildHasBeenSet =
false;
459 bool m_enableSkewProtection{
false};
460 bool m_enableSkewProtectionHasBeenSet =
false;
463 bool m_customDomainsHasBeenSet =
false;
466 bool m_frameworkHasBeenSet =
false;
469 bool m_activeJobIdHasBeenSet =
false;
472 bool m_totalNumberOfJobsHasBeenSet =
false;
474 bool m_enableBasicAuth{
false};
475 bool m_enableBasicAuthHasBeenSet =
false;
477 bool m_enablePerformanceMode{
false};
478 bool m_enablePerformanceModeHasBeenSet =
false;
481 bool m_thumbnailUrlHasBeenSet =
false;
484 bool m_basicAuthCredentialsHasBeenSet =
false;
487 bool m_buildSpecHasBeenSet =
false;
490 bool m_ttlHasBeenSet =
false;
493 bool m_associatedResourcesHasBeenSet =
false;
495 bool m_enablePullRequestPreview{
false};
496 bool m_enablePullRequestPreviewHasBeenSet =
false;
499 bool m_pullRequestEnvironmentNameHasBeenSet =
false;
502 bool m_destinationBranchHasBeenSet =
false;
505 bool m_sourceBranchHasBeenSet =
false;
508 bool m_backendEnvironmentArnHasBeenSet =
false;
511 bool m_backendHasBeenSet =
false;
514 bool m_computeRoleArnHasBeenSet =
false;
bool ComputeRoleArnHasBeenSet() const
void SetTags(TagsT &&value)
bool TotalNumberOfJobsHasBeenSet() const
Branch & AddAssociatedResources(AssociatedResourcesT &&value)
void SetFramework(FrameworkT &&value)
bool AssociatedResourcesHasBeenSet() const
const Aws::String & GetBasicAuthCredentials() const
Branch & WithCreateTime(CreateTimeT &&value)
void SetActiveJobId(ActiveJobIdT &&value)
void SetEnableSkewProtection(bool value)
const Aws::String & GetThumbnailUrl() const
Branch & WithTags(TagsT &&value)
bool GetEnableAutoBuild() const
bool ThumbnailUrlHasBeenSet() const
void SetStage(Stage value)
Branch & WithDisplayName(DisplayNameT &&value)
Branch & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
bool EnableNotificationHasBeenSet() const
void SetBranchArn(BranchArnT &&value)
const Aws::String & GetTtl() const
bool UpdateTimeHasBeenSet() const
void SetSourceBranch(SourceBranchT &&value)
void SetAssociatedResources(AssociatedResourcesT &&value)
void SetBackendEnvironmentArn(BackendEnvironmentArnT &&value)
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
Branch & WithBackend(BackendT &&value)
Branch & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
bool BuildSpecHasBeenSet() const
void SetDestinationBranch(DestinationBranchT &&value)
Branch & WithAssociatedResources(AssociatedResourcesT &&value)
bool EnableSkewProtectionHasBeenSet() const
Branch & WithTotalNumberOfJobs(TotalNumberOfJobsT &&value)
void SetEnablePerformanceMode(bool value)
void SetEnableNotification(bool value)
Branch & WithEnableNotification(bool value)
void SetUpdateTime(UpdateTimeT &&value)
AWS_AMPLIFY_API Branch(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTotalNumberOfJobs() const
bool TagsHasBeenSet() const
Branch & WithFramework(FrameworkT &&value)
bool GetEnableBasicAuth() const
const Aws::String & GetBranchName() const
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
Branch & WithActiveJobId(ActiveJobIdT &&value)
bool CustomDomainsHasBeenSet() const
Branch & WithDescription(DescriptionT &&value)
Branch & WithDestinationBranch(DestinationBranchT &&value)
Branch & WithEnablePerformanceMode(bool value)
bool BackendEnvironmentArnHasBeenSet() const
void SetTtl(TtlT &&value)
bool EnableAutoBuildHasBeenSet() const
void SetComputeRoleArn(ComputeRoleArnT &&value)
Branch & WithEnablePullRequestPreview(bool value)
Branch & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetThumbnailUrl(ThumbnailUrlT &&value)
Branch & WithUpdateTime(UpdateTimeT &&value)
void SetBackend(BackendT &&value)
Branch & WithCustomDomains(CustomDomainsT &&value)
bool FrameworkHasBeenSet() const
bool EnvironmentVariablesHasBeenSet() const
const Backend & GetBackend() const
bool BranchArnHasBeenSet() const
bool BranchNameHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool GetEnablePullRequestPreview() const
const Aws::String & GetActiveJobId() const
Branch & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
const Aws::String & GetSourceBranch() const
const Aws::String & GetPullRequestEnvironmentName() const
bool BackendHasBeenSet() const
AWS_AMPLIFY_API Branch()=default
const Aws::String & GetBranchArn() const
void SetEnableAutoBuild(bool value)
bool PullRequestEnvironmentNameHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool TtlHasBeenSet() const
Branch & WithBranchArn(BranchArnT &&value)
bool ActiveJobIdHasBeenSet() const
bool BasicAuthCredentialsHasBeenSet() const
Branch & WithEnableSkewProtection(bool value)
void SetCustomDomains(CustomDomainsT &&value)
void SetBuildSpec(BuildSpecT &&value)
bool DestinationBranchHasBeenSet() const
bool GetEnablePerformanceMode() const
Branch & AddCustomDomains(CustomDomainsT &&value)
bool DescriptionHasBeenSet() const
Branch & WithSourceBranch(SourceBranchT &&value)
Branch & WithEnvironmentVariables(EnvironmentVariablesT &&value)
bool StageHasBeenSet() const
const Aws::String & GetDestinationBranch() const
bool GetEnableNotification() const
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFramework() const
const Aws::String & GetDescription() const
Branch & WithThumbnailUrl(ThumbnailUrlT &&value)
void SetBranchName(BranchNameT &&value)
const Aws::String & GetBuildSpec() const
const Aws::Vector< Aws::String > & GetCustomDomains() const
Branch & WithBuildSpec(BuildSpecT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
const Aws::String & GetComputeRoleArn() const
const Aws::String & GetBackendEnvironmentArn() const
Branch & WithStage(Stage value)
bool SourceBranchHasBeenSet() const
AWS_AMPLIFY_API Branch & operator=(Aws::Utils::Json::JsonView jsonValue)
Branch & WithComputeRoleArn(ComputeRoleArnT &&value)
Branch & WithTtl(TtlT &&value)
bool GetEnableSkewProtection() const
void SetCreateTime(CreateTimeT &&value)
void SetEnableBasicAuth(bool value)
bool CreateTimeHasBeenSet() const
bool DisplayNameHasBeenSet() const
Branch & WithBranchName(BranchNameT &&value)
void SetEnablePullRequestPreview(bool value)
const Aws::String & GetDisplayName() const
Branch & WithEnableBasicAuth(bool value)
bool EnablePullRequestPreviewHasBeenSet() const
const Aws::Vector< Aws::String > & GetAssociatedResources() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
const Aws::Utils::DateTime & GetCreateTime() const
Branch & WithEnableAutoBuild(bool value)
bool EnableBasicAuthHasBeenSet() const
void SetTotalNumberOfJobs(TotalNumberOfJobsT &&value)
void SetDisplayName(DisplayNameT &&value)
Branch & WithBackendEnvironmentArn(BackendEnvironmentArnT &&value)
bool EnablePerformanceModeHasBeenSet() const
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