pub use crate::operation::validate_sol_function_package_content::_validate_sol_function_package_content_output::ValidateSolFunctionPackageContentOutputBuilder;
pub use crate::operation::validate_sol_function_package_content::_validate_sol_function_package_content_input::ValidateSolFunctionPackageContentInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ValidateSolFunctionPackageContentFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::validate_sol_function_package_content::builders::ValidateSolFunctionPackageContentInputBuilder
}
impl ValidateSolFunctionPackageContentFluentBuilder {
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::validate_sol_function_package_content::ValidateSolFunctionPackageContent, aws_http::retry::AwsResponseRetryClassifier,>,
aws_smithy_http::result::SdkError<crate::operation::validate_sol_function_package_content::ValidateSolFunctionPackageContentError>
>{
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::validate_sol_function_package_content::ValidateSolFunctionPackageContentOutput, aws_smithy_http::result::SdkError<crate::operation::validate_sol_function_package_content::ValidateSolFunctionPackageContentError>>
{
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 vnf_pkg_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vnf_pkg_id(input.into());
self
}
pub fn set_vnf_pkg_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_vnf_pkg_id(input);
self
}
pub fn content_type(mut self, input: crate::types::PackageContentType) -> Self {
self.inner = self.inner.content_type(input);
self
}
pub fn set_content_type(
mut self,
input: std::option::Option<crate::types::PackageContentType>,
) -> Self {
self.inner = self.inner.set_content_type(input);
self
}
pub fn file(mut self, input: aws_smithy_types::Blob) -> Self {
self.inner = self.inner.file(input);
self
}
pub fn set_file(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
self.inner = self.inner.set_file(input);
self
}
}