Struct aws_sdk_apigateway::input::test_invoke_method_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for TestInvokeMethodInput.
Implementations§
source§impl Builder
impl Builder
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.
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 resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
Specifies a test invoke method request's resource ID.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
Specifies a test invoke method request's resource ID.
sourcepub fn http_method(self, input: impl Into<String>) -> Self
pub fn http_method(self, input: impl Into<String>) -> Self
Specifies a test invoke method request's HTTP method.
sourcepub fn set_http_method(self, input: Option<String>) -> Self
pub fn set_http_method(self, input: Option<String>) -> Self
Specifies a test invoke method request's HTTP method.
sourcepub fn path_with_query_string(self, input: impl Into<String>) -> Self
pub fn path_with_query_string(self, input: impl Into<String>) -> Self
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
sourcepub fn set_path_with_query_string(self, input: Option<String>) -> Self
pub fn set_path_with_query_string(self, input: Option<String>) -> Self
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
sourcepub fn body(self, input: impl Into<String>) -> Self
pub fn body(self, input: impl Into<String>) -> Self
The simulated request body of an incoming invocation request.
sourcepub fn set_body(self, input: Option<String>) -> Self
pub fn set_body(self, input: Option<String>) -> Self
The simulated request body of an incoming invocation request.
sourcepub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to headers.
To override the contents of this collection use set_headers.
A key-value map of headers to simulate an incoming invocation request.
sourcepub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of headers to simulate an incoming invocation request.
sourcepub fn multi_value_headers(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn multi_value_headers(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to multi_value_headers.
To override the contents of this collection use set_multi_value_headers.
The headers as a map from string to list of values to simulate an incoming invocation request.
sourcepub fn set_multi_value_headers(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
pub fn set_multi_value_headers(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
The headers as a map from string to list of values to simulate an incoming invocation request.
sourcepub fn client_certificate_id(self, input: impl Into<String>) -> Self
pub fn client_certificate_id(self, input: impl Into<String>) -> Self
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
sourcepub fn set_client_certificate_id(self, input: Option<String>) -> Self
pub fn set_client_certificate_id(self, input: Option<String>) -> Self
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
sourcepub fn stage_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn stage_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to stage_variables.
To override the contents of this collection use set_stage_variables.
A key-value map of stage variables to simulate an invocation on a deployed Stage.
sourcepub fn set_stage_variables(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_stage_variables(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of stage variables to simulate an invocation on a deployed Stage.
sourcepub fn build(self) -> Result<TestInvokeMethodInput, BuildError>
pub fn build(self) -> Result<TestInvokeMethodInput, BuildError>
Consumes the builder and constructs a TestInvokeMethodInput.