Struct aws_sdk_apigateway::input::UpdateModelInput
source · #[non_exhaustive]pub struct UpdateModelInput { /* private fields */ }
Expand description
Request to update an existing model in an existing RestApi resource.
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 14049)
14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077
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 rest_api_id(&self) -> Option<&str>
pub fn rest_api_id(&self) -> Option<&str>
The string identifier of the associated RestApi.
sourcepub fn model_name(&self) -> Option<&str>
pub fn model_name(&self) -> Option<&str>
The name of the model to update.
sourcepub fn patch_operations(&self) -> Option<&[PatchOperation]>
pub fn patch_operations(&self) -> Option<&[PatchOperation]>
For more information about supported patch operations, see Patch Operations.
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