/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Amplify { namespace Model { /** *

The branch for an Amplify app, which maps to a third-party repository * branch.

See Also:

AWS API * Reference

*/ class Branch { public: AWS_AMPLIFY_API Branch(); AWS_AMPLIFY_API Branch(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFY_API Branch& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline const Aws::String& GetBranchArn() const{ return m_branchArn; } /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline void SetBranchArn(const Aws::String& value) { m_branchArnHasBeenSet = true; m_branchArn = value; } /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline void SetBranchArn(Aws::String&& value) { m_branchArnHasBeenSet = true; m_branchArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline void SetBranchArn(const char* value) { m_branchArnHasBeenSet = true; m_branchArn.assign(value); } /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline Branch& WithBranchArn(const Aws::String& value) { SetBranchArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline Branch& WithBranchArn(Aws::String&& value) { SetBranchArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. *

*/ inline Branch& WithBranchArn(const char* value) { SetBranchArn(value); return *this;} /** *

The name for the branch that is part of an Amplify app.

*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *

The name for the branch that is part of an Amplify app.

*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *

The name for the branch that is part of an Amplify app.

*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *

The name for the branch that is part of an Amplify app.

*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *

The name for the branch that is part of an Amplify app.

*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *

The name for the branch that is part of an Amplify app.

*/ inline Branch& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *

The name for the branch that is part of an Amplify app.

*/ inline Branch& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *

The name for the branch that is part of an Amplify app.

*/ inline Branch& WithBranchName(const char* value) { SetBranchName(value); return *this;} /** *

The description for the branch that is part of an Amplify app.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the branch that is part of an Amplify app.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the branch that is part of an Amplify app.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for the branch that is part of an Amplify app.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for the branch that is part of an Amplify app.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for the branch that is part of an Amplify app.

*/ inline Branch& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the branch that is part of an Amplify app.

*/ inline Branch& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the branch that is part of an Amplify app.

*/ inline Branch& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The tag for the branch of an Amplify app.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tag for the branch of an Amplify app.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tag for the branch of an Amplify app.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tag for the branch of an Amplify app.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tag for the branch of an Amplify app.

*/ inline Branch& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tag for the branch of an Amplify app.

*/ inline Branch& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The current stage for the branch that is part of an Amplify app.

*/ inline const Stage& GetStage() const{ return m_stage; } /** *

The current stage for the branch that is part of an Amplify app.

*/ inline bool StageHasBeenSet() const { return m_stageHasBeenSet; } /** *

The current stage for the branch that is part of an Amplify app.

*/ inline void SetStage(const Stage& value) { m_stageHasBeenSet = true; m_stage = value; } /** *

The current stage for the branch that is part of an Amplify app.

*/ inline void SetStage(Stage&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); } /** *

The current stage for the branch that is part of an Amplify app.

*/ inline Branch& WithStage(const Stage& value) { SetStage(value); return *this;} /** *

The current stage for the branch that is part of an Amplify app.

*/ inline Branch& WithStage(Stage&& value) { SetStage(std::move(value)); return *this;} /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline Branch& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline Branch& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name for the branch. This is used as the default domain prefix. *

*/ inline Branch& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

Enables notifications for a branch that is part of an Amplify app.

*/ inline bool GetEnableNotification() const{ return m_enableNotification; } /** *

Enables notifications for a branch that is part of an Amplify app.

*/ inline bool EnableNotificationHasBeenSet() const { return m_enableNotificationHasBeenSet; } /** *

Enables notifications for a branch that is part of an Amplify app.

*/ inline void SetEnableNotification(bool value) { m_enableNotificationHasBeenSet = true; m_enableNotification = value; } /** *

Enables notifications for a branch that is part of an Amplify app.

*/ inline Branch& WithEnableNotification(bool value) { SetEnableNotification(value); return *this;} /** *

The creation date and time for a branch that is part of an Amplify app.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The creation date and time for a branch that is part of an Amplify app.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The creation date and time for a branch that is part of an Amplify app.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The creation date and time for a branch that is part of an Amplify app.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The creation date and time for a branch that is part of an Amplify app.

*/ inline Branch& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The creation date and time for a branch that is part of an Amplify app.

*/ inline Branch& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The last updated date and time for a branch that is part of an Amplify app. *

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The last updated date and time for a branch that is part of an Amplify app. *

*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *

The last updated date and time for a branch that is part of an Amplify app. *

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *

The last updated date and time for a branch that is part of an Amplify app. *

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *

The last updated date and time for a branch that is part of an Amplify app. *

*/ inline Branch& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The last updated date and time for a branch that is part of an Amplify app. *

*/ inline Branch& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} /** *

The environment variables specific to a branch of an Amplify app.

*/ inline const Aws::Map& GetEnvironmentVariables() const{ return m_environmentVariables; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline void SetEnvironmentVariables(const Aws::Map& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline void SetEnvironmentVariables(Aws::Map&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& WithEnvironmentVariables(const Aws::Map& value) { SetEnvironmentVariables(value); return *this;} /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& WithEnvironmentVariables(Aws::Map&& value) { SetEnvironmentVariables(std::move(value)); return *this;} /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; } /** *

The environment variables specific to a branch of an Amplify app.

*/ inline Branch& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; } /** *

Enables auto-building on push for a branch of an Amplify app.

*/ inline bool GetEnableAutoBuild() const{ return m_enableAutoBuild; } /** *

Enables auto-building on push for a branch of an Amplify app.

*/ inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; } /** *

Enables auto-building on push for a branch of an Amplify app.

*/ inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; } /** *

Enables auto-building on push for a branch of an Amplify app.

*/ inline Branch& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;} /** *

The custom domains for a branch of an Amplify app.

*/ inline const Aws::Vector& GetCustomDomains() const{ return m_customDomains; } /** *

The custom domains for a branch of an Amplify app.

*/ inline bool CustomDomainsHasBeenSet() const { return m_customDomainsHasBeenSet; } /** *

The custom domains for a branch of an Amplify app.

*/ inline void SetCustomDomains(const Aws::Vector& value) { m_customDomainsHasBeenSet = true; m_customDomains = value; } /** *

The custom domains for a branch of an Amplify app.

*/ inline void SetCustomDomains(Aws::Vector&& value) { m_customDomainsHasBeenSet = true; m_customDomains = std::move(value); } /** *

The custom domains for a branch of an Amplify app.

*/ inline Branch& WithCustomDomains(const Aws::Vector& value) { SetCustomDomains(value); return *this;} /** *

The custom domains for a branch of an Amplify app.

*/ inline Branch& WithCustomDomains(Aws::Vector&& value) { SetCustomDomains(std::move(value)); return *this;} /** *

The custom domains for a branch of an Amplify app.

*/ inline Branch& AddCustomDomains(const Aws::String& value) { m_customDomainsHasBeenSet = true; m_customDomains.push_back(value); return *this; } /** *

The custom domains for a branch of an Amplify app.

*/ inline Branch& AddCustomDomains(Aws::String&& value) { m_customDomainsHasBeenSet = true; m_customDomains.push_back(std::move(value)); return *this; } /** *

The custom domains for a branch of an Amplify app.

*/ inline Branch& AddCustomDomains(const char* value) { m_customDomainsHasBeenSet = true; m_customDomains.push_back(value); return *this; } /** *

The framework for a branch of an Amplify app.

*/ inline const Aws::String& GetFramework() const{ return m_framework; } /** *

The framework for a branch of an Amplify app.

*/ inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; } /** *

The framework for a branch of an Amplify app.

*/ inline void SetFramework(const Aws::String& value) { m_frameworkHasBeenSet = true; m_framework = value; } /** *

The framework for a branch of an Amplify app.

*/ inline void SetFramework(Aws::String&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); } /** *

The framework for a branch of an Amplify app.

*/ inline void SetFramework(const char* value) { m_frameworkHasBeenSet = true; m_framework.assign(value); } /** *

The framework for a branch of an Amplify app.

*/ inline Branch& WithFramework(const Aws::String& value) { SetFramework(value); return *this;} /** *

The framework for a branch of an Amplify app.

*/ inline Branch& WithFramework(Aws::String&& value) { SetFramework(std::move(value)); return *this;} /** *

The framework for a branch of an Amplify app.

*/ inline Branch& WithFramework(const char* value) { SetFramework(value); return *this;} /** *

The ID of the active job for a branch of an Amplify app.

*/ inline const Aws::String& GetActiveJobId() const{ return m_activeJobId; } /** *

The ID of the active job for a branch of an Amplify app.

*/ inline bool ActiveJobIdHasBeenSet() const { return m_activeJobIdHasBeenSet; } /** *

The ID of the active job for a branch of an Amplify app.

*/ inline void SetActiveJobId(const Aws::String& value) { m_activeJobIdHasBeenSet = true; m_activeJobId = value; } /** *

The ID of the active job for a branch of an Amplify app.

*/ inline void SetActiveJobId(Aws::String&& value) { m_activeJobIdHasBeenSet = true; m_activeJobId = std::move(value); } /** *

The ID of the active job for a branch of an Amplify app.

*/ inline void SetActiveJobId(const char* value) { m_activeJobIdHasBeenSet = true; m_activeJobId.assign(value); } /** *

The ID of the active job for a branch of an Amplify app.

*/ inline Branch& WithActiveJobId(const Aws::String& value) { SetActiveJobId(value); return *this;} /** *

The ID of the active job for a branch of an Amplify app.

*/ inline Branch& WithActiveJobId(Aws::String&& value) { SetActiveJobId(std::move(value)); return *this;} /** *

The ID of the active job for a branch of an Amplify app.

*/ inline Branch& WithActiveJobId(const char* value) { SetActiveJobId(value); return *this;} /** *

The total number of jobs that are part of an Amplify app.

*/ inline const Aws::String& GetTotalNumberOfJobs() const{ return m_totalNumberOfJobs; } /** *

The total number of jobs that are part of an Amplify app.

*/ inline bool TotalNumberOfJobsHasBeenSet() const { return m_totalNumberOfJobsHasBeenSet; } /** *

The total number of jobs that are part of an Amplify app.

*/ inline void SetTotalNumberOfJobs(const Aws::String& value) { m_totalNumberOfJobsHasBeenSet = true; m_totalNumberOfJobs = value; } /** *

The total number of jobs that are part of an Amplify app.

*/ inline void SetTotalNumberOfJobs(Aws::String&& value) { m_totalNumberOfJobsHasBeenSet = true; m_totalNumberOfJobs = std::move(value); } /** *

The total number of jobs that are part of an Amplify app.

*/ inline void SetTotalNumberOfJobs(const char* value) { m_totalNumberOfJobsHasBeenSet = true; m_totalNumberOfJobs.assign(value); } /** *

The total number of jobs that are part of an Amplify app.

*/ inline Branch& WithTotalNumberOfJobs(const Aws::String& value) { SetTotalNumberOfJobs(value); return *this;} /** *

The total number of jobs that are part of an Amplify app.

*/ inline Branch& WithTotalNumberOfJobs(Aws::String&& value) { SetTotalNumberOfJobs(std::move(value)); return *this;} /** *

The total number of jobs that are part of an Amplify app.

*/ inline Branch& WithTotalNumberOfJobs(const char* value) { SetTotalNumberOfJobs(value); return *this;} /** *

Enables basic authorization for a branch of an Amplify app.

*/ inline bool GetEnableBasicAuth() const{ return m_enableBasicAuth; } /** *

Enables basic authorization for a branch of an Amplify app.

*/ inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; } /** *

Enables basic authorization for a branch of an Amplify app.

*/ inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; } /** *

Enables basic authorization for a branch of an Amplify app.

*/ inline Branch& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;} /** *

Enables performance mode for the branch.

Performance mode optimizes * for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code * changes can take up to 10 minutes to roll out.

*/ inline bool GetEnablePerformanceMode() const{ return m_enablePerformanceMode; } /** *

Enables performance mode for the branch.

Performance mode optimizes * for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code * changes can take up to 10 minutes to roll out.

*/ inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; } /** *

Enables performance mode for the branch.

Performance mode optimizes * for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code * changes can take up to 10 minutes to roll out.

*/ inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; } /** *

Enables performance mode for the branch.

Performance mode optimizes * for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code * changes can take up to 10 minutes to roll out.

*/ inline Branch& WithEnablePerformanceMode(bool value) { SetEnablePerformanceMode(value); return *this;} /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline const Aws::String& GetThumbnailUrl() const{ return m_thumbnailUrl; } /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline bool ThumbnailUrlHasBeenSet() const { return m_thumbnailUrlHasBeenSet; } /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline void SetThumbnailUrl(const Aws::String& value) { m_thumbnailUrlHasBeenSet = true; m_thumbnailUrl = value; } /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline void SetThumbnailUrl(Aws::String&& value) { m_thumbnailUrlHasBeenSet = true; m_thumbnailUrl = std::move(value); } /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline void SetThumbnailUrl(const char* value) { m_thumbnailUrlHasBeenSet = true; m_thumbnailUrl.assign(value); } /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline Branch& WithThumbnailUrl(const Aws::String& value) { SetThumbnailUrl(value); return *this;} /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline Branch& WithThumbnailUrl(Aws::String&& value) { SetThumbnailUrl(std::move(value)); return *this;} /** *

The thumbnail URL for the branch of an Amplify app.

*/ inline Branch& WithThumbnailUrl(const char* value) { SetThumbnailUrl(value); return *this;} /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline const Aws::String& GetBasicAuthCredentials() const{ return m_basicAuthCredentials; } /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; } /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline void SetBasicAuthCredentials(const Aws::String& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = value; } /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline void SetBasicAuthCredentials(Aws::String&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::move(value); } /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline void SetBasicAuthCredentials(const char* value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials.assign(value); } /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline Branch& WithBasicAuthCredentials(const Aws::String& value) { SetBasicAuthCredentials(value); return *this;} /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline Branch& WithBasicAuthCredentials(Aws::String&& value) { SetBasicAuthCredentials(std::move(value)); return *this;} /** *

The basic authorization credentials for a branch of an Amplify app. You must * base64-encode the authorization credentials and provide them in the format * user:password.

*/ inline Branch& WithBasicAuthCredentials(const char* value) { SetBasicAuthCredentials(value); return *this;} /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline const Aws::String& GetBuildSpec() const{ return m_buildSpec; } /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; } /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline void SetBuildSpec(const Aws::String& value) { m_buildSpecHasBeenSet = true; m_buildSpec = value; } /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline void SetBuildSpec(Aws::String&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::move(value); } /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline void SetBuildSpec(const char* value) { m_buildSpecHasBeenSet = true; m_buildSpec.assign(value); } /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline Branch& WithBuildSpec(const Aws::String& value) { SetBuildSpec(value); return *this;} /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline Branch& WithBuildSpec(Aws::String&& value) { SetBuildSpec(std::move(value)); return *this;} /** *

The build specification (build spec) content for the branch of an Amplify * app.

*/ inline Branch& WithBuildSpec(const char* value) { SetBuildSpec(value); return *this;} /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline const Aws::String& GetTtl() const{ return m_ttl; } /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; } /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline void SetTtl(const Aws::String& value) { m_ttlHasBeenSet = true; m_ttl = value; } /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline void SetTtl(Aws::String&& value) { m_ttlHasBeenSet = true; m_ttl = std::move(value); } /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline void SetTtl(const char* value) { m_ttlHasBeenSet = true; m_ttl.assign(value); } /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline Branch& WithTtl(const Aws::String& value) { SetTtl(value); return *this;} /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline Branch& WithTtl(Aws::String&& value) { SetTtl(std::move(value)); return *this;} /** *

The content Time to Live (TTL) for the website in seconds.

*/ inline Branch& WithTtl(const char* value) { SetTtl(value); return *this;} /** *

A list of custom resources that are linked to this branch.

*/ inline const Aws::Vector& GetAssociatedResources() const{ return m_associatedResources; } /** *

A list of custom resources that are linked to this branch.

*/ inline bool AssociatedResourcesHasBeenSet() const { return m_associatedResourcesHasBeenSet; } /** *

A list of custom resources that are linked to this branch.

*/ inline void SetAssociatedResources(const Aws::Vector& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources = value; } /** *

A list of custom resources that are linked to this branch.

*/ inline void SetAssociatedResources(Aws::Vector&& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources = std::move(value); } /** *

A list of custom resources that are linked to this branch.

*/ inline Branch& WithAssociatedResources(const Aws::Vector& value) { SetAssociatedResources(value); return *this;} /** *

A list of custom resources that are linked to this branch.

*/ inline Branch& WithAssociatedResources(Aws::Vector&& value) { SetAssociatedResources(std::move(value)); return *this;} /** *

A list of custom resources that are linked to this branch.

*/ inline Branch& AddAssociatedResources(const Aws::String& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources.push_back(value); return *this; } /** *

A list of custom resources that are linked to this branch.

*/ inline Branch& AddAssociatedResources(Aws::String&& value) { m_associatedResourcesHasBeenSet = true; m_associatedResources.push_back(std::move(value)); return *this; } /** *

A list of custom resources that are linked to this branch.

*/ inline Branch& AddAssociatedResources(const char* value) { m_associatedResourcesHasBeenSet = true; m_associatedResources.push_back(value); return *this; } /** *

Enables pull request previews for the branch.

*/ inline bool GetEnablePullRequestPreview() const{ return m_enablePullRequestPreview; } /** *

Enables pull request previews for the branch.

*/ inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; } /** *

Enables pull request previews for the branch.

*/ inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; } /** *

Enables pull request previews for the branch.

*/ inline Branch& WithEnablePullRequestPreview(bool value) { SetEnablePullRequestPreview(value); return *this;} /** *

The Amplify environment name for the pull request.

*/ inline const Aws::String& GetPullRequestEnvironmentName() const{ return m_pullRequestEnvironmentName; } /** *

The Amplify environment name for the pull request.

*/ inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; } /** *

The Amplify environment name for the pull request.

*/ inline void SetPullRequestEnvironmentName(const Aws::String& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = value; } /** *

The Amplify environment name for the pull request.

*/ inline void SetPullRequestEnvironmentName(Aws::String&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::move(value); } /** *

The Amplify environment name for the pull request.

*/ inline void SetPullRequestEnvironmentName(const char* value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName.assign(value); } /** *

The Amplify environment name for the pull request.

*/ inline Branch& WithPullRequestEnvironmentName(const Aws::String& value) { SetPullRequestEnvironmentName(value); return *this;} /** *

The Amplify environment name for the pull request.

*/ inline Branch& WithPullRequestEnvironmentName(Aws::String&& value) { SetPullRequestEnvironmentName(std::move(value)); return *this;} /** *

The Amplify environment name for the pull request.

*/ inline Branch& WithPullRequestEnvironmentName(const char* value) { SetPullRequestEnvironmentName(value); return *this;} /** *

The destination branch if the branch is a pull request branch.

*/ inline const Aws::String& GetDestinationBranch() const{ return m_destinationBranch; } /** *

The destination branch if the branch is a pull request branch.

*/ inline bool DestinationBranchHasBeenSet() const { return m_destinationBranchHasBeenSet; } /** *

The destination branch if the branch is a pull request branch.

*/ inline void SetDestinationBranch(const Aws::String& value) { m_destinationBranchHasBeenSet = true; m_destinationBranch = value; } /** *

The destination branch if the branch is a pull request branch.

*/ inline void SetDestinationBranch(Aws::String&& value) { m_destinationBranchHasBeenSet = true; m_destinationBranch = std::move(value); } /** *

The destination branch if the branch is a pull request branch.

*/ inline void SetDestinationBranch(const char* value) { m_destinationBranchHasBeenSet = true; m_destinationBranch.assign(value); } /** *

The destination branch if the branch is a pull request branch.

*/ inline Branch& WithDestinationBranch(const Aws::String& value) { SetDestinationBranch(value); return *this;} /** *

The destination branch if the branch is a pull request branch.

*/ inline Branch& WithDestinationBranch(Aws::String&& value) { SetDestinationBranch(std::move(value)); return *this;} /** *

The destination branch if the branch is a pull request branch.

*/ inline Branch& WithDestinationBranch(const char* value) { SetDestinationBranch(value); return *this;} /** *

The source branch if the branch is a pull request branch.

*/ inline const Aws::String& GetSourceBranch() const{ return m_sourceBranch; } /** *

The source branch if the branch is a pull request branch.

*/ inline bool SourceBranchHasBeenSet() const { return m_sourceBranchHasBeenSet; } /** *

The source branch if the branch is a pull request branch.

*/ inline void SetSourceBranch(const Aws::String& value) { m_sourceBranchHasBeenSet = true; m_sourceBranch = value; } /** *

The source branch if the branch is a pull request branch.

*/ inline void SetSourceBranch(Aws::String&& value) { m_sourceBranchHasBeenSet = true; m_sourceBranch = std::move(value); } /** *

The source branch if the branch is a pull request branch.

*/ inline void SetSourceBranch(const char* value) { m_sourceBranchHasBeenSet = true; m_sourceBranch.assign(value); } /** *

The source branch if the branch is a pull request branch.

*/ inline Branch& WithSourceBranch(const Aws::String& value) { SetSourceBranch(value); return *this;} /** *

The source branch if the branch is a pull request branch.

*/ inline Branch& WithSourceBranch(Aws::String&& value) { SetSourceBranch(std::move(value)); return *this;} /** *

The source branch if the branch is a pull request branch.

*/ inline Branch& WithSourceBranch(const char* value) { SetSourceBranch(value); return *this;} /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline const Aws::String& GetBackendEnvironmentArn() const{ return m_backendEnvironmentArn; } /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline void SetBackendEnvironmentArn(const Aws::String& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = value; } /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline void SetBackendEnvironmentArn(Aws::String&& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline void SetBackendEnvironmentArn(const char* value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn.assign(value); } /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline Branch& WithBackendEnvironmentArn(const Aws::String& value) { SetBackendEnvironmentArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline Branch& WithBackendEnvironmentArn(Aws::String&& value) { SetBackendEnvironmentArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for a backend environment that is part of an * Amplify app.

*/ inline Branch& WithBackendEnvironmentArn(const char* value) { SetBackendEnvironmentArn(value); return *this;} private: Aws::String m_branchArn; bool m_branchArnHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Stage m_stage; bool m_stageHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; bool m_enableNotification; bool m_enableNotificationHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; Aws::Map m_environmentVariables; bool m_environmentVariablesHasBeenSet = false; bool m_enableAutoBuild; bool m_enableAutoBuildHasBeenSet = false; Aws::Vector m_customDomains; bool m_customDomainsHasBeenSet = false; Aws::String m_framework; bool m_frameworkHasBeenSet = false; Aws::String m_activeJobId; bool m_activeJobIdHasBeenSet = false; Aws::String m_totalNumberOfJobs; bool m_totalNumberOfJobsHasBeenSet = false; bool m_enableBasicAuth; bool m_enableBasicAuthHasBeenSet = false; bool m_enablePerformanceMode; bool m_enablePerformanceModeHasBeenSet = false; Aws::String m_thumbnailUrl; bool m_thumbnailUrlHasBeenSet = false; Aws::String m_basicAuthCredentials; bool m_basicAuthCredentialsHasBeenSet = false; Aws::String m_buildSpec; bool m_buildSpecHasBeenSet = false; Aws::String m_ttl; bool m_ttlHasBeenSet = false; Aws::Vector m_associatedResources; bool m_associatedResourcesHasBeenSet = false; bool m_enablePullRequestPreview; bool m_enablePullRequestPreviewHasBeenSet = false; Aws::String m_pullRequestEnvironmentName; bool m_pullRequestEnvironmentNameHasBeenSet = false; Aws::String m_destinationBranch; bool m_destinationBranchHasBeenSet = false; Aws::String m_sourceBranch; bool m_sourceBranchHasBeenSet = false; Aws::String m_backendEnvironmentArn; bool m_backendEnvironmentArnHasBeenSet = false; }; } // namespace Model } // namespace Amplify } // namespace Aws