pub use crate::operation::create_branch::_create_branch_output::CreateBranchOutputBuilder;
pub use crate::operation::create_branch::_create_branch_input::CreateBranchInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateBranchFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_branch::builders::CreateBranchInputBuilder,
}
impl CreateBranchFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
}
}
#[doc(hidden)]
pub async fn customize_middleware(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_branch::CreateBranch,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::create_branch::CreateBranchError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
::std::result::Result::Ok(crate::client::customize::CustomizableOperation {
handle,
operation,
})
}
#[doc(hidden)]
pub async fn send_middleware(
self,
) -> ::std::result::Result<
crate::operation::create_branch::CreateBranchOutput,
::aws_smithy_http::result::SdkError<crate::operation::create_branch::CreateBranchError>,
> {
let op = self
.inner
.build()
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_branch::CreateBranchOutput,
::aws_smithy_http::result::SdkError<crate::operation::create_branch::CreateBranchError>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_branch::CreateBranch,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::create_branch::CreateBranchError>,
> {
self.customize_middleware().await
}
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.app_id(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_app_id(input);
self
}
pub fn branch_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.branch_name(input.into());
self
}
pub fn set_branch_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_branch_name(input);
self
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn stage(mut self, input: crate::types::Stage) -> Self {
self.inner = self.inner.stage(input);
self
}
pub fn set_stage(mut self, input: ::std::option::Option<crate::types::Stage>) -> Self {
self.inner = self.inner.set_stage(input);
self
}
pub fn framework(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.framework(input.into());
self
}
pub fn set_framework(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_framework(input);
self
}
pub fn enable_notification(mut self, input: bool) -> Self {
self.inner = self.inner.enable_notification(input);
self
}
pub fn set_enable_notification(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_notification(input);
self
}
pub fn enable_auto_build(mut self, input: bool) -> Self {
self.inner = self.inner.enable_auto_build(input);
self
}
pub fn set_enable_auto_build(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_auto_build(input);
self
}
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
}
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
}
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
}
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
}
pub fn enable_basic_auth(mut self, input: bool) -> Self {
self.inner = self.inner.enable_basic_auth(input);
self
}
pub fn set_enable_basic_auth(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_basic_auth(input);
self
}
pub fn enable_performance_mode(mut self, input: bool) -> Self {
self.inner = self.inner.enable_performance_mode(input);
self
}
pub fn set_enable_performance_mode(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_performance_mode(input);
self
}
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
}
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
}
pub fn build_spec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.build_spec(input.into());
self
}
pub fn set_build_spec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_build_spec(input);
self
}
pub fn ttl(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.ttl(input.into());
self
}
pub fn set_ttl(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_ttl(input);
self
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.display_name(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_display_name(input);
self
}
pub fn enable_pull_request_preview(mut self, input: bool) -> Self {
self.inner = self.inner.enable_pull_request_preview(input);
self
}
pub fn set_enable_pull_request_preview(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_pull_request_preview(input);
self
}
pub fn pull_request_environment_name(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.pull_request_environment_name(input.into());
self
}
pub fn set_pull_request_environment_name(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_pull_request_environment_name(input);
self
}
pub fn backend_environment_arn(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.backend_environment_arn(input.into());
self
}
pub fn set_backend_environment_arn(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_backend_environment_arn(input);
self
}
}