pub struct Builder { /* private fields */ }Expand description
A builder for UpdateRouteResponseInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API identifier.
sourcepub fn model_selection_expression(self, input: impl Into<String>) -> Self
pub fn model_selection_expression(self, input: impl Into<String>) -> Self
The model selection expression for the route response. Supported only for WebSocket APIs.
sourcepub fn set_model_selection_expression(self, input: Option<String>) -> Self
pub fn set_model_selection_expression(self, input: Option<String>) -> Self
The model selection expression for the route response. Supported only for WebSocket APIs.
sourcepub fn response_models(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn response_models(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to response_models.
To override the contents of this collection use set_response_models.
The response models for the route response.
sourcepub fn set_response_models(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_response_models(self, input: Option<HashMap<String, String>>) -> Self
The response models for the route response.
sourcepub fn response_parameters(
self,
k: impl Into<String>,
v: ParameterConstraints
) -> Self
pub fn response_parameters(
self,
k: impl Into<String>,
v: ParameterConstraints
) -> Self
Adds a key-value pair to response_parameters.
To override the contents of this collection use set_response_parameters.
The route response parameters.
sourcepub fn set_response_parameters(
self,
input: Option<HashMap<String, ParameterConstraints>>
) -> Self
pub fn set_response_parameters(
self,
input: Option<HashMap<String, ParameterConstraints>>
) -> Self
The route response parameters.
sourcepub fn set_route_id(self, input: Option<String>) -> Self
pub fn set_route_id(self, input: Option<String>) -> Self
The route ID.
sourcepub fn route_response_id(self, input: impl Into<String>) -> Self
pub fn route_response_id(self, input: impl Into<String>) -> Self
The route response ID.
sourcepub fn set_route_response_id(self, input: Option<String>) -> Self
pub fn set_route_response_id(self, input: Option<String>) -> Self
The route response ID.
sourcepub fn route_response_key(self, input: impl Into<String>) -> Self
pub fn route_response_key(self, input: impl Into<String>) -> Self
The route response key.
sourcepub fn set_route_response_key(self, input: Option<String>) -> Self
pub fn set_route_response_key(self, input: Option<String>) -> Self
The route response key.
sourcepub fn build(self) -> Result<UpdateRouteResponseInput, BuildError>
pub fn build(self) -> Result<UpdateRouteResponseInput, BuildError>
Consumes the builder and constructs a UpdateRouteResponseInput.
Examples found in repository?
9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateRouteResponse,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateRouteResponseError>,
> {
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::UpdateRouteResponseOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateRouteResponseError>,
> {
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
}