#[non_exhaustive]pub struct CreateBranchInputBuilder { /* private fields */ }Expand description
A builder for CreateBranchInput.
Implementations§
source§impl CreateBranchInputBuilder
impl CreateBranchInputBuilder
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 branch_name(self, input: impl Into<String>) -> Self
pub fn branch_name(self, input: impl Into<String>) -> Self
The name for the branch.
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.
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 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 set_framework(self, input: Option<String>) -> Self
pub fn set_framework(self, input: Option<String>) -> Self
The framework 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 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 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 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 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 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.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tag for the branch.
The tag for the branch.
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 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 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 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 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 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 build(self) -> Result<CreateBranchInput, BuildError>
pub fn build(self) -> Result<CreateBranchInput, BuildError>
Consumes the builder and constructs a CreateBranchInput.
Trait Implementations§
source§impl Clone for CreateBranchInputBuilder
impl Clone for CreateBranchInputBuilder
source§fn clone(&self) -> CreateBranchInputBuilder
fn clone(&self) -> CreateBranchInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateBranchInputBuilder
impl Debug for CreateBranchInputBuilder
source§impl Default for CreateBranchInputBuilder
impl Default for CreateBranchInputBuilder
source§fn default() -> CreateBranchInputBuilder
fn default() -> CreateBranchInputBuilder
source§impl PartialEq<CreateBranchInputBuilder> for CreateBranchInputBuilder
impl PartialEq<CreateBranchInputBuilder> for CreateBranchInputBuilder
source§fn eq(&self, other: &CreateBranchInputBuilder) -> bool
fn eq(&self, other: &CreateBranchInputBuilder) -> bool
self and other values to be equal, and is used
by ==.