public class TestInvokeMethodRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Make a request to simulate the execution of a Method.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
body
The simulated request body of an incoming invocation request.
|
private java.lang.String |
clientCertificateId
A ClientCertificate identifier to use in the test invocation.
|
private java.util.Map<java.lang.String,java.lang.String> |
headers
A key-value map of headers to simulate an incoming invocation request.
|
private java.lang.String |
httpMethod
Specifies a test invoke method request's HTTP method.
|
private java.lang.String |
pathWithQueryString
The URI path, including query string, of the simulated invocation
request.
|
private java.lang.String |
resourceId
Specifies a test invoke method request's resource ID.
|
private java.lang.String |
restApiId
Specifies a test invoke method request's API identifier.
|
private java.util.Map<java.lang.String,java.lang.String> |
stageVariables
A key-value map of stage variables to simulate an invocation on a
deployed Stage.
|
NOOP
Constructor and Description |
---|
TestInvokeMethodRequest() |
Modifier and Type | Method and Description |
---|---|
TestInvokeMethodRequest |
addHeadersEntry(java.lang.String key,
java.lang.String value) |
TestInvokeMethodRequest |
addStageVariablesEntry(java.lang.String key,
java.lang.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 request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBody()
The simulated request body of an incoming invocation request.
|
java.lang.String |
getClientCertificateId()
A ClientCertificate identifier to use in the test invocation.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
A key-value map of headers to simulate an incoming invocation request.
|
java.lang.String |
getHttpMethod()
Specifies a test invoke method request's HTTP method.
|
java.lang.String |
getPathWithQueryString()
The URI path, including query string, of the simulated invocation
request.
|
java.lang.String |
getResourceId()
Specifies a test invoke method request's resource ID.
|
java.lang.String |
getRestApiId()
Specifies a test invoke method request's API identifier.
|
java.util.Map<java.lang.String,java.lang.String> |
getStageVariables()
A key-value map of stage variables to simulate an invocation on a
deployed Stage.
|
int |
hashCode() |
void |
setBody(java.lang.String body)
The simulated request body of an incoming invocation request.
|
void |
setClientCertificateId(java.lang.String clientCertificateId)
A ClientCertificate identifier to use in the test invocation.
|
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
A key-value map of headers to simulate an incoming invocation request.
|
void |
setHttpMethod(java.lang.String httpMethod)
Specifies a test invoke method request's HTTP method.
|
void |
setPathWithQueryString(java.lang.String pathWithQueryString)
The URI path, including query string, of the simulated invocation
request.
|
void |
setResourceId(java.lang.String resourceId)
Specifies a test invoke method request's resource ID.
|
void |
setRestApiId(java.lang.String restApiId)
Specifies a test invoke method request's API identifier.
|
void |
setStageVariables(java.util.Map<java.lang.String,java.lang.String> stageVariables)
A key-value map of stage variables to simulate an invocation on a
deployed Stage.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestInvokeMethodRequest |
withBody(java.lang.String body)
The simulated request body of an incoming invocation request.
|
TestInvokeMethodRequest |
withClientCertificateId(java.lang.String clientCertificateId)
A ClientCertificate identifier to use in the test invocation.
|
TestInvokeMethodRequest |
withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
A key-value map of headers to simulate an incoming invocation request.
|
TestInvokeMethodRequest |
withHttpMethod(java.lang.String httpMethod)
Specifies a test invoke method request's HTTP method.
|
TestInvokeMethodRequest |
withPathWithQueryString(java.lang.String pathWithQueryString)
The URI path, including query string, of the simulated invocation
request.
|
TestInvokeMethodRequest |
withResourceId(java.lang.String resourceId)
Specifies a test invoke method request's resource ID.
|
TestInvokeMethodRequest |
withRestApiId(java.lang.String restApiId)
Specifies a test invoke method request's API identifier.
|
TestInvokeMethodRequest |
withStageVariables(java.util.Map<java.lang.String,java.lang.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
private java.lang.String restApiId
Specifies a test invoke method request's API identifier.
private java.lang.String resourceId
Specifies a test invoke method request's resource ID.
private java.lang.String httpMethod
Specifies a test invoke method request's HTTP method.
private java.lang.String pathWithQueryString
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
private java.lang.String body
The simulated request body of an incoming invocation request.
private java.util.Map<java.lang.String,java.lang.String> headers
A key-value map of headers to simulate an incoming invocation request.
private java.lang.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.
private java.util.Map<java.lang.String,java.lang.String> stageVariables
A key-value map of stage variables to simulate an invocation on a deployed Stage.
public void setRestApiId(java.lang.String restApiId)
Specifies a test invoke method request's API identifier.
restApiId
- Specifies a test invoke method request's API identifier.public java.lang.String getRestApiId()
Specifies a test invoke method request's API identifier.
public TestInvokeMethodRequest withRestApiId(java.lang.String restApiId)
Specifies a test invoke method request's API identifier.
restApiId
- Specifies a test invoke method request's API identifier.public void setResourceId(java.lang.String resourceId)
Specifies a test invoke method request's resource ID.
resourceId
- Specifies a test invoke method request's resource ID.public java.lang.String getResourceId()
Specifies a test invoke method request's resource ID.
public TestInvokeMethodRequest withResourceId(java.lang.String resourceId)
Specifies a test invoke method request's resource ID.
resourceId
- Specifies a test invoke method request's resource ID.public void setHttpMethod(java.lang.String httpMethod)
Specifies a test invoke method request's HTTP method.
httpMethod
- Specifies a test invoke method request's HTTP method.public java.lang.String getHttpMethod()
Specifies a test invoke method request's HTTP method.
public TestInvokeMethodRequest withHttpMethod(java.lang.String httpMethod)
Specifies a test invoke method request's HTTP method.
httpMethod
- Specifies a test invoke method request's HTTP method.public void setPathWithQueryString(java.lang.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 java.lang.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(java.lang.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(java.lang.String body)
The simulated request body of an incoming invocation request.
body
- The simulated request body of an incoming invocation request.public java.lang.String getBody()
The simulated request body of an incoming invocation request.
public TestInvokeMethodRequest withBody(java.lang.String body)
The simulated request body of an incoming invocation request.
body
- The simulated request body of an incoming invocation request.public java.util.Map<java.lang.String,java.lang.String> getHeaders()
A key-value map of headers to simulate an incoming invocation request.
public void setHeaders(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.String value)
public TestInvokeMethodRequest clearHeadersEntries()
public void setClientCertificateId(java.lang.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 java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getStageVariables()
A key-value map of stage variables to simulate an invocation on a deployed Stage.
public void setStageVariables(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.String value)
public TestInvokeMethodRequest clearStageVariablesEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TestInvokeMethodRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()