#[non_exhaustive]pub struct AutoBranchCreationConfigBuilder { /* private fields */ }Expand description
A builder for AutoBranchCreationConfig.
Implementations§
source§impl AutoBranchCreationConfigBuilder
impl AutoBranchCreationConfigBuilder
sourcepub fn stage(self, input: Stage) -> Self
pub fn stage(self, input: Stage) -> Self
Describes the current stage for the autocreated 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 autocreated branch.
sourcepub fn get_stage(&self) -> &Option<Stage>
pub fn get_stage(&self) -> &Option<Stage>
Describes the current stage for the autocreated branch.
sourcepub fn framework(self, input: impl Into<String>) -> Self
pub fn framework(self, input: impl Into<String>) -> Self
The framework for the autocreated branch.
sourcepub fn set_framework(self, input: Option<String>) -> Self
pub fn set_framework(self, input: Option<String>) -> Self
The framework for the autocreated branch.
sourcepub fn get_framework(&self) -> &Option<String>
pub fn get_framework(&self) -> &Option<String>
The framework for the autocreated branch.
sourcepub fn enable_auto_build(self, input: bool) -> Self
pub fn enable_auto_build(self, input: bool) -> Self
Enables auto building for the autocreated 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 autocreated branch.
sourcepub fn get_enable_auto_build(&self) -> &Option<bool>
pub fn get_enable_auto_build(&self) -> &Option<bool>
Enables auto building for the autocreated 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 autocreated 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 autocreated 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 autocreated 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 autocreated 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 autocreated 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 autocreated 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 autocreated 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 autocreated branch.
sourcepub fn get_enable_basic_auth(&self) -> &Option<bool>
pub fn get_enable_basic_auth(&self) -> &Option<bool>
Enables basic authorization for the autocreated 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 autocreated 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 autocreated branch.
sourcepub fn get_build_spec(&self) -> &Option<String>
pub fn get_build_spec(&self) -> &Option<String>
The build specification (build spec) for the autocreated 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 autocreated 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 autocreated 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 autocreated 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 build(self) -> AutoBranchCreationConfig
pub fn build(self) -> AutoBranchCreationConfig
Consumes the builder and constructs a AutoBranchCreationConfig.
Trait Implementations§
source§impl Clone for AutoBranchCreationConfigBuilder
impl Clone for AutoBranchCreationConfigBuilder
source§fn clone(&self) -> AutoBranchCreationConfigBuilder
fn clone(&self) -> AutoBranchCreationConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AutoBranchCreationConfigBuilder
impl Default for AutoBranchCreationConfigBuilder
source§fn default() -> AutoBranchCreationConfigBuilder
fn default() -> AutoBranchCreationConfigBuilder
source§impl PartialEq for AutoBranchCreationConfigBuilder
impl PartialEq for AutoBranchCreationConfigBuilder
source§fn eq(&self, other: &AutoBranchCreationConfigBuilder) -> bool
fn eq(&self, other: &AutoBranchCreationConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.