aws_sdk_codepipeline/operation/poll_for_jobs/
builders.rspub use crate::operation::poll_for_jobs::_poll_for_jobs_output::PollForJobsOutputBuilder;
pub use crate::operation::poll_for_jobs::_poll_for_jobs_input::PollForJobsInputBuilder;
impl crate::operation::poll_for_jobs::builders::PollForJobsInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::poll_for_jobs::PollForJobsOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::poll_for_jobs::PollForJobsError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.poll_for_jobs();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct PollForJobsFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::poll_for_jobs::builders::PollForJobsInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::poll_for_jobs::PollForJobsOutput,
crate::operation::poll_for_jobs::PollForJobsError,
> for PollForJobsFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::poll_for_jobs::PollForJobsOutput,
crate::operation::poll_for_jobs::PollForJobsError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl PollForJobsFluentBuilder {
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::poll_for_jobs::builders::PollForJobsInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::poll_for_jobs::PollForJobsOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::poll_for_jobs::PollForJobsError,
::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::poll_for_jobs::PollForJobs::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::poll_for_jobs::PollForJobs::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::poll_for_jobs::PollForJobsOutput,
crate::operation::poll_for_jobs::PollForJobsError,
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
}
pub fn action_type_id(mut self, input: crate::types::ActionTypeId) -> Self {
self.inner = self.inner.action_type_id(input);
self
}
pub fn set_action_type_id(mut self, input: ::std::option::Option<crate::types::ActionTypeId>) -> Self {
self.inner = self.inner.set_action_type_id(input);
self
}
pub fn get_action_type_id(&self) -> &::std::option::Option<crate::types::ActionTypeId> {
self.inner.get_action_type_id()
}
pub fn max_batch_size(mut self, input: i32) -> Self {
self.inner = self.inner.max_batch_size(input);
self
}
pub fn set_max_batch_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_batch_size(input);
self
}
pub fn get_max_batch_size(&self) -> &::std::option::Option<i32> {
self.inner.get_max_batch_size()
}
pub fn query_param(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.query_param(k.into(), v.into());
self
}
pub fn set_query_param(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.inner = self.inner.set_query_param(input);
self
}
pub fn get_query_param(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_query_param()
}
}