pub use crate::operation::list_nodes::_list_nodes_output::ListNodesOutputBuilder;
pub use crate::operation::list_nodes::_list_nodes_input::ListNodesInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListNodesFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::list_nodes::builders::ListNodesInputBuilder,
}
impl ListNodesFluentBuilder {
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::list_nodes::ListNodes,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::list_nodes::ListNodesError>,
> {
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::list_nodes::ListNodesOutput,
aws_smithy_http::result::SdkError<crate::operation::list_nodes::ListNodesError>,
> {
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 into_paginator(self) -> crate::operation::list_nodes::paginator::ListNodesPaginator {
crate::operation::list_nodes::paginator::ListNodesPaginator::new(self.handle, self.inner)
}
pub fn category(mut self, input: crate::types::NodeCategory) -> Self {
self.inner = self.inner.category(input);
self
}
pub fn set_category(mut self, input: std::option::Option<crate::types::NodeCategory>) -> Self {
self.inner = self.inner.set_category(input);
self
}
pub fn owner_account(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.owner_account(input.into());
self
}
pub fn set_owner_account(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_owner_account(input);
self
}
pub fn package_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.package_name(input.into());
self
}
pub fn set_package_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_package_name(input);
self
}
pub fn package_version(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.package_version(input.into());
self
}
pub fn set_package_version(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_package_version(input);
self
}
pub fn patch_version(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.patch_version(input.into());
self
}
pub fn set_patch_version(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_patch_version(input);
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}