pub use crate::operation::reserve_contact::_reserve_contact_output::ReserveContactOutputBuilder;
pub use crate::operation::reserve_contact::_reserve_contact_input::ReserveContactInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ReserveContactFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::reserve_contact::builders::ReserveContactInputBuilder,
}
impl ReserveContactFluentBuilder {
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::reserve_contact::ReserveContact,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::reserve_contact::ReserveContactError>,
> {
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::reserve_contact::ReserveContactOutput,
aws_smithy_http::result::SdkError<crate::operation::reserve_contact::ReserveContactError>,
> {
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_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.mission_profile_arn(input.into());
self
}
pub fn set_mission_profile_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_mission_profile_arn(input);
self
}
pub fn satellite_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.satellite_arn(input.into());
self
}
pub fn set_satellite_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_satellite_arn(input);
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.start_time(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_start_time(input);
self
}
pub fn end_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.end_time(input);
self
}
pub fn set_end_time(mut self, input: std::option::Option<aws_smithy_types::DateTime>) -> Self {
self.inner = self.inner.set_end_time(input);
self
}
pub fn ground_station(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.ground_station(input.into());
self
}
pub fn set_ground_station(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_ground_station(input);
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}