pub use crate::operation::list_image_versions::_list_image_versions_output::ListImageVersionsOutputBuilder;
pub use crate::operation::list_image_versions::_list_image_versions_input::ListImageVersionsInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListImageVersionsFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::list_image_versions::builders::ListImageVersionsInputBuilder,
}
impl ListImageVersionsFluentBuilder {
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_image_versions::ListImageVersions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::list_image_versions::ListImageVersionsError,
>,
> {
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_image_versions::ListImageVersionsOutput,
aws_smithy_http::result::SdkError<
crate::operation::list_image_versions::ListImageVersionsError,
>,
> {
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_image_versions::paginator::ListImageVersionsPaginator {
crate::operation::list_image_versions::paginator::ListImageVersionsPaginator::new(
self.handle,
self.inner,
)
}
pub fn creation_time_after(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.creation_time_after(input);
self
}
pub fn set_creation_time_after(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_creation_time_after(input);
self
}
pub fn creation_time_before(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.creation_time_before(input);
self
}
pub fn set_creation_time_before(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_creation_time_before(input);
self
}
pub fn image_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.image_name(input.into());
self
}
pub fn set_image_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_image_name(input);
self
}
pub fn last_modified_time_after(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.last_modified_time_after(input);
self
}
pub fn set_last_modified_time_after(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_last_modified_time_after(input);
self
}
pub fn last_modified_time_before(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.last_modified_time_before(input);
self
}
pub fn set_last_modified_time_before(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_last_modified_time_before(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
}
pub fn sort_by(mut self, input: crate::types::ImageVersionSortBy) -> Self {
self.inner = self.inner.sort_by(input);
self
}
pub fn set_sort_by(
mut self,
input: std::option::Option<crate::types::ImageVersionSortBy>,
) -> Self {
self.inner = self.inner.set_sort_by(input);
self
}
pub fn sort_order(mut self, input: crate::types::ImageVersionSortOrder) -> Self {
self.inner = self.inner.sort_order(input);
self
}
pub fn set_sort_order(
mut self,
input: std::option::Option<crate::types::ImageVersionSortOrder>,
) -> Self {
self.inner = self.inner.set_sort_order(input);
self
}
}