pub use crate::operation::get_case::_get_case_output::GetCaseOutputBuilder;
pub use crate::operation::get_case::_get_case_input::GetCaseInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetCaseFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::get_case::builders::GetCaseInputBuilder,
}
impl GetCaseFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
}
}
#[doc(hidden)]
pub async fn customize_middleware(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::get_case::GetCase,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::get_case::GetCaseError>,
> {
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)?;
::std::result::Result::Ok(crate::client::customize::CustomizableOperation {
handle,
operation,
})
}
#[doc(hidden)]
pub async fn send_middleware(
self,
) -> ::std::result::Result<
crate::operation::get_case::GetCaseOutput,
::aws_smithy_http::result::SdkError<crate::operation::get_case::GetCaseError>,
> {
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 async fn send(
self,
) -> ::std::result::Result<
crate::operation::get_case::GetCaseOutput,
::aws_smithy_http::result::SdkError<crate::operation::get_case::GetCaseError>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::get_case::GetCase,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::get_case::GetCaseError>,
> {
self.customize_middleware().await
}
pub fn into_paginator(self) -> crate::operation::get_case::paginator::GetCasePaginator {
crate::operation::get_case::paginator::GetCasePaginator::new(self.handle, self.inner)
}
pub fn case_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.case_id(input.into());
self
}
pub fn set_case_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_case_id(input);
self
}
pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.domain_id(input.into());
self
}
pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_domain_id(input);
self
}
pub fn fields(mut self, input: crate::types::FieldIdentifier) -> Self {
self.inner = self.inner.fields(input);
self
}
pub fn set_fields(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::FieldIdentifier>>,
) -> Self {
self.inner = self.inner.set_fields(input);
self
}
pub fn next_token(mut self, input: impl ::std::convert::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
}
}