Struct aws_sdk_apigateway::operation::test_invoke_method::builders::TestInvokeMethodInputBuilder
source · #[non_exhaustive]pub struct TestInvokeMethodInputBuilder { /* private fields */ }
Expand description
A builder for TestInvokeMethodInput
.
Implementations§
source§impl TestInvokeMethodInputBuilder
impl TestInvokeMethodInputBuilder
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 get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
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 get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
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 get_http_method(&self) -> &Option<String>
pub fn get_http_method(&self) -> &Option<String>
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 get_path_with_query_string(&self) -> &Option<String>
pub fn get_path_with_query_string(&self) -> &Option<String>
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 get_body(&self) -> &Option<String>
pub fn get_body(&self) -> &Option<String>
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 get_headers(&self) -> &Option<HashMap<String, String>>
pub fn get_headers(&self) -> &Option<HashMap<String, String>>
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 get_multi_value_headers(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_multi_value_headers(&self) -> &Option<HashMap<String, Vec<String>>>
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 get_client_certificate_id(&self) -> &Option<String>
pub fn get_client_certificate_id(&self) -> &Option<String>
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 get_stage_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_stage_variables(&self) -> &Option<HashMap<String, String>>
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
.
source§impl TestInvokeMethodInputBuilder
impl TestInvokeMethodInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TestInvokeMethodOutput, SdkError<TestInvokeMethodError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TestInvokeMethodOutput, SdkError<TestInvokeMethodError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TestInvokeMethodInputBuilder
impl Clone for TestInvokeMethodInputBuilder
source§fn clone(&self) -> TestInvokeMethodInputBuilder
fn clone(&self) -> TestInvokeMethodInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestInvokeMethodInputBuilder
impl Debug for TestInvokeMethodInputBuilder
source§impl Default for TestInvokeMethodInputBuilder
impl Default for TestInvokeMethodInputBuilder
source§fn default() -> TestInvokeMethodInputBuilder
fn default() -> TestInvokeMethodInputBuilder
source§impl PartialEq<TestInvokeMethodInputBuilder> for TestInvokeMethodInputBuilder
impl PartialEq<TestInvokeMethodInputBuilder> for TestInvokeMethodInputBuilder
source§fn eq(&self, other: &TestInvokeMethodInputBuilder) -> bool
fn eq(&self, other: &TestInvokeMethodInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.