Struct aws_sdk_comprehend::input::describe_endpoint_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DescribeEndpointInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn endpoint_arn(self, input: impl Into<String>) -> Self
pub fn endpoint_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Number (ARN) of the endpoint being described.
sourcepub fn set_endpoint_arn(self, input: Option<String>) -> Self
pub fn set_endpoint_arn(self, input: Option<String>) -> Self
The Amazon Resource Number (ARN) of the endpoint being described.
sourcepub fn build(self) -> Result<DescribeEndpointInput, BuildError>
pub fn build(self) -> Result<DescribeEndpointInput, BuildError>
Consumes the builder and constructs a DescribeEndpointInput.
Examples found in repository?
src/client.rs (line 3005)
2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeEndpoint,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeEndpointError>,
> {
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::DescribeEndpointOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeEndpointError>,
> {
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
}