#[non_exhaustive]pub struct UpdateBranchInputBuilder { /* private fields */ }Expand description
A builder for UpdateBranchInput.
Implementations§
source§impl UpdateBranchInputBuilder
 
impl UpdateBranchInputBuilder
sourcepub fn app_id(self, input: impl Into<String>) -> Self
 
pub fn app_id(self, input: impl Into<String>) -> Self
The unique ID for an Amplify app.
This field is required.sourcepub fn set_app_id(self, input: Option<String>) -> Self
 
pub fn set_app_id(self, input: Option<String>) -> Self
The unique ID for an Amplify app.
sourcepub fn get_app_id(&self) -> &Option<String>
 
pub fn get_app_id(&self) -> &Option<String>
The unique ID for 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 of the branch.
This field is required.sourcepub fn set_branch_name(self, input: Option<String>) -> Self
 
pub fn set_branch_name(self, input: Option<String>) -> Self
The name of the branch.
sourcepub fn get_branch_name(&self) -> &Option<String>
 
pub fn get_branch_name(&self) -> &Option<String>
The name of the branch.
sourcepub fn description(self, input: impl Into<String>) -> Self
 
pub fn description(self, input: impl Into<String>) -> Self
The description for the branch.
sourcepub fn set_description(self, input: Option<String>) -> Self
 
pub fn set_description(self, input: Option<String>) -> Self
The description for the branch.
sourcepub fn get_description(&self) -> &Option<String>
 
pub fn get_description(&self) -> &Option<String>
The description for the branch.
sourcepub fn set_framework(self, input: Option<String>) -> Self
 
pub fn set_framework(self, input: Option<String>) -> Self
The framework for the branch.
sourcepub fn get_framework(&self) -> &Option<String>
 
pub fn get_framework(&self) -> &Option<String>
The framework for the branch.
sourcepub fn set_stage(self, input: Option<Stage>) -> Self
 
pub fn set_stage(self, input: Option<Stage>) -> Self
Describes the current stage for the branch.
sourcepub fn enable_notification(self, input: bool) -> Self
 
pub fn enable_notification(self, input: bool) -> Self
Enables notifications for the branch.
sourcepub fn set_enable_notification(self, input: Option<bool>) -> Self
 
pub fn set_enable_notification(self, input: Option<bool>) -> Self
Enables notifications for the branch.
sourcepub fn get_enable_notification(&self) -> &Option<bool>
 
pub fn get_enable_notification(&self) -> &Option<bool>
Enables notifications for the branch.
sourcepub fn enable_auto_build(self, input: bool) -> Self
 
pub fn enable_auto_build(self, input: bool) -> Self
Enables auto building for the branch.
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 for the branch.
sourcepub fn get_enable_auto_build(&self) -> &Option<bool>
 
pub fn get_enable_auto_build(&self) -> &Option<bool>
Enables auto building for the branch.
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 for the branch.
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 for the branch.
sourcepub fn get_environment_variables(&self) -> &Option<HashMap<String, String>>
 
pub fn get_environment_variables(&self) -> &Option<HashMap<String, String>>
The environment variables for the branch.
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 the branch. 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 the branch. 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 the branch. You must base64-encode the authorization credentials and provide them in the format user:password.
sourcepub fn enable_basic_auth(self, input: bool) -> Self
 
pub fn enable_basic_auth(self, input: bool) -> Self
Enables basic authorization for the branch.
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 the branch.
sourcepub fn get_enable_basic_auth(&self) -> &Option<bool>
 
pub fn get_enable_basic_auth(&self) -> &Option<bool>
Enables basic authorization for the branch.
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 build_spec(self, input: impl Into<String>) -> Self
 
pub fn build_spec(self, input: impl Into<String>) -> Self
The build specification (build spec) for the branch.
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) for the branch.
sourcepub fn get_build_spec(&self) -> &Option<String>
 
pub fn get_build_spec(&self) -> &Option<String>
The build specification (build spec) for the branch.
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 display_name(self, input: impl Into<String>) -> Self
 
pub fn display_name(self, input: impl Into<String>) -> Self
The display name for a 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 a 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 a branch. This is used as the default domain prefix.
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 this 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 this 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 this 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 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 a Gen 1 Amplify app.
This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI).
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 a Gen 1 Amplify app.
This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI).
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 a Gen 1 Amplify app.
This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI).
sourcepub fn backend(self, input: Backend) -> Self
 
pub fn backend(self, input: Backend) -> Self
The backend for a Branch of an Amplify app. Use for a backend created from an CloudFormation stack.
This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
sourcepub fn set_backend(self, input: Option<Backend>) -> Self
 
pub fn set_backend(self, input: Option<Backend>) -> Self
The backend for a Branch of an Amplify app. Use for a backend created from an CloudFormation stack.
This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
sourcepub fn get_backend(&self) -> &Option<Backend>
 
pub fn get_backend(&self) -> &Option<Backend>
The backend for a Branch of an Amplify app. Use for a backend created from an CloudFormation stack.
This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
sourcepub fn build(self) -> Result<UpdateBranchInput, BuildError>
 
pub fn build(self) -> Result<UpdateBranchInput, BuildError>
Consumes the builder and constructs a UpdateBranchInput.
source§impl UpdateBranchInputBuilder
 
impl UpdateBranchInputBuilder
sourcepub async fn send_with(
    self,
    client: &Client,
) -> Result<UpdateBranchOutput, SdkError<UpdateBranchError, HttpResponse>>
 
pub async fn send_with( self, client: &Client, ) -> Result<UpdateBranchOutput, SdkError<UpdateBranchError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateBranchInputBuilder
 
impl Clone for UpdateBranchInputBuilder
source§fn clone(&self) -> UpdateBranchInputBuilder
 
fn clone(&self) -> UpdateBranchInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateBranchInputBuilder
 
impl Debug for UpdateBranchInputBuilder
source§impl Default for UpdateBranchInputBuilder
 
impl Default for UpdateBranchInputBuilder
source§fn default() -> UpdateBranchInputBuilder
 
fn default() -> UpdateBranchInputBuilder
source§impl PartialEq for UpdateBranchInputBuilder
 
impl PartialEq for UpdateBranchInputBuilder
source§fn eq(&self, other: &UpdateBranchInputBuilder) -> bool
 
fn eq(&self, other: &UpdateBranchInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateBranchInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateBranchInputBuilder
impl RefUnwindSafe for UpdateBranchInputBuilder
impl Send for UpdateBranchInputBuilder
impl Sync for UpdateBranchInputBuilder
impl Unpin for UpdateBranchInputBuilder
impl UnwindSafe for UpdateBranchInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more