pub use crate::operation::update_mission_profile::_update_mission_profile_output::UpdateMissionProfileOutputBuilder;
pub use crate::operation::update_mission_profile::_update_mission_profile_input::UpdateMissionProfileInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateMissionProfileFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_mission_profile::builders::UpdateMissionProfileInputBuilder,
}
impl UpdateMissionProfileFluentBuilder {
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_mission_profile::UpdateMissionProfile,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::update_mission_profile::UpdateMissionProfileError,
>,
> {
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_mission_profile::UpdateMissionProfileOutput,
aws_smithy_http::result::SdkError<
crate::operation::update_mission_profile::UpdateMissionProfileError,
>,
> {
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 mission_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.mission_profile_id(input.into());
self
}
pub fn set_mission_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_mission_profile_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 contact_pre_pass_duration_seconds(mut self, input: i32) -> Self {
self.inner = self.inner.contact_pre_pass_duration_seconds(input);
self
}
pub fn set_contact_pre_pass_duration_seconds(
mut self,
input: std::option::Option<i32>,
) -> Self {
self.inner = self.inner.set_contact_pre_pass_duration_seconds(input);
self
}
pub fn contact_post_pass_duration_seconds(mut self, input: i32) -> Self {
self.inner = self.inner.contact_post_pass_duration_seconds(input);
self
}
pub fn set_contact_post_pass_duration_seconds(
mut self,
input: std::option::Option<i32>,
) -> Self {
self.inner = self.inner.set_contact_post_pass_duration_seconds(input);
self
}
pub fn minimum_viable_contact_duration_seconds(mut self, input: i32) -> Self {
self.inner = self.inner.minimum_viable_contact_duration_seconds(input);
self
}
pub fn set_minimum_viable_contact_duration_seconds(
mut self,
input: std::option::Option<i32>,
) -> Self {
self.inner = self
.inner
.set_minimum_viable_contact_duration_seconds(input);
self
}
pub fn dataflow_edges(mut self, input: std::vec::Vec<std::string::String>) -> Self {
self.inner = self.inner.dataflow_edges(input);
self
}
pub fn set_dataflow_edges(
mut self,
input: std::option::Option<std::vec::Vec<std::vec::Vec<std::string::String>>>,
) -> Self {
self.inner = self.inner.set_dataflow_edges(input);
self
}
pub fn tracking_config_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tracking_config_arn(input.into());
self
}
pub fn set_tracking_config_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_tracking_config_arn(input);
self
}
pub fn streams_kms_key(mut self, input: crate::types::KmsKey) -> Self {
self.inner = self.inner.streams_kms_key(input);
self
}
pub fn set_streams_kms_key(mut self, input: std::option::Option<crate::types::KmsKey>) -> Self {
self.inner = self.inner.set_streams_kms_key(input);
self
}
pub fn streams_kms_role(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.streams_kms_role(input.into());
self
}
pub fn set_streams_kms_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_streams_kms_role(input);
self
}
}