Struct aws_sdk_apigatewayv2::types::builders::RouteResponseBuilder
source · #[non_exhaustive]pub struct RouteResponseBuilder { /* private fields */ }Expand description
A builder for RouteResponse.
Implementations§
source§impl RouteResponseBuilder
impl RouteResponseBuilder
sourcepub fn model_selection_expression(self, input: impl Into<String>) -> Self
pub fn model_selection_expression(self, input: impl Into<String>) -> Self
Represents the model selection expression of a route response. Supported only for WebSocket APIs.
sourcepub fn set_model_selection_expression(self, input: Option<String>) -> Self
pub fn set_model_selection_expression(self, input: Option<String>) -> Self
Represents the model selection expression of a route response. Supported only for WebSocket APIs.
sourcepub fn get_model_selection_expression(&self) -> &Option<String>
pub fn get_model_selection_expression(&self) -> &Option<String>
Represents the model selection expression of a route response. Supported only for WebSocket APIs.
sourcepub fn response_models(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn response_models(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to response_models.
To override the contents of this collection use set_response_models.
Represents the response models of a route response.
sourcepub fn set_response_models(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_response_models(self, input: Option<HashMap<String, String>>) -> Self
Represents the response models of a route response.
sourcepub fn get_response_models(&self) -> &Option<HashMap<String, String>>
pub fn get_response_models(&self) -> &Option<HashMap<String, String>>
Represents the response models of a route response.
sourcepub fn response_parameters(
self,
k: impl Into<String>,
v: ParameterConstraints
) -> Self
pub fn response_parameters( self, k: impl Into<String>, v: ParameterConstraints ) -> Self
Adds a key-value pair to response_parameters.
To override the contents of this collection use set_response_parameters.
Represents the response parameters of a route response.
sourcepub fn set_response_parameters(
self,
input: Option<HashMap<String, ParameterConstraints>>
) -> Self
pub fn set_response_parameters( self, input: Option<HashMap<String, ParameterConstraints>> ) -> Self
Represents the response parameters of a route response.
sourcepub fn get_response_parameters(
&self
) -> &Option<HashMap<String, ParameterConstraints>>
pub fn get_response_parameters( &self ) -> &Option<HashMap<String, ParameterConstraints>>
Represents the response parameters of a route response.
sourcepub fn route_response_id(self, input: impl Into<String>) -> Self
pub fn route_response_id(self, input: impl Into<String>) -> Self
Represents the identifier of a route response.
sourcepub fn set_route_response_id(self, input: Option<String>) -> Self
pub fn set_route_response_id(self, input: Option<String>) -> Self
Represents the identifier of a route response.
sourcepub fn get_route_response_id(&self) -> &Option<String>
pub fn get_route_response_id(&self) -> &Option<String>
Represents the identifier of a route response.
sourcepub fn route_response_key(self, input: impl Into<String>) -> Self
pub fn route_response_key(self, input: impl Into<String>) -> Self
Represents the route response key of a route response.
This field is required.sourcepub fn set_route_response_key(self, input: Option<String>) -> Self
pub fn set_route_response_key(self, input: Option<String>) -> Self
Represents the route response key of a route response.
sourcepub fn get_route_response_key(&self) -> &Option<String>
pub fn get_route_response_key(&self) -> &Option<String>
Represents the route response key of a route response.
sourcepub fn build(self) -> RouteResponse
pub fn build(self) -> RouteResponse
Consumes the builder and constructs a RouteResponse.
Trait Implementations§
source§impl Clone for RouteResponseBuilder
impl Clone for RouteResponseBuilder
source§fn clone(&self) -> RouteResponseBuilder
fn clone(&self) -> RouteResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RouteResponseBuilder
impl Debug for RouteResponseBuilder
source§impl Default for RouteResponseBuilder
impl Default for RouteResponseBuilder
source§fn default() -> RouteResponseBuilder
fn default() -> RouteResponseBuilder
source§impl PartialEq for RouteResponseBuilder
impl PartialEq for RouteResponseBuilder
source§fn eq(&self, other: &RouteResponseBuilder) -> bool
fn eq(&self, other: &RouteResponseBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RouteResponseBuilder
Auto Trait Implementations§
impl Freeze for RouteResponseBuilder
impl RefUnwindSafe for RouteResponseBuilder
impl Send for RouteResponseBuilder
impl Sync for RouteResponseBuilder
impl Unpin for RouteResponseBuilder
impl UnwindSafe for RouteResponseBuilder
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