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() |
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()
Specifies a test invoke method request's API identifier.
|
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)
Specifies a test invoke method request's API identifier.
|
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)
Specifies a test invoke method request's API identifier.
|
TestInvokeMethodRequest |
withStageVariables(Map<String,String> stageVariables)
A key-value map of stage variables to simulate an invocation on a
deployed Stage.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
Specifies a test invoke method request's API identifier.
restApiId
- Specifies a test invoke method request's API identifier.public String getRestApiId()
Specifies a test invoke method request's API identifier.
public TestInvokeMethodRequest withRestApiId(String restApiId)
Specifies a test invoke method request's API identifier.
restApiId
- Specifies a test invoke method request's API identifier.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 use the certificate when making the HTTPS request to the defined backend endpoint.
clientCertificateId
- A ClientCertificate identifier to use in the test
invocation. API Gateway will use use the certificate when making
the HTTPS request to the defined backend endpoint.public String getClientCertificateId()
A ClientCertificate identifier to use in the test invocation. API Gateway will use use the certificate when making the HTTPS request to the defined backend endpoint.
public TestInvokeMethodRequest withClientCertificateId(String clientCertificateId)
A ClientCertificate identifier to use in the test invocation. API Gateway will use use the certificate when making the HTTPS request to the defined backend endpoint.
clientCertificateId
- A ClientCertificate identifier to use in the test
invocation. API Gateway will use use the certificate when making
the HTTPS request to the defined backend 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()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.