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<CreateRouteResponseOutputBuilder> for CreateRouteResponseOutputBuilder
impl PartialEq<CreateRouteResponseOutputBuilder> 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 ==
.