Struct aws_sdk_apigatewayv2::operation::create_route_response::builders::CreateRouteResponseOutputBuilder
source · #[non_exhaustive]pub struct CreateRouteResponseOutputBuilder { /* private fields */ }Expand description
A builder for CreateRouteResponseOutput.
Implementations§
source§impl CreateRouteResponseOutputBuilder
impl CreateRouteResponseOutputBuilder
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.
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) -> CreateRouteResponseOutput
pub fn build(self) -> CreateRouteResponseOutput
Consumes the builder and constructs a CreateRouteResponseOutput.
Trait Implementations§
source§impl Clone for CreateRouteResponseOutputBuilder
impl Clone for CreateRouteResponseOutputBuilder
source§fn clone(&self) -> CreateRouteResponseOutputBuilder
fn clone(&self) -> CreateRouteResponseOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateRouteResponseOutputBuilder
impl Default for CreateRouteResponseOutputBuilder
source§fn default() -> CreateRouteResponseOutputBuilder
fn default() -> CreateRouteResponseOutputBuilder
source§impl PartialEq for CreateRouteResponseOutputBuilder
impl PartialEq for CreateRouteResponseOutputBuilder
source§fn eq(&self, other: &CreateRouteResponseOutputBuilder) -> bool
fn eq(&self, other: &CreateRouteResponseOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateRouteResponseOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateRouteResponseOutputBuilder
impl RefUnwindSafe for CreateRouteResponseOutputBuilder
impl Send for CreateRouteResponseOutputBuilder
impl Sync for CreateRouteResponseOutputBuilder
impl Unpin for CreateRouteResponseOutputBuilder
impl UnwindSafe for CreateRouteResponseOutputBuilder
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