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.
This field is required.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 for CreateRequestValidatorInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for CreateRequestValidatorInputBuilder
Auto Trait Implementations§
impl Freeze for CreateRequestValidatorInputBuilder
impl RefUnwindSafe for CreateRequestValidatorInputBuilder
impl Send for CreateRequestValidatorInputBuilder
impl Sync for CreateRequestValidatorInputBuilder
impl Unpin for CreateRequestValidatorInputBuilder
impl UnwindSafe for CreateRequestValidatorInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more