Struct aws_sdk_apigateway::operation::create_request_validator::builders::CreateRequestValidatorInputBuilder
source · #[non_exhaustive]pub struct CreateRequestValidatorInputBuilder { /* private fields */ }
Expand description
A builder for CreateRequestValidatorInput
.
Implementations§
source§impl CreateRequestValidatorInputBuilder
impl CreateRequestValidatorInputBuilder
sourcepub fn rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
The string identifier of the associated RestApi.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the to-be-created RequestValidator.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the to-be-created RequestValidator.
sourcepub fn validate_request_body(self, input: bool) -> Self
pub fn validate_request_body(self, input: bool) -> Self
A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true
) or not (false
).
sourcepub fn set_validate_request_body(self, input: Option<bool>) -> Self
pub fn set_validate_request_body(self, input: Option<bool>) -> Self
A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true
) or not (false
).
sourcepub fn get_validate_request_body(&self) -> &Option<bool>
pub fn get_validate_request_body(&self) -> &Option<bool>
A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true
) or not (false
).
sourcepub fn validate_request_parameters(self, input: bool) -> Self
pub fn validate_request_parameters(self, input: bool) -> Self
A Boolean flag to indicate whether to validate request parameters, true
, or not false
.
sourcepub fn set_validate_request_parameters(self, input: Option<bool>) -> Self
pub fn set_validate_request_parameters(self, input: Option<bool>) -> Self
A Boolean flag to indicate whether to validate request parameters, true
, or not false
.
sourcepub fn get_validate_request_parameters(&self) -> &Option<bool>
pub fn get_validate_request_parameters(&self) -> &Option<bool>
A Boolean flag to indicate whether to validate request parameters, true
, or not false
.
sourcepub fn build(self) -> Result<CreateRequestValidatorInput, BuildError>
pub fn build(self) -> Result<CreateRequestValidatorInput, BuildError>
Consumes the builder and constructs a CreateRequestValidatorInput
.
source§impl CreateRequestValidatorInputBuilder
impl CreateRequestValidatorInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateRequestValidatorOutput, SdkError<CreateRequestValidatorError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateRequestValidatorOutput, SdkError<CreateRequestValidatorError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRequestValidatorInputBuilder
impl Clone for CreateRequestValidatorInputBuilder
source§fn clone(&self) -> CreateRequestValidatorInputBuilder
fn clone(&self) -> CreateRequestValidatorInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateRequestValidatorInputBuilder
impl Default for CreateRequestValidatorInputBuilder
source§fn default() -> CreateRequestValidatorInputBuilder
fn default() -> CreateRequestValidatorInputBuilder
source§impl PartialEq<CreateRequestValidatorInputBuilder> for CreateRequestValidatorInputBuilder
impl PartialEq<CreateRequestValidatorInputBuilder> for CreateRequestValidatorInputBuilder
source§fn eq(&self, other: &CreateRequestValidatorInputBuilder) -> bool
fn eq(&self, other: &CreateRequestValidatorInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.