Struct aws_sdk_config::input::GetStoredQueryInput
source · #[non_exhaustive]pub struct GetStoredQueryInput { /* private fields */ }Implementations§
source§impl GetStoredQueryInput
impl GetStoredQueryInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetStoredQuery, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetStoredQuery, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetStoredQuery>
Examples found in repository?
src/client.rs (line 7665)
7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetStoredQuery,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetStoredQueryError>,
> {
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::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetStoredQueryOutput,
aws_smithy_http::result::SdkError<crate::error::GetStoredQueryError>,
> {
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
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetStoredQueryInput.
source§impl GetStoredQueryInput
impl GetStoredQueryInput
sourcepub fn query_name(&self) -> Option<&str>
pub fn query_name(&self) -> Option<&str>
The name of the query.
Trait Implementations§
source§impl Clone for GetStoredQueryInput
impl Clone for GetStoredQueryInput
source§fn clone(&self) -> GetStoredQueryInput
fn clone(&self) -> GetStoredQueryInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more