Struct aws_sdk_apigateway::operation::get_method_response::builders::GetMethodResponseOutputBuilder
source · #[non_exhaustive]pub struct GetMethodResponseOutputBuilder { /* private fields */ }
Expand description
A builder for GetMethodResponseOutput
.
Implementations§
source§impl GetMethodResponseOutputBuilder
impl GetMethodResponseOutputBuilder
sourcepub fn status_code(self, input: impl Into<String>) -> Self
pub fn status_code(self, input: impl Into<String>) -> Self
The method response's status code.
sourcepub fn set_status_code(self, input: Option<String>) -> Self
pub fn set_status_code(self, input: Option<String>) -> Self
The method response's status code.
sourcepub fn get_status_code(&self) -> &Option<String>
pub fn get_status_code(&self) -> &Option<String>
The method response's status code.
sourcepub fn response_parameters(self, k: impl Into<String>, v: bool) -> Self
pub fn response_parameters(self, k: impl Into<String>, v: bool) -> Self
Adds a key-value pair to response_parameters
.
To override the contents of this collection use set_response_parameters
.
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}
, where name
is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'
), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}
, where JSON-expression
is a valid JSON expression without the $
prefix.)
sourcepub fn set_response_parameters(
self,
input: Option<HashMap<String, bool>>
) -> Self
pub fn set_response_parameters( self, input: Option<HashMap<String, bool>> ) -> Self
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}
, where name
is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'
), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}
, where JSON-expression
is a valid JSON expression without the $
prefix.)
sourcepub fn get_response_parameters(&self) -> &Option<HashMap<String, bool>>
pub fn get_response_parameters(&self) -> &Option<HashMap<String, bool>>
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}
, where name
is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'
), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}
, where JSON-expression
is a valid JSON expression without the $
prefix.)
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
.
Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.
sourcepub fn set_response_models(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_response_models(self, input: Option<HashMap<String, String>>) -> Self
Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.
sourcepub fn get_response_models(&self) -> &Option<HashMap<String, String>>
pub fn get_response_models(&self) -> &Option<HashMap<String, String>>
Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.
sourcepub fn build(self) -> GetMethodResponseOutput
pub fn build(self) -> GetMethodResponseOutput
Consumes the builder and constructs a GetMethodResponseOutput
.
Trait Implementations§
source§impl Clone for GetMethodResponseOutputBuilder
impl Clone for GetMethodResponseOutputBuilder
source§fn clone(&self) -> GetMethodResponseOutputBuilder
fn clone(&self) -> GetMethodResponseOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetMethodResponseOutputBuilder
impl Default for GetMethodResponseOutputBuilder
source§fn default() -> GetMethodResponseOutputBuilder
fn default() -> GetMethodResponseOutputBuilder
source§impl PartialEq<GetMethodResponseOutputBuilder> for GetMethodResponseOutputBuilder
impl PartialEq<GetMethodResponseOutputBuilder> for GetMethodResponseOutputBuilder
source§fn eq(&self, other: &GetMethodResponseOutputBuilder) -> bool
fn eq(&self, other: &GetMethodResponseOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.