@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TestInvokeMethodRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Make a request to simulate the execution of a Method.
NOOP
Constructor and Description |
---|
TestInvokeMethodRequest() |
Modifier and Type | Method and Description |
---|---|
TestInvokeMethodRequest |
addHeadersEntry(String key,
String value) |
TestInvokeMethodRequest |
addStageVariablesEntry(String key,
String value) |
TestInvokeMethodRequest |
clearHeadersEntries()
Removes all the entries added into Headers.
|
TestInvokeMethodRequest |
clearStageVariablesEntries()
Removes all the entries added into StageVariables.
|
TestInvokeMethodRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBody()
The simulated request body of an incoming invocation request.
|
String |
getClientCertificateId()
A ClientCertificate identifier to use in the test invocation.
|
Map<String,String> |
getHeaders()
A key-value map of headers to simulate an incoming invocation request.
|
String |
getHttpMethod()
Specifies a test invoke method request's HTTP method.
|
String |
getPathWithQueryString()
The URI path, including query string, of the simulated invocation request.
|
String |
getResourceId()
Specifies a test invoke method request's resource ID.
|
String |
getRestApiId()
The string identifier of the associated RestApi.
|
Map<String,String> |
getStageVariables()
A key-value map of stage variables to simulate an invocation on a deployed Stage.
|
int |
hashCode() |
void |
setBody(String body)
The simulated request body of an incoming invocation request.
|
void |
setClientCertificateId(String clientCertificateId)
A ClientCertificate identifier to use in the test invocation.
|
void |
setHeaders(Map<String,String> headers)
A key-value map of headers to simulate an incoming invocation request.
|
void |
setHttpMethod(String httpMethod)
Specifies a test invoke method request's HTTP method.
|
void |
setPathWithQueryString(String pathWithQueryString)
The URI path, including query string, of the simulated invocation request.
|
void |
setResourceId(String resourceId)
Specifies a test invoke method request's resource ID.
|
void |
setRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
void |
setStageVariables(Map<String,String> stageVariables)
A key-value map of stage variables to simulate an invocation on a deployed Stage.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TestInvokeMethodRequest |
withBody(String body)
The simulated request body of an incoming invocation request.
|
TestInvokeMethodRequest |
withClientCertificateId(String clientCertificateId)
A ClientCertificate identifier to use in the test invocation.
|
TestInvokeMethodRequest |
withHeaders(Map<String,String> headers)
A key-value map of headers to simulate an incoming invocation request.
|
TestInvokeMethodRequest |
withHttpMethod(String httpMethod)
Specifies a test invoke method request's HTTP method.
|
TestInvokeMethodRequest |
withPathWithQueryString(String pathWithQueryString)
The URI path, including query string, of the simulated invocation request.
|
TestInvokeMethodRequest |
withResourceId(String resourceId)
Specifies a test invoke method request's resource ID.
|
TestInvokeMethodRequest |
withRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
TestInvokeMethodRequest |
withStageVariables(Map<String,String> stageVariables)
A key-value map of stage variables to simulate an invocation on a deployed Stage.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public String getRestApiId()
The string identifier of the associated RestApi.
public TestInvokeMethodRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public void setResourceId(String resourceId)
Specifies a test invoke method request's resource ID.
resourceId
- Specifies a test invoke method request's resource ID.public String getResourceId()
Specifies a test invoke method request's resource ID.
public TestInvokeMethodRequest withResourceId(String resourceId)
Specifies a test invoke method request's resource ID.
resourceId
- Specifies a test invoke method request's resource ID.public void setHttpMethod(String httpMethod)
Specifies a test invoke method request's HTTP method.
httpMethod
- Specifies a test invoke method request's HTTP method.public String getHttpMethod()
Specifies a test invoke method request's HTTP method.
public TestInvokeMethodRequest withHttpMethod(String httpMethod)
Specifies a test invoke method request's HTTP method.
httpMethod
- Specifies a test invoke method request's HTTP method.public void setPathWithQueryString(String pathWithQueryString)
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
pathWithQueryString
- The URI path, including query string, of the simulated invocation request. Use this to specify path
parameters and query string parameters.public String getPathWithQueryString()
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
public TestInvokeMethodRequest withPathWithQueryString(String pathWithQueryString)
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
pathWithQueryString
- The URI path, including query string, of the simulated invocation request. Use this to specify path
parameters and query string parameters.public void setBody(String body)
The simulated request body of an incoming invocation request.
body
- The simulated request body of an incoming invocation request.public String getBody()
The simulated request body of an incoming invocation request.
public TestInvokeMethodRequest withBody(String body)
The simulated request body of an incoming invocation request.
body
- The simulated request body of an incoming invocation request.public Map<String,String> getHeaders()
A key-value map of headers to simulate an incoming invocation request.
public void setHeaders(Map<String,String> headers)
A key-value map of headers to simulate an incoming invocation request.
headers
- A key-value map of headers to simulate an incoming invocation request.public TestInvokeMethodRequest withHeaders(Map<String,String> headers)
A key-value map of headers to simulate an incoming invocation request.
headers
- A key-value map of headers to simulate an incoming invocation request.public TestInvokeMethodRequest addHeadersEntry(String key, String value)
public TestInvokeMethodRequest clearHeadersEntries()
public void setClientCertificateId(String 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.
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 String getClientCertificateId()
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 TestInvokeMethodRequest withClientCertificateId(String 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.
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 Map<String,String> getStageVariables()
A key-value map of stage variables to simulate an invocation on a deployed Stage.
public void setStageVariables(Map<String,String> stageVariables)
A key-value map of stage variables to simulate an invocation on a deployed Stage.
stageVariables
- A key-value map of stage variables to simulate an invocation on a deployed Stage.public TestInvokeMethodRequest withStageVariables(Map<String,String> stageVariables)
A key-value map of stage variables to simulate an invocation on a deployed Stage.
stageVariables
- A key-value map of stage variables to simulate an invocation on a deployed Stage.public TestInvokeMethodRequest addStageVariablesEntry(String key, String value)
public TestInvokeMethodRequest clearStageVariablesEntries()
public String toString()
toString
in class Object
Object.toString()
public TestInvokeMethodRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.