pub use crate::operation::update_control::_update_control_output::UpdateControlOutputBuilder;
pub use crate::operation::update_control::_update_control_input::UpdateControlInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateControlFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_control::builders::UpdateControlInputBuilder,
}
impl UpdateControlFluentBuilder {
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::update_control::UpdateControl,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::update_control::UpdateControlError>,
> {
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::update_control::UpdateControlOutput,
aws_smithy_http::result::SdkError<crate::operation::update_control::UpdateControlError>,
> {
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 control_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.control_id(input.into());
self
}
pub fn set_control_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_control_id(input);
self
}
pub fn name(mut self, input: impl 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 description(mut self, input: impl 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 testing_information(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.testing_information(input.into());
self
}
pub fn set_testing_information(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_testing_information(input);
self
}
pub fn action_plan_title(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.action_plan_title(input.into());
self
}
pub fn set_action_plan_title(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_action_plan_title(input);
self
}
pub fn action_plan_instructions(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.action_plan_instructions(input.into());
self
}
pub fn set_action_plan_instructions(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_action_plan_instructions(input);
self
}
pub fn control_mapping_sources(mut self, input: crate::types::ControlMappingSource) -> Self {
self.inner = self.inner.control_mapping_sources(input);
self
}
pub fn set_control_mapping_sources(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::ControlMappingSource>>,
) -> Self {
self.inner = self.inner.set_control_mapping_sources(input);
self
}
}