text: ﻿/*
  * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  #pragma once
  #include <aws/apigateway/APIGateway_EXPORTS.h>
  #include <aws/apigateway/APIGatewayRequest.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/memory/stl/AWSMap.h>
  #include <utility>
  
  namespace Aws
  {
  namespace APIGateway
  {
  namespace Model
  {
  
    /**
     * <p>Make a request to simulate the execution of a <a>Method</a>.</p><p><h3>See
     * Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/TestInvokeMethodRequest">AWS
     * API Reference</a></p>
     */
    class AWS_APIGATEWAY_API TestInvokeMethodRequest : public APIGatewayRequest
    {
    public:
      TestInvokeMethodRequest();
      Aws::String SerializePayload() const override;
  
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline TestInvokeMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline TestInvokeMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
  
      /**
       * <p>The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline TestInvokeMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
  
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline const Aws::String& GetResourceId() const{ return m_resourceId; }
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline TestInvokeMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline TestInvokeMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
  
      /**
       * <p>Specifies a test invoke method request's resource ID.</p>
       */
      inline TestInvokeMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
  
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline TestInvokeMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline TestInvokeMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
  
      /**
       * <p>Specifies a test invoke method request's HTTP method.</p>
       */
      inline TestInvokeMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
  
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline const Aws::String& GetPathWithQueryString() const{ return m_pathWithQueryString; }
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline void SetPathWithQueryString(const Aws::String& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; }
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline void SetPathWithQueryString(Aws::String&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = std::move(value); }
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline void SetPathWithQueryString(const char* value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString.assign(value); }
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline TestInvokeMethodRequest& WithPathWithQueryString(const Aws::String& value) { SetPathWithQueryString(value); return *this;}
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline TestInvokeMethodRequest& WithPathWithQueryString(Aws::String&& value) { SetPathWithQueryString(std::move(value)); return *this;}
  
      /**
       * <p>The URI path, including query string, of the simulated invocation request.
       * Use this to specify path parameters and query string parameters.</p>
       */
      inline TestInvokeMethodRequest& WithPathWithQueryString(const char* value) { SetPathWithQueryString(value); return *this;}
  
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline const Aws::String& GetClientCertificateId() const{ return m_clientCertificateId; }
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline void SetClientCertificateId(const Aws::String& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline void SetClientCertificateId(Aws::String&& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = std::move(value); }
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline void SetClientCertificateId(const char* value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId.assign(value); }
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline TestInvokeMethodRequest& WithClientCertificateId(const Aws::String& value) { SetClientCertificateId(value); return *this;}
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline TestInvokeMethodRequest& WithClientCertificateId(Aws::String&& value) { SetClientCertificateId(std::move(value)); return *this;}
  
      /**
       * <p>A <a>ClientCertificate</a> identifier to use in the test invocation. API
       * Gateway will use the certificate when making the HTTPS request to the defined
       * back-end endpoint.</p>
       */
      inline TestInvokeMethodRequest& WithClientCertificateId(const char* value) { SetClientCertificateId(value); return *this;}
  
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const{ return m_stageVariables; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline void SetStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = value; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline void SetStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = std::move(value); }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& WithStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetStageVariables(value); return *this;}
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& WithStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetStageVariables(std::move(value)); return *this;}
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(const Aws::String& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, value); return *this; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), value); return *this; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(const Aws::String& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, std::move(value)); return *this; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), std::move(value)); return *this; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(const char* key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, std::move(value)); return *this; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), value); return *this; }
  
      /**
       * <p>A key-value map of stage variables to simulate an invocation on a deployed
       * <a>Stage</a>.</p>
       */
      inline TestInvokeMethodRequest& AddStageVariables(const char* key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, value); return *this; }
  
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline const Aws::String& GetRequestBody() const{ return m_requestBody; }
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); }
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); }
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;}
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(std::move(value)); return *this;}
  
      /**
       * <p>The simulated request body of an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;}
  
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const{ return m_requestHeaders; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline void SetRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline void SetRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = std::move(value); }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& WithRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestHeaders(value); return *this;}
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& WithRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestHeaders(std::move(value)); return *this;}
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& AddRequestHeaders(const Aws::String& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& AddRequestHeaders(const Aws::String& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), std::move(value)); return *this; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& AddRequestHeaders(const char* key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; }
  
      /**
       * <p>A key-value map of headers to simulate an incoming invocation request.</p>
       */
      inline TestInvokeMethodRequest& 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;
  
      Aws::String m_resourceId;
      bool m_resourceIdHasBeenSet;
  
      Aws::String m_httpMethod;
      bool m_httpMethodHasBeenSet;
  
      Aws::String m_pathWithQueryString;
      bool m_pathWithQueryStringHasBeenSet;
  
      Aws::String m_clientCertificateId;
      bool m_clientCertificateIdHasBeenSet;
  
      Aws::Map<Aws::String, Aws::String> m_stageVariables;
      bool m_stageVariablesHasBeenSet;
  
      Aws::String m_requestBody;
      bool m_requestBodyHasBeenSet;
  
      Aws::Map<Aws::String, Aws::String> m_requestHeaders;
      bool m_requestHeadersHasBeenSet;
    };
  
  } // namespace Model
  } // namespace APIGateway
  } // namespace Aws
  