pub use crate::operation::create_project::_create_project_output::CreateProjectOutputBuilder;
pub use crate::operation::create_project::_create_project_input::CreateProjectInputBuilder;
impl CreateProjectInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_project::CreateProjectOutput,
::aws_smithy_http::result::SdkError<
crate::operation::create_project::CreateProjectError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_project();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateProjectFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_project::builders::CreateProjectInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl CreateProjectFluentBuilder {
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::create_project::builders::CreateProjectInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_project::CreateProjectOutput,
::aws_smithy_http::result::SdkError<
crate::operation::create_project::CreateProjectError,
::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::create_project::CreateProject::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_project::CreateProject::orchestrate(&runtime_plugins, input).await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::orchestrator::CustomizableOperation<
crate::operation::create_project::CreateProjectOutput,
crate::operation::create_project::CreateProjectError,
>,
::aws_smithy_http::result::SdkError<crate::operation::create_project::CreateProjectError>,
> {
::std::result::Result::Ok(crate::client::customize::orchestrator::CustomizableOperation {
customizable_send: ::std::boxed::Box::new(move |config_override| {
::std::boxed::Box::pin(async { self.config_override(config_override).send().await })
}),
config_override: None,
interceptors: vec![],
runtime_plugins: vec![],
})
}
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 name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_id()
}
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 client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_request_token(input.into());
self
}
pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_request_token(input);
self
}
pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_request_token()
}
pub fn source_code(mut self, input: crate::types::Code) -> Self {
self.inner = self.inner.source_code(input);
self
}
pub fn set_source_code(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Code>>) -> Self {
self.inner = self.inner.set_source_code(input);
self
}
pub fn get_source_code(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Code>> {
self.inner.get_source_code()
}
pub fn toolchain(mut self, input: crate::types::Toolchain) -> Self {
self.inner = self.inner.toolchain(input);
self
}
pub fn set_toolchain(mut self, input: ::std::option::Option<crate::types::Toolchain>) -> Self {
self.inner = self.inner.set_toolchain(input);
self
}
pub fn get_toolchain(&self) -> &::std::option::Option<crate::types::Toolchain> {
self.inner.get_toolchain()
}
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 get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_tags()
}
}