/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Make a request to simulate the invocation of an Authorizer.See
* Also:
AWS
* API Reference
The string identifier of the associated RestApi.
*/ inline const Aws::String& GetRestApiId() const{ return m_restApiId; } /** *The string identifier of the associated RestApi.
*/ inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; } /** *The string identifier of the associated RestApi.
*/ inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; } /** *The string identifier of the associated RestApi.
*/ inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); } /** *The string identifier of the associated RestApi.
*/ inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); } /** *The string identifier of the associated RestApi.
*/ inline TestInvokeAuthorizerRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;} /** *The string identifier of the associated RestApi.
*/ inline TestInvokeAuthorizerRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;} /** *The string identifier of the associated RestApi.
*/ inline TestInvokeAuthorizerRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;} /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; } /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; } /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; } /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); } /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); } /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline TestInvokeAuthorizerRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;} /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline TestInvokeAuthorizerRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;} /** *Specifies a test invoke authorizer request's Authorizer ID.
*/ inline TestInvokeAuthorizerRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;} /** *The headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline const Aws::MapThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline bool MultiValueHeadersHasBeenSet() const { return m_multiValueHeadersHasBeenSet; } /** *The headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline void SetMultiValueHeaders(const Aws::MapThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline void SetMultiValueHeaders(Aws::MapThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& WithMultiValueHeaders(const Aws::MapThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& WithMultiValueHeaders(Aws::MapThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& AddMultiValueHeaders(const Aws::String& key, const Aws::VectorThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& AddMultiValueHeaders(Aws::String&& key, const Aws::VectorThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& AddMultiValueHeaders(const Aws::String& key, Aws::VectorThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& AddMultiValueHeaders(Aws::String&& key, Aws::VectorThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& AddMultiValueHeaders(const char* key, Aws::VectorThe headers as a map from string to list of values to simulate an incoming * invocation request. This is where the incoming authorization token, or identity * source, may be specified.
*/ inline TestInvokeAuthorizerRequest& AddMultiValueHeaders(const char* key, const Aws::VectorThe URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline const Aws::String& GetPathWithQueryString() const{ return m_pathWithQueryString; } /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline bool PathWithQueryStringHasBeenSet() const { return m_pathWithQueryStringHasBeenSet; } /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline void SetPathWithQueryString(const Aws::String& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; } /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline void SetPathWithQueryString(Aws::String&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = std::move(value); } /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline void SetPathWithQueryString(const char* value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString.assign(value); } /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline TestInvokeAuthorizerRequest& WithPathWithQueryString(const Aws::String& value) { SetPathWithQueryString(value); return *this;} /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline TestInvokeAuthorizerRequest& WithPathWithQueryString(Aws::String&& value) { SetPathWithQueryString(std::move(value)); return *this;} /** *The URI path, including query string, of the simulated invocation request. * Use this to specify path parameters and query string parameters.
*/ inline TestInvokeAuthorizerRequest& WithPathWithQueryString(const char* value) { SetPathWithQueryString(value); return *this;} /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline const Aws::MapA key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline bool StageVariablesHasBeenSet() const { return m_stageVariablesHasBeenSet; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline void SetStageVariables(const Aws::MapA key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline void SetStageVariables(Aws::MapA key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& WithStageVariables(const Aws::MapA key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& WithStageVariables(Aws::MapA key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(const Aws::String& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, value); return *this; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(Aws::String&& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), value); return *this; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(const Aws::String& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, std::move(value)); return *this; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(Aws::String&& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), std::move(value)); return *this; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(const char* key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, std::move(value)); return *this; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(Aws::String&& key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), value); return *this; } /** *A key-value map of stage variables to simulate an invocation on a deployed * Stage.
*/ inline TestInvokeAuthorizerRequest& AddStageVariables(const char* key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, value); return *this; } /** *A key-value map of additional context variables.
*/ inline const Aws::MapA key-value map of additional context variables.
*/ inline bool AdditionalContextHasBeenSet() const { return m_additionalContextHasBeenSet; } /** *A key-value map of additional context variables.
*/ inline void SetAdditionalContext(const Aws::MapA key-value map of additional context variables.
*/ inline void SetAdditionalContext(Aws::MapA key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& WithAdditionalContext(const Aws::MapA key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& WithAdditionalContext(Aws::MapA key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(const Aws::String& key, const Aws::String& value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(key, value); return *this; } /** *A key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(Aws::String&& key, const Aws::String& value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(std::move(key), value); return *this; } /** *A key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(const Aws::String& key, Aws::String&& value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(key, std::move(value)); return *this; } /** *A key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(Aws::String&& key, Aws::String&& value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(std::move(key), std::move(value)); return *this; } /** *A key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(const char* key, Aws::String&& value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(key, std::move(value)); return *this; } /** *A key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(Aws::String&& key, const char* value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(std::move(key), value); return *this; } /** *A key-value map of additional context variables.
*/ inline TestInvokeAuthorizerRequest& AddAdditionalContext(const char* key, const char* value) { m_additionalContextHasBeenSet = true; m_additionalContext.emplace(key, value); return *this; } /** *The simulated request body of an incoming invocation request.
*/ inline const Aws::String& GetRequestBody() const{ return m_requestBody; } /** *The simulated request body of an incoming invocation request.
*/ inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; } /** *The simulated request body of an incoming invocation request.
*/ inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; } /** *The simulated request body of an incoming invocation request.
*/ inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); } /** *The simulated request body of an incoming invocation request.
*/ inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); } /** *The simulated request body of an incoming invocation request.
*/ inline TestInvokeAuthorizerRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;} /** *The simulated request body of an incoming invocation request.
*/ inline TestInvokeAuthorizerRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(std::move(value)); return *this;} /** *The simulated request body of an incoming invocation request.
*/ inline TestInvokeAuthorizerRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;} /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline const Aws::MapA key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline void SetRequestHeaders(const Aws::MapA key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline void SetRequestHeaders(Aws::MapA key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& WithRequestHeaders(const Aws::MapA key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& WithRequestHeaders(Aws::MapA key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(const Aws::String& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(Aws::String&& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(const Aws::String& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(Aws::String&& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), std::move(value)); return *this; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(const char* key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(Aws::String&& key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; } /** *A key-value map of headers to simulate an incoming invocation request. This * is where the incoming authorization token, or identity source, should be * specified.
*/ inline TestInvokeAuthorizerRequest& AddRequestHeaders(const char* key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; } private: Aws::String m_restApiId; bool m_restApiIdHasBeenSet = false; Aws::String m_authorizerId; bool m_authorizerIdHasBeenSet = false; Aws::Map