aws_sdk_apigatewayv2/client/get_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 [`GetModel`](crate::operation::get_model::builders::GetModelFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`api_id(impl Into<String>)`](crate::operation::get_model::builders::GetModelFluentBuilder::api_id) / [`set_api_id(Option<String>)`](crate::operation::get_model::builders::GetModelFluentBuilder::set_api_id):<br>required: **true**<br><p>The API identifier.</p><br>
7 /// - [`model_id(impl Into<String>)`](crate::operation::get_model::builders::GetModelFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::get_model::builders::GetModelFluentBuilder::set_model_id):<br>required: **true**<br><p>The model ID.</p><br>
8 /// - On success, responds with [`GetModelOutput`](crate::operation::get_model::GetModelOutput) with field(s):
9 /// - [`content_type(Option<String>)`](crate::operation::get_model::GetModelOutput::content_type): <p>The content-type for the model, for example, "application/json".</p>
10 /// - [`description(Option<String>)`](crate::operation::get_model::GetModelOutput::description): <p>The description of the model.</p>
11 /// - [`model_id(Option<String>)`](crate::operation::get_model::GetModelOutput::model_id): <p>The model identifier.</p>
12 /// - [`name(Option<String>)`](crate::operation::get_model::GetModelOutput::name): <p>The name of the model. Must be alphanumeric.</p>
13 /// - [`schema(Option<String>)`](crate::operation::get_model::GetModelOutput::schema): <p>The schema for the model. For application/json models, this should be JSON schema draft 4 model.</p>
14 /// - On failure, responds with [`SdkError<GetModelError>`](crate::operation::get_model::GetModelError)
15 pub fn get_model(&self) -> crate::operation::get_model::builders::GetModelFluentBuilder {
16 crate::operation::get_model::builders::GetModelFluentBuilder::new(self.handle.clone())
17 }
18}