// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::create_app::_create_app_input::CreateAppInputBuilder;
pub use crate::operation::create_app::_create_app_output::CreateAppOutputBuilder;
impl crate::operation::create_app::builders::CreateAppInputBuilder {
/// Sends a request with this input using the given client.
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_app::CreateAppOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_app::CreateAppError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_app();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
/// Fluent builder constructing a request to `CreateApp`.
///
/// <p>Creates a new Amplify app.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateAppFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_app::builders::CreateAppInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl crate::client::customize::internal::CustomizableSend<crate::operation::create_app::CreateAppOutput, crate::operation::create_app::CreateAppError>
for CreateAppFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<crate::operation::create_app::CreateAppOutput, crate::operation::create_app::CreateAppError>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateAppFluentBuilder {
/// Creates a new `CreateAppFluentBuilder`.
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
/// Access the CreateApp as a reference.
pub fn as_input(&self) -> &crate::operation::create_app::builders::CreateAppInputBuilder {
&self.inner
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_app::CreateAppOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_app::CreateAppError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_app::CreateApp::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_app::CreateApp::orchestrate(&runtime_plugins, input).await
}
/// Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_app::CreateAppOutput,
crate::operation::create_app::CreateAppError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
/// <p>The name of the Amplify app.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name of the Amplify app.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The name of the Amplify app.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
/// <p>The description of the Amplify app.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>The description of the Amplify app.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// <p>The description of the Amplify app.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_description()
}
/// <p>The Git repository for the Amplify app.</p>
pub fn repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.repository(input.into());
self
}
/// <p>The Git repository for the Amplify app.</p>
pub fn set_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_repository(input);
self
}
/// <p>The Git repository for the Amplify app.</p>
pub fn get_repository(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_repository()
}
/// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
/// <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code> and set the artifacts <code>baseDirectory</code> to <code>.next</code> in the application's build settings. For an example of the build specification settings, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14">Amplify build settings for a Next.js 14 SSG application</a> in the <i>Amplify Hosting User Guide</i>.</p>
pub fn platform(mut self, input: crate::types::Platform) -> Self {
self.inner = self.inner.platform(input);
self
}
/// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
/// <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code> and set the artifacts <code>baseDirectory</code> to <code>.next</code> in the application's build settings. For an example of the build specification settings, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14">Amplify build settings for a Next.js 14 SSG application</a> in the <i>Amplify Hosting User Guide</i>.</p>
pub fn set_platform(mut self, input: ::std::option::Option<crate::types::Platform>) -> Self {
self.inner = self.inner.set_platform(input);
self
}
/// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
/// <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code> and set the artifacts <code>baseDirectory</code> to <code>.next</code> in the application's build settings. For an example of the build specification settings, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14">Amplify build settings for a Next.js 14 SSG application</a> in the <i>Amplify Hosting User Guide</i>.</p>
pub fn get_platform(&self) -> &::std::option::Option<crate::types::Platform> {
self.inner.get_platform()
}
/// <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
pub fn compute_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.compute_role_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
pub fn set_compute_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_compute_role_arn(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
pub fn get_compute_role_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_compute_role_arn()
}
/// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
pub fn iam_service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.iam_service_role_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
pub fn set_iam_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_iam_service_role_arn(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
pub fn get_iam_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_iam_service_role_arn()
}
/// <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p>
/// <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p>
/// <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you create a new app.</p>
/// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
pub fn oauth_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.oauth_token(input.into());
self
}
/// <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p>
/// <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p>
/// <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you create a new app.</p>
/// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
pub fn set_oauth_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_oauth_token(input);
self
}
/// <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p>
/// <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p>
/// <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you create a new app.</p>
/// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
pub fn get_oauth_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_oauth_token()
}
/// <p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p>
/// <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
/// <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you create a new app.</p>
/// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
pub fn access_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.access_token(input.into());
self
}
/// <p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p>
/// <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
/// <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you create a new app.</p>
/// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
pub fn set_access_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_access_token(input);
self
}
/// <p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p>
/// <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
/// <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you create a new app.</p>
/// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
pub fn get_access_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_access_token()
}
///
/// Adds a key-value pair to `environmentVariables`.
///
/// To override the contents of this collection use [`set_environment_variables`](Self::set_environment_variables).
///
/// <p>The environment variables map for an Amplify app.</p>
/// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
pub fn environment_variables(
mut self,
k: impl ::std::convert::Into<::std::string::String>,
v: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.environment_variables(k.into(), v.into());
self
}
/// <p>The environment variables map for an Amplify app.</p>
/// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
pub fn set_environment_variables(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.inner = self.inner.set_environment_variables(input);
self
}
/// <p>The environment variables map for an Amplify app.</p>
/// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
pub fn get_environment_variables(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_environment_variables()
}
/// <p>Enables the auto building of branches for an Amplify app.</p>
pub fn enable_branch_auto_build(mut self, input: bool) -> Self {
self.inner = self.inner.enable_branch_auto_build(input);
self
}
/// <p>Enables the auto building of branches for an Amplify app.</p>
pub fn set_enable_branch_auto_build(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_branch_auto_build(input);
self
}
/// <p>Enables the auto building of branches for an Amplify app.</p>
pub fn get_enable_branch_auto_build(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_branch_auto_build()
}
/// <p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p>
pub fn enable_branch_auto_deletion(mut self, input: bool) -> Self {
self.inner = self.inner.enable_branch_auto_deletion(input);
self
}
/// <p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p>
pub fn set_enable_branch_auto_deletion(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_branch_auto_deletion(input);
self
}
/// <p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p>
pub fn get_enable_branch_auto_deletion(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_branch_auto_deletion()
}
/// <p>Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.</p>
pub fn enable_basic_auth(mut self, input: bool) -> Self {
self.inner = self.inner.enable_basic_auth(input);
self
}
/// <p>Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.</p>
pub fn set_enable_basic_auth(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_basic_auth(input);
self
}
/// <p>Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.</p>
pub fn get_enable_basic_auth(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_basic_auth()
}
/// <p>The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
pub fn basic_auth_credentials(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.basic_auth_credentials(input.into());
self
}
/// <p>The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
pub fn set_basic_auth_credentials(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_basic_auth_credentials(input);
self
}
/// <p>The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
pub fn get_basic_auth_credentials(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_basic_auth_credentials()
}
///
/// Appends an item to `customRules`.
///
/// To override the contents of this collection use [`set_custom_rules`](Self::set_custom_rules).
///
/// <p>The custom rewrite and redirect rules for an Amplify app.</p>
pub fn custom_rules(mut self, input: crate::types::CustomRule) -> Self {
self.inner = self.inner.custom_rules(input);
self
}
/// <p>The custom rewrite and redirect rules for an Amplify app.</p>
pub fn set_custom_rules(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CustomRule>>) -> Self {
self.inner = self.inner.set_custom_rules(input);
self
}
/// <p>The custom rewrite and redirect rules for an Amplify app.</p>
pub fn get_custom_rules(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CustomRule>> {
self.inner.get_custom_rules()
}
///
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tag for an Amplify app.</p>
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
/// <p>The tag for an Amplify app.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>The tag for an Amplify app.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_tags()
}
/// <p>The build specification (build spec) for an Amplify app.</p>
pub fn build_spec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.build_spec(input.into());
self
}
/// <p>The build specification (build spec) for an Amplify app.</p>
pub fn set_build_spec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_build_spec(input);
self
}
/// <p>The build specification (build spec) for an Amplify app.</p>
pub fn get_build_spec(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_build_spec()
}
/// <p>The custom HTTP headers for an Amplify app.</p>
pub fn custom_headers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.custom_headers(input.into());
self
}
/// <p>The custom HTTP headers for an Amplify app.</p>
pub fn set_custom_headers(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_custom_headers(input);
self
}
/// <p>The custom HTTP headers for an Amplify app.</p>
pub fn get_custom_headers(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_custom_headers()
}
/// <p>Enables automated branch creation for an Amplify app.</p>
pub fn enable_auto_branch_creation(mut self, input: bool) -> Self {
self.inner = self.inner.enable_auto_branch_creation(input);
self
}
/// <p>Enables automated branch creation for an Amplify app.</p>
pub fn set_enable_auto_branch_creation(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_auto_branch_creation(input);
self
}
/// <p>Enables automated branch creation for an Amplify app.</p>
pub fn get_enable_auto_branch_creation(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_auto_branch_creation()
}
///
/// Appends an item to `autoBranchCreationPatterns`.
///
/// To override the contents of this collection use [`set_auto_branch_creation_patterns`](Self::set_auto_branch_creation_patterns).
///
/// <p>The automated branch creation glob patterns for an Amplify app.</p>
pub fn auto_branch_creation_patterns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.auto_branch_creation_patterns(input.into());
self
}
/// <p>The automated branch creation glob patterns for an Amplify app.</p>
pub fn set_auto_branch_creation_patterns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_auto_branch_creation_patterns(input);
self
}
/// <p>The automated branch creation glob patterns for an Amplify app.</p>
pub fn get_auto_branch_creation_patterns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_auto_branch_creation_patterns()
}
/// <p>The automated branch creation configuration for an Amplify app.</p>
pub fn auto_branch_creation_config(mut self, input: crate::types::AutoBranchCreationConfig) -> Self {
self.inner = self.inner.auto_branch_creation_config(input);
self
}
/// <p>The automated branch creation configuration for an Amplify app.</p>
pub fn set_auto_branch_creation_config(mut self, input: ::std::option::Option<crate::types::AutoBranchCreationConfig>) -> Self {
self.inner = self.inner.set_auto_branch_creation_config(input);
self
}
/// <p>The automated branch creation configuration for an Amplify app.</p>
pub fn get_auto_branch_creation_config(&self) -> &::std::option::Option<crate::types::AutoBranchCreationConfig> {
self.inner.get_auto_branch_creation_config()
}
/// <p>Describes the configuration details that apply to the jobs for an Amplify app.</p>
pub fn job_config(mut self, input: crate::types::JobConfig) -> Self {
self.inner = self.inner.job_config(input);
self
}
/// <p>Describes the configuration details that apply to the jobs for an Amplify app.</p>
pub fn set_job_config(mut self, input: ::std::option::Option<crate::types::JobConfig>) -> Self {
self.inner = self.inner.set_job_config(input);
self
}
/// <p>Describes the configuration details that apply to the jobs for an Amplify app.</p>
pub fn get_job_config(&self) -> &::std::option::Option<crate::types::JobConfig> {
self.inner.get_job_config()
}
/// <p>The cache configuration for the Amplify app.</p>
pub fn cache_config(mut self, input: crate::types::CacheConfig) -> Self {
self.inner = self.inner.cache_config(input);
self
}
/// <p>The cache configuration for the Amplify app.</p>
pub fn set_cache_config(mut self, input: ::std::option::Option<crate::types::CacheConfig>) -> Self {
self.inner = self.inner.set_cache_config(input);
self
}
/// <p>The cache configuration for the Amplify app.</p>
pub fn get_cache_config(&self) -> &::std::option::Option<crate::types::CacheConfig> {
self.inner.get_cache_config()
}
}