pub use crate::operation::create_software_update_job::_create_software_update_job_output::CreateSoftwareUpdateJobOutputBuilder;
pub use crate::operation::create_software_update_job::_create_software_update_job_input::CreateSoftwareUpdateJobInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateSoftwareUpdateJobFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner:
crate::operation::create_software_update_job::builders::CreateSoftwareUpdateJobInputBuilder,
}
impl CreateSoftwareUpdateJobFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_software_update_job::CreateSoftwareUpdateJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::create_software_update_job::CreateSoftwareUpdateJobError,
>,
> {
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)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::create_software_update_job::CreateSoftwareUpdateJobOutput,
aws_smithy_http::result::SdkError<
crate::operation::create_software_update_job::CreateSoftwareUpdateJobError,
>,
> {
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 fn amzn_client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.amzn_client_token(input.into());
self
}
pub fn set_amzn_client_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_amzn_client_token(input);
self
}
pub fn s3_url_signer_role(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.s3_url_signer_role(input.into());
self
}
pub fn set_s3_url_signer_role(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_s3_url_signer_role(input);
self
}
pub fn software_to_update(mut self, input: crate::types::SoftwareToUpdate) -> Self {
self.inner = self.inner.software_to_update(input);
self
}
pub fn set_software_to_update(
mut self,
input: std::option::Option<crate::types::SoftwareToUpdate>,
) -> Self {
self.inner = self.inner.set_software_to_update(input);
self
}
pub fn update_agent_log_level(mut self, input: crate::types::UpdateAgentLogLevel) -> Self {
self.inner = self.inner.update_agent_log_level(input);
self
}
pub fn set_update_agent_log_level(
mut self,
input: std::option::Option<crate::types::UpdateAgentLogLevel>,
) -> Self {
self.inner = self.inner.set_update_agent_log_level(input);
self
}
pub fn update_targets(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.update_targets(input.into());
self
}
pub fn set_update_targets(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_update_targets(input);
self
}
pub fn update_targets_architecture(
mut self,
input: crate::types::UpdateTargetsArchitecture,
) -> Self {
self.inner = self.inner.update_targets_architecture(input);
self
}
pub fn set_update_targets_architecture(
mut self,
input: std::option::Option<crate::types::UpdateTargetsArchitecture>,
) -> Self {
self.inner = self.inner.set_update_targets_architecture(input);
self
}
pub fn update_targets_operating_system(
mut self,
input: crate::types::UpdateTargetsOperatingSystem,
) -> Self {
self.inner = self.inner.update_targets_operating_system(input);
self
}
pub fn set_update_targets_operating_system(
mut self,
input: std::option::Option<crate::types::UpdateTargetsOperatingSystem>,
) -> Self {
self.inner = self.inner.set_update_targets_operating_system(input);
self
}
}