pub use crate::operation::modify_hapg::_modify_hapg_output::ModifyHapgOutputBuilder;
pub use crate::operation::modify_hapg::_modify_hapg_input::ModifyHapgInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ModifyHapgFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::modify_hapg::builders::ModifyHapgInputBuilder,
}
impl ModifyHapgFluentBuilder {
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::modify_hapg::ModifyHapg,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::modify_hapg::ModifyHapgError>,
> {
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::modify_hapg::ModifyHapgOutput,
aws_smithy_http::result::SdkError<crate::operation::modify_hapg::ModifyHapgError>,
> {
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 hapg_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.hapg_arn(input.into());
self
}
pub fn set_hapg_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_hapg_arn(input);
self
}
pub fn label(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.label(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_label(input);
self
}
pub fn partition_serial_list(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.partition_serial_list(input.into());
self
}
pub fn set_partition_serial_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_partition_serial_list(input);
self
}
}