pub use crate::operation::update_branch::_update_branch_output::UpdateBranchOutputBuilder;
pub use crate::operation::update_branch::_update_branch_input::UpdateBranchInputBuilder;
impl UpdateBranchInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_branch::UpdateBranchOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_branch::UpdateBranchError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_branch();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateBranchFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_branch::builders::UpdateBranchInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_branch::UpdateBranchOutput,
crate::operation::update_branch::UpdateBranchError,
> for UpdateBranchFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_branch::UpdateBranchOutput,
crate::operation::update_branch::UpdateBranchError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateBranchFluentBuilder {
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,
}
}
pub fn as_input(&self) -> &crate::operation::update_branch::builders::UpdateBranchInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_branch::UpdateBranchOutput,
::aws_smithy_http::result::SdkError<
crate::operation::update_branch::UpdateBranchError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self.inner.build().map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::update_branch::UpdateBranch::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_branch::UpdateBranch::orchestrate(&runtime_plugins, input).await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::orchestrator::CustomizableOperation<
crate::operation::update_branch::UpdateBranchOutput,
crate::operation::update_branch::UpdateBranchError,
Self,
>,
::aws_smithy_http::result::SdkError<crate::operation::update_branch::UpdateBranchError>,
> {
::std::result::Result::Ok(crate::client::customize::orchestrator::CustomizableOperation::new(self))
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
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 get_app_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_app_id()
}
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 get_branch_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_branch_name()
}
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 get_description(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_description()
}
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 get_framework(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_framework()
}
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 get_stage(&self) -> &::std::option::Option<crate::types::Stage> {
self.inner.get_stage()
}
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 get_enable_notification(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_notification()
}
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 get_enable_auto_build(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_auto_build()
}
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 get_environment_variables(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_environment_variables()
}
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 get_basic_auth_credentials(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_basic_auth_credentials()
}
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 get_enable_basic_auth(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_basic_auth()
}
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 get_enable_performance_mode(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_performance_mode()
}
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 get_build_spec(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_build_spec()
}
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 get_ttl(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_ttl()
}
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 get_display_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_display_name()
}
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 get_enable_pull_request_preview(&self) -> &::std::option::Option<bool> {
self.inner.get_enable_pull_request_preview()
}
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 get_pull_request_environment_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_pull_request_environment_name()
}
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
}
pub fn get_backend_environment_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_backend_environment_arn()
}
}