aws_sdk_apigateway/client/
get_request_validator.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 [`GetRequestValidator`](crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rest_api_id(impl Into<String>)`](crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7    ///   - [`request_validator_id(impl Into<String>)`](crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder::request_validator_id) / [`set_request_validator_id(Option<String>)`](crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder::set_request_validator_id):<br>required: **true**<br><p>The identifier of the RequestValidator to be retrieved.</p><br>
8    /// - On success, responds with [`GetRequestValidatorOutput`](crate::operation::get_request_validator::GetRequestValidatorOutput) with field(s):
9    ///   - [`id(Option<String>)`](crate::operation::get_request_validator::GetRequestValidatorOutput::id): <p>The identifier of this RequestValidator.</p>
10    ///   - [`name(Option<String>)`](crate::operation::get_request_validator::GetRequestValidatorOutput::name): <p>The name of this RequestValidator</p>
11    ///   - [`validate_request_body(bool)`](crate::operation::get_request_validator::GetRequestValidatorOutput::validate_request_body): <p>A Boolean flag to indicate whether to validate a request body according to the configured Model schema.</p>
12    ///   - [`validate_request_parameters(bool)`](crate::operation::get_request_validator::GetRequestValidatorOutput::validate_request_parameters): <p>A Boolean flag to indicate whether to validate request parameters (<code>true</code>) or not (<code>false</code>).</p>
13    /// - On failure, responds with [`SdkError<GetRequestValidatorError>`](crate::operation::get_request_validator::GetRequestValidatorError)
14    pub fn get_request_validator(&self) -> crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder {
15        crate::operation::get_request_validator::builders::GetRequestValidatorFluentBuilder::new(self.handle.clone())
16    }
17}