aws_sdk_deadline/operation/create_job/
builders.rspub use crate::operation::create_job::_create_job_output::CreateJobOutputBuilder;
pub use crate::operation::create_job::_create_job_input::CreateJobInputBuilder;
impl crate::operation::create_job::builders::CreateJobInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_job::CreateJobOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_job::CreateJobError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_job();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateJobFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_job::builders::CreateJobInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl crate::client::customize::internal::CustomizableSend<crate::operation::create_job::CreateJobOutput, crate::operation::create_job::CreateJobError>
for CreateJobFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<crate::operation::create_job::CreateJobOutput, crate::operation::create_job::CreateJobError>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateJobFluentBuilder {
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_job::builders::CreateJobInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_job::CreateJobOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_job::CreateJobError,
::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_job::CreateJob::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_job::CreateJob::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_job::CreateJobOutput,
crate::operation::create_job::CreateJobError,
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 farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.farm_id(input.into());
self
}
pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_farm_id(input);
self
}
pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_farm_id()
}
pub fn queue_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.queue_id(input.into());
self
}
pub fn set_queue_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_queue_id(input);
self
}
pub fn get_queue_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_queue_id()
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_token()
}
pub fn template(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.template(input.into());
self
}
pub fn set_template(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_template(input);
self
}
pub fn get_template(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_template()
}
pub fn template_type(mut self, input: crate::types::JobTemplateType) -> Self {
self.inner = self.inner.template_type(input);
self
}
pub fn set_template_type(mut self, input: ::std::option::Option<crate::types::JobTemplateType>) -> Self {
self.inner = self.inner.set_template_type(input);
self
}
pub fn get_template_type(&self) -> &::std::option::Option<crate::types::JobTemplateType> {
self.inner.get_template_type()
}
pub fn priority(mut self, input: i32) -> Self {
self.inner = self.inner.priority(input);
self
}
pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_priority(input);
self
}
pub fn get_priority(&self) -> &::std::option::Option<i32> {
self.inner.get_priority()
}
pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::JobParameter) -> Self {
self.inner = self.inner.parameters(k.into(), v);
self
}
pub fn set_parameters(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::JobParameter>>,
) -> Self {
self.inner = self.inner.set_parameters(input);
self
}
pub fn get_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::JobParameter>> {
self.inner.get_parameters()
}
pub fn attachments(mut self, input: crate::types::Attachments) -> Self {
self.inner = self.inner.attachments(input);
self
}
pub fn set_attachments(mut self, input: ::std::option::Option<crate::types::Attachments>) -> Self {
self.inner = self.inner.set_attachments(input);
self
}
pub fn get_attachments(&self) -> &::std::option::Option<crate::types::Attachments> {
self.inner.get_attachments()
}
pub fn storage_profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.storage_profile_id(input.into());
self
}
pub fn set_storage_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_storage_profile_id(input);
self
}
pub fn get_storage_profile_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_storage_profile_id()
}
pub fn target_task_run_status(mut self, input: crate::types::CreateJobTargetTaskRunStatus) -> Self {
self.inner = self.inner.target_task_run_status(input);
self
}
pub fn set_target_task_run_status(mut self, input: ::std::option::Option<crate::types::CreateJobTargetTaskRunStatus>) -> Self {
self.inner = self.inner.set_target_task_run_status(input);
self
}
pub fn get_target_task_run_status(&self) -> &::std::option::Option<crate::types::CreateJobTargetTaskRunStatus> {
self.inner.get_target_task_run_status()
}
pub fn max_failed_tasks_count(mut self, input: i32) -> Self {
self.inner = self.inner.max_failed_tasks_count(input);
self
}
pub fn set_max_failed_tasks_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_failed_tasks_count(input);
self
}
pub fn get_max_failed_tasks_count(&self) -> &::std::option::Option<i32> {
self.inner.get_max_failed_tasks_count()
}
pub fn max_retries_per_task(mut self, input: i32) -> Self {
self.inner = self.inner.max_retries_per_task(input);
self
}
pub fn set_max_retries_per_task(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_retries_per_task(input);
self
}
pub fn get_max_retries_per_task(&self) -> &::std::option::Option<i32> {
self.inner.get_max_retries_per_task()
}
pub fn source_job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.source_job_id(input.into());
self
}
pub fn set_source_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_source_job_id(input);
self
}
pub fn get_source_job_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_source_job_id()
}
}