pub use crate::operation::get_links::_get_links_output::GetLinksOutputBuilder;
pub use crate::operation::get_links::_get_links_input::GetLinksInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetLinksFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::get_links::builders::GetLinksInputBuilder,
}
impl GetLinksFluentBuilder {
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::get_links::GetLinks,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::get_links::GetLinksError>,
> {
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::get_links::GetLinksOutput,
aws_smithy_http::result::SdkError<crate::operation::get_links::GetLinksError>,
> {
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::get_links::paginator::GetLinksPaginator {
crate::operation::get_links::paginator::GetLinksPaginator::new(self.handle, self.inner)
}
pub fn global_network_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.global_network_id(input.into());
self
}
pub fn set_global_network_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_global_network_id(input);
self
}
pub fn link_ids(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.link_ids(input.into());
self
}
pub fn set_link_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_link_ids(input);
self
}
pub fn site_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.site_id(input.into());
self
}
pub fn set_site_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_site_id(input);
self
}
pub fn r#type(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.r#type(input.into());
self
}
pub fn set_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_type(input);
self
}
pub fn provider(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.provider(input.into());
self
}
pub fn set_provider(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_provider(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
}
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
}
}