/* * Copyright 2018-2023 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. */ package com.amazonaws.services.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Make a request to simulate the invocation of a Method. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestInvokeMethodRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The string identifier of the associated RestApi. *
*/ private String restApiId; /** ** Specifies a test invoke method request's resource ID. *
*/ private String resourceId; /** ** Specifies a test invoke method request's HTTP method. *
*/ private String httpMethod; /** ** The URI path, including query string, of the simulated invocation request. Use this to specify path parameters * and query string parameters. *
*/ private String pathWithQueryString; /** ** The simulated request body of an incoming invocation request. *
*/ private String body; /** ** A key-value map of headers to simulate an incoming invocation request. *
*/ private java.util.Map* The headers as a map from string to list of values to simulate an incoming invocation request. *
*/ private java.util.Map* 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. *
*/ private String clientCertificateId; /** ** A key-value map of stage variables to simulate an invocation on a deployed Stage. *
*/ private java.util.Map* The string identifier of the associated RestApi. *
* * @param restApiId * The string identifier of the associated RestApi. */ public void setRestApiId(String restApiId) { this.restApiId = restApiId; } /** ** The string identifier of the associated RestApi. *
* * @return The string identifier of the associated RestApi. */ public String getRestApiId() { return this.restApiId; } /** ** The string identifier of the associated RestApi. *
* * @param restApiId * The string identifier of the associated RestApi. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withRestApiId(String restApiId) { setRestApiId(restApiId); return this; } /** ** Specifies a test invoke method request's resource ID. *
* * @param resourceId * Specifies a test invoke method request's resource ID. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** ** Specifies a test invoke method request's resource ID. *
* * @return Specifies a test invoke method request's resource ID. */ public String getResourceId() { return this.resourceId; } /** ** Specifies a test invoke method request's resource ID. *
* * @param resourceId * Specifies a test invoke method request's resource ID. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** ** Specifies a test invoke method request's HTTP method. *
* * @param httpMethod * Specifies a test invoke method request's HTTP method. */ public void setHttpMethod(String httpMethod) { this.httpMethod = httpMethod; } /** ** Specifies a test invoke method request's HTTP method. *
* * @return Specifies a test invoke method request's HTTP method. */ public String getHttpMethod() { return this.httpMethod; } /** ** Specifies a test invoke method request's HTTP method. *
* * @param httpMethod * Specifies a test invoke method request's HTTP method. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withHttpMethod(String httpMethod) { setHttpMethod(httpMethod); return this; } /** ** The URI path, including query string, of the simulated invocation request. Use this to specify path parameters * and query string parameters. *
* * @param pathWithQueryString * The URI path, including query string, of the simulated invocation request. Use this to specify path * parameters and query string parameters. */ public void setPathWithQueryString(String pathWithQueryString) { this.pathWithQueryString = pathWithQueryString; } /** ** The URI path, including query string, of the simulated invocation request. Use this to specify path parameters * and query string parameters. *
* * @return The URI path, including query string, of the simulated invocation request. Use this to specify path * parameters and query string parameters. */ public String getPathWithQueryString() { return this.pathWithQueryString; } /** ** The URI path, including query string, of the simulated invocation request. Use this to specify path parameters * and query string parameters. *
* * @param pathWithQueryString * The URI path, including query string, of the simulated invocation request. Use this to specify path * parameters and query string parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withPathWithQueryString(String pathWithQueryString) { setPathWithQueryString(pathWithQueryString); return this; } /** ** The simulated request body of an incoming invocation request. *
* * @param body * The simulated request body of an incoming invocation request. */ public void setBody(String body) { this.body = body; } /** ** The simulated request body of an incoming invocation request. *
* * @return The simulated request body of an incoming invocation request. */ public String getBody() { return this.body; } /** ** The simulated request body of an incoming invocation request. *
* * @param body * The simulated request body of an incoming invocation request. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withBody(String body) { setBody(body); return this; } /** ** A key-value map of headers to simulate an incoming invocation request. *
* * @return A key-value map of headers to simulate an incoming invocation request. */ public java.util.Map* A key-value map of headers to simulate an incoming invocation request. *
* * @param headers * A key-value map of headers to simulate an incoming invocation request. */ public void setHeaders(java.util.Map* A key-value map of headers to simulate an incoming invocation request. *
* * @param headers * A key-value map of headers to simulate an incoming invocation request. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withHeaders(java.util.Map* The headers as a map from string to list of values to simulate an incoming invocation request. *
* * @return The headers as a map from string to list of values to simulate an incoming invocation request. */ public java.util.Map* The headers as a map from string to list of values to simulate an incoming invocation request. *
* * @param multiValueHeaders * The headers as a map from string to list of values to simulate an incoming invocation request. */ public void setMultiValueHeaders(java.util.Map* The headers as a map from string to list of values to simulate an incoming invocation request. *
* * @param multiValueHeaders * The headers as a map from string to list of values to simulate an incoming invocation request. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withMultiValueHeaders(java.util.Map* 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. *
* * @param clientCertificateId * 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. */ public void setClientCertificateId(String clientCertificateId) { this.clientCertificateId = clientCertificateId; } /** ** 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. *
* * @return 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. */ public String getClientCertificateId() { return this.clientCertificateId; } /** ** 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. *
* * @param clientCertificateId * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withClientCertificateId(String clientCertificateId) { setClientCertificateId(clientCertificateId); return this; } /** ** A key-value map of stage variables to simulate an invocation on a deployed Stage. *
* * @return A key-value map of stage variables to simulate an invocation on a deployed Stage. */ public java.util.Map* A key-value map of stage variables to simulate an invocation on a deployed Stage. *
* * @param stageVariables * A key-value map of stage variables to simulate an invocation on a deployed Stage. */ public void setStageVariables(java.util.Map* A key-value map of stage variables to simulate an invocation on a deployed Stage. *
* * @param stageVariables * A key-value map of stage variables to simulate an invocation on a deployed Stage. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeMethodRequest withStageVariables(java.util.Map