Struct aws_sdk_apigatewayv2::input::UpdateModelInput
source · #[non_exhaustive]pub struct UpdateModelInput { /* private fields */ }Expand description
Updates a Model.
Implementations§
source§impl UpdateModelInput
impl UpdateModelInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateModel, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateModel, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateModel>
Examples found in repository?
src/client.rs (line 9222)
9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateModel,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateModelError>,
> {
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::UpdateModelOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateModelError>,
> {
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 UpdateModelInput.
source§impl UpdateModelInput
impl UpdateModelInput
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The content-type for the model, for example, "application/json".
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the model.
Trait Implementations§
source§impl Clone for UpdateModelInput
impl Clone for UpdateModelInput
source§fn clone(&self) -> UpdateModelInput
fn clone(&self) -> UpdateModelInput
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