aws_sdk_apigateway/client/
delete_model.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeleteModel`](crate::operation::delete_model::builders::DeleteModelFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rest_api_id(impl Into<String>)`](crate::operation::delete_model::builders::DeleteModelFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::delete_model::builders::DeleteModelFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7    ///   - [`model_name(impl Into<String>)`](crate::operation::delete_model::builders::DeleteModelFluentBuilder::model_name) / [`set_model_name(Option<String>)`](crate::operation::delete_model::builders::DeleteModelFluentBuilder::set_model_name):<br>required: **true**<br><p>The name of the model to delete.</p><br>
8    /// - On success, responds with [`DeleteModelOutput`](crate::operation::delete_model::DeleteModelOutput)
9    /// - On failure, responds with [`SdkError<DeleteModelError>`](crate::operation::delete_model::DeleteModelError)
10    pub fn delete_model(&self) -> crate::operation::delete_model::builders::DeleteModelFluentBuilder {
11        crate::operation::delete_model::builders::DeleteModelFluentBuilder::new(self.handle.clone())
12    }
13}