Struct aws_sdk_amplify::types::builders::BranchBuilder
source · #[non_exhaustive]pub struct BranchBuilder { /* private fields */ }Expand description
A builder for Branch.
Implementations§
source§impl BranchBuilder
impl BranchBuilder
sourcepub fn branch_arn(self, input: impl Into<String>) -> Self
pub fn branch_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
sourcepub fn set_branch_arn(self, input: Option<String>) -> Self
pub fn set_branch_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
sourcepub fn get_branch_arn(&self) -> &Option<String>
pub fn get_branch_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
sourcepub fn branch_name(self, input: impl Into<String>) -> Self
pub fn branch_name(self, input: impl Into<String>) -> Self
The name for the branch that is part of an Amplify app.
sourcepub fn set_branch_name(self, input: Option<String>) -> Self
pub fn set_branch_name(self, input: Option<String>) -> Self
The name for the branch that is part of an Amplify app.
sourcepub fn get_branch_name(&self) -> &Option<String>
pub fn get_branch_name(&self) -> &Option<String>
The name for the branch that is part of an Amplify app.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description for the branch that is part of an Amplify app.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description for the branch that is part of an Amplify app.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description for the branch that is part of an Amplify app.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tag for the branch of an Amplify app.
The tag for the branch of an Amplify app.
The tag for the branch of an Amplify app.
sourcepub fn stage(self, input: Stage) -> Self
pub fn stage(self, input: Stage) -> Self
The current stage for the branch that is part of an Amplify app.
sourcepub fn set_stage(self, input: Option<Stage>) -> Self
pub fn set_stage(self, input: Option<Stage>) -> Self
The current stage for the branch that is part of an Amplify app.
sourcepub fn get_stage(&self) -> &Option<Stage>
pub fn get_stage(&self) -> &Option<Stage>
The current stage for the branch that is part of an Amplify app.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The display name for the branch. This is used as the default domain prefix.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The display name for the branch. This is used as the default domain prefix.
sourcepub fn get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
The display name for the branch. This is used as the default domain prefix.
sourcepub fn enable_notification(self, input: bool) -> Self
pub fn enable_notification(self, input: bool) -> Self
Enables notifications for a branch that is part of an Amplify app.
sourcepub fn set_enable_notification(self, input: Option<bool>) -> Self
pub fn set_enable_notification(self, input: Option<bool>) -> Self
Enables notifications for a branch that is part of an Amplify app.
sourcepub fn get_enable_notification(&self) -> &Option<bool>
pub fn get_enable_notification(&self) -> &Option<bool>
Enables notifications for a branch that is part of an Amplify app.
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
The creation date and time for a branch that is part of an Amplify app.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
The creation date and time for a branch that is part of an Amplify app.
sourcepub fn get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
The creation date and time for a branch that is part of an Amplify app.
sourcepub fn update_time(self, input: DateTime) -> Self
pub fn update_time(self, input: DateTime) -> Self
The last updated date and time for a branch that is part of an Amplify app.
sourcepub fn set_update_time(self, input: Option<DateTime>) -> Self
pub fn set_update_time(self, input: Option<DateTime>) -> Self
The last updated date and time for a branch that is part of an Amplify app.
sourcepub fn get_update_time(&self) -> &Option<DateTime>
pub fn get_update_time(&self) -> &Option<DateTime>
The last updated date and time for a branch that is part of an Amplify app.
sourcepub fn environment_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn environment_variables( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to environment_variables.
To override the contents of this collection use set_environment_variables.
The environment variables specific to a branch of an Amplify app.
sourcepub fn set_environment_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_environment_variables( self, input: Option<HashMap<String, String>> ) -> Self
The environment variables specific to a branch of an Amplify app.
sourcepub fn get_environment_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_environment_variables(&self) -> &Option<HashMap<String, String>>
The environment variables specific to a branch of an Amplify app.
sourcepub fn enable_auto_build(self, input: bool) -> Self
pub fn enable_auto_build(self, input: bool) -> Self
Enables auto-building on push for a branch of an Amplify app.
sourcepub fn set_enable_auto_build(self, input: Option<bool>) -> Self
pub fn set_enable_auto_build(self, input: Option<bool>) -> Self
Enables auto-building on push for a branch of an Amplify app.
sourcepub fn get_enable_auto_build(&self) -> &Option<bool>
pub fn get_enable_auto_build(&self) -> &Option<bool>
Enables auto-building on push for a branch of an Amplify app.
sourcepub fn custom_domains(self, input: impl Into<String>) -> Self
pub fn custom_domains(self, input: impl Into<String>) -> Self
Appends an item to custom_domains.
To override the contents of this collection use set_custom_domains.
The custom domains for a branch of an Amplify app.
sourcepub fn set_custom_domains(self, input: Option<Vec<String>>) -> Self
pub fn set_custom_domains(self, input: Option<Vec<String>>) -> Self
The custom domains for a branch of an Amplify app.
sourcepub fn get_custom_domains(&self) -> &Option<Vec<String>>
pub fn get_custom_domains(&self) -> &Option<Vec<String>>
The custom domains for a branch of an Amplify app.
sourcepub fn framework(self, input: impl Into<String>) -> Self
pub fn framework(self, input: impl Into<String>) -> Self
The framework for a branch of an Amplify app.
sourcepub fn set_framework(self, input: Option<String>) -> Self
pub fn set_framework(self, input: Option<String>) -> Self
The framework for a branch of an Amplify app.
sourcepub fn get_framework(&self) -> &Option<String>
pub fn get_framework(&self) -> &Option<String>
The framework for a branch of an Amplify app.
sourcepub fn active_job_id(self, input: impl Into<String>) -> Self
pub fn active_job_id(self, input: impl Into<String>) -> Self
The ID of the active job for a branch of an Amplify app.
sourcepub fn set_active_job_id(self, input: Option<String>) -> Self
pub fn set_active_job_id(self, input: Option<String>) -> Self
The ID of the active job for a branch of an Amplify app.
sourcepub fn get_active_job_id(&self) -> &Option<String>
pub fn get_active_job_id(&self) -> &Option<String>
The ID of the active job for a branch of an Amplify app.
sourcepub fn total_number_of_jobs(self, input: impl Into<String>) -> Self
pub fn total_number_of_jobs(self, input: impl Into<String>) -> Self
The total number of jobs that are part of an Amplify app.
sourcepub fn set_total_number_of_jobs(self, input: Option<String>) -> Self
pub fn set_total_number_of_jobs(self, input: Option<String>) -> Self
The total number of jobs that are part of an Amplify app.
sourcepub fn get_total_number_of_jobs(&self) -> &Option<String>
pub fn get_total_number_of_jobs(&self) -> &Option<String>
The total number of jobs that are part of an Amplify app.
sourcepub fn enable_basic_auth(self, input: bool) -> Self
pub fn enable_basic_auth(self, input: bool) -> Self
Enables basic authorization for a branch of an Amplify app.
sourcepub fn set_enable_basic_auth(self, input: Option<bool>) -> Self
pub fn set_enable_basic_auth(self, input: Option<bool>) -> Self
Enables basic authorization for a branch of an Amplify app.
sourcepub fn get_enable_basic_auth(&self) -> &Option<bool>
pub fn get_enable_basic_auth(&self) -> &Option<bool>
Enables basic authorization for a branch of an Amplify app.
sourcepub fn enable_performance_mode(self, input: bool) -> Self
pub fn enable_performance_mode(self, input: bool) -> Self
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.
sourcepub fn set_enable_performance_mode(self, input: Option<bool>) -> Self
pub fn set_enable_performance_mode(self, input: Option<bool>) -> Self
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.
sourcepub fn get_enable_performance_mode(&self) -> &Option<bool>
pub fn get_enable_performance_mode(&self) -> &Option<bool>
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.
sourcepub fn thumbnail_url(self, input: impl Into<String>) -> Self
pub fn thumbnail_url(self, input: impl Into<String>) -> Self
The thumbnail URL for the branch of an Amplify app.
sourcepub fn set_thumbnail_url(self, input: Option<String>) -> Self
pub fn set_thumbnail_url(self, input: Option<String>) -> Self
The thumbnail URL for the branch of an Amplify app.
sourcepub fn get_thumbnail_url(&self) -> &Option<String>
pub fn get_thumbnail_url(&self) -> &Option<String>
The thumbnail URL for the branch of an Amplify app.
sourcepub fn basic_auth_credentials(self, input: impl Into<String>) -> Self
pub fn basic_auth_credentials(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_basic_auth_credentials(self, input: Option<String>) -> Self
pub fn set_basic_auth_credentials(self, input: Option<String>) -> Self
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.
sourcepub fn get_basic_auth_credentials(&self) -> &Option<String>
pub fn get_basic_auth_credentials(&self) -> &Option<String>
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.
sourcepub fn build_spec(self, input: impl Into<String>) -> Self
pub fn build_spec(self, input: impl Into<String>) -> Self
The build specification (build spec) content for the branch of an Amplify app.
sourcepub fn set_build_spec(self, input: Option<String>) -> Self
pub fn set_build_spec(self, input: Option<String>) -> Self
The build specification (build spec) content for the branch of an Amplify app.
sourcepub fn get_build_spec(&self) -> &Option<String>
pub fn get_build_spec(&self) -> &Option<String>
The build specification (build spec) content for the branch of an Amplify app.
sourcepub fn ttl(self, input: impl Into<String>) -> Self
pub fn ttl(self, input: impl Into<String>) -> Self
The content Time to Live (TTL) for the website in seconds.
sourcepub fn set_ttl(self, input: Option<String>) -> Self
pub fn set_ttl(self, input: Option<String>) -> Self
The content Time to Live (TTL) for the website in seconds.
sourcepub fn get_ttl(&self) -> &Option<String>
pub fn get_ttl(&self) -> &Option<String>
The content Time to Live (TTL) for the website in seconds.
sourcepub fn associated_resources(self, input: impl Into<String>) -> Self
pub fn associated_resources(self, input: impl Into<String>) -> Self
Appends an item to associated_resources.
To override the contents of this collection use set_associated_resources.
A list of custom resources that are linked to this branch.
sourcepub fn set_associated_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_associated_resources(self, input: Option<Vec<String>>) -> Self
A list of custom resources that are linked to this branch.
sourcepub fn get_associated_resources(&self) -> &Option<Vec<String>>
pub fn get_associated_resources(&self) -> &Option<Vec<String>>
A list of custom resources that are linked to this branch.
sourcepub fn enable_pull_request_preview(self, input: bool) -> Self
pub fn enable_pull_request_preview(self, input: bool) -> Self
Enables pull request previews for the branch.
sourcepub fn set_enable_pull_request_preview(self, input: Option<bool>) -> Self
pub fn set_enable_pull_request_preview(self, input: Option<bool>) -> Self
Enables pull request previews for the branch.
sourcepub fn get_enable_pull_request_preview(&self) -> &Option<bool>
pub fn get_enable_pull_request_preview(&self) -> &Option<bool>
Enables pull request previews for the branch.
sourcepub fn pull_request_environment_name(self, input: impl Into<String>) -> Self
pub fn pull_request_environment_name(self, input: impl Into<String>) -> Self
The Amplify environment name for the pull request.
sourcepub fn set_pull_request_environment_name(self, input: Option<String>) -> Self
pub fn set_pull_request_environment_name(self, input: Option<String>) -> Self
The Amplify environment name for the pull request.
sourcepub fn get_pull_request_environment_name(&self) -> &Option<String>
pub fn get_pull_request_environment_name(&self) -> &Option<String>
The Amplify environment name for the pull request.
sourcepub fn destination_branch(self, input: impl Into<String>) -> Self
pub fn destination_branch(self, input: impl Into<String>) -> Self
The destination branch if the branch is a pull request branch.
sourcepub fn set_destination_branch(self, input: Option<String>) -> Self
pub fn set_destination_branch(self, input: Option<String>) -> Self
The destination branch if the branch is a pull request branch.
sourcepub fn get_destination_branch(&self) -> &Option<String>
pub fn get_destination_branch(&self) -> &Option<String>
The destination branch if the branch is a pull request branch.
sourcepub fn source_branch(self, input: impl Into<String>) -> Self
pub fn source_branch(self, input: impl Into<String>) -> Self
The source branch if the branch is a pull request branch.
sourcepub fn set_source_branch(self, input: Option<String>) -> Self
pub fn set_source_branch(self, input: Option<String>) -> Self
The source branch if the branch is a pull request branch.
sourcepub fn get_source_branch(&self) -> &Option<String>
pub fn get_source_branch(&self) -> &Option<String>
The source branch if the branch is a pull request branch.
sourcepub fn backend_environment_arn(self, input: impl Into<String>) -> Self
pub fn backend_environment_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
sourcepub fn set_backend_environment_arn(self, input: Option<String>) -> Self
pub fn set_backend_environment_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
sourcepub fn get_backend_environment_arn(&self) -> &Option<String>
pub fn get_backend_environment_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
Trait Implementations§
source§impl Clone for BranchBuilder
impl Clone for BranchBuilder
source§fn clone(&self) -> BranchBuilder
fn clone(&self) -> BranchBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BranchBuilder
impl Debug for BranchBuilder
source§impl Default for BranchBuilder
impl Default for BranchBuilder
source§fn default() -> BranchBuilder
fn default() -> BranchBuilder
source§impl PartialEq<BranchBuilder> for BranchBuilder
impl PartialEq<BranchBuilder> for BranchBuilder
source§fn eq(&self, other: &BranchBuilder) -> bool
fn eq(&self, other: &BranchBuilder) -> bool
self and other values to be equal, and is used
by ==.