@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportRestApiRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A POST request to import an API to Amazon API Gateway using an input of an API definition file.
NOOP| Constructor and Description |
|---|
ImportRestApiRequest() |
| Modifier and Type | Method and Description |
|---|---|
ImportRestApiRequest |
addParametersEntry(String key,
String value) |
ImportRestApiRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
ImportRestApiRequest |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBody()
The POST request body containing external API definitions.
|
Boolean |
getFailOnWarnings()
A query parameter to indicate whether to rollback the API creation (
true) or not (false
) when a warning is encountered. |
Map<String,String> |
getParameters()
Custom header parameters as part of the request.
|
int |
hashCode() |
Boolean |
isFailOnWarnings()
A query parameter to indicate whether to rollback the API creation (
true) or not (false
) when a warning is encountered. |
void |
setBody(ByteBuffer body)
The POST request body containing external API definitions.
|
void |
setFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback the API creation (
true) or not (false
) when a warning is encountered. |
void |
setParameters(Map<String,String> parameters)
Custom header parameters as part of the request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ImportRestApiRequest |
withBody(ByteBuffer body)
The POST request body containing external API definitions.
|
ImportRestApiRequest |
withFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback the API creation (
true) or not (false
) when a warning is encountered. |
ImportRestApiRequest |
withParameters(Map<String,String> parameters)
Custom header parameters as part of the request.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback the API creation (true) or not (false
) when a warning is encountered. The default value is false.
failOnWarnings - A query parameter to indicate whether to rollback the API creation (true) or not (
false) when a warning is encountered. The default value is false.public Boolean getFailOnWarnings()
A query parameter to indicate whether to rollback the API creation (true) or not (false
) when a warning is encountered. The default value is false.
true) or not (
false) when a warning is encountered. The default value is false.public ImportRestApiRequest withFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback the API creation (true) or not (false
) when a warning is encountered. The default value is false.
failOnWarnings - A query parameter to indicate whether to rollback the API creation (true) or not (
false) when a warning is encountered. The default value is false.public Boolean isFailOnWarnings()
A query parameter to indicate whether to rollback the API creation (true) or not (false
) when a warning is encountered. The default value is false.
true) or not (
false) when a warning is encountered. The default value is false.public Map<String,String> getParameters()
Custom header parameters as part of the request.
public void setParameters(Map<String,String> parameters)
Custom header parameters as part of the request.
parameters - Custom header parameters as part of the request.public ImportRestApiRequest withParameters(Map<String,String> parameters)
Custom header parameters as part of the request.
parameters - Custom header parameters as part of the request.public ImportRestApiRequest addParametersEntry(String key, String value)
public ImportRestApiRequest clearParametersEntries()
public void setBody(ByteBuffer body)
The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
body - The POST request body containing external API definitions. Currently, only Swagger definition JSON files
are supported.public ByteBuffer getBody()
The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer.
Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public ImportRestApiRequest withBody(ByteBuffer body)
The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.
body - The POST request body containing external API definitions. Currently, only Swagger definition JSON files
are supported.public String toString()
toString in class ObjectObject.toString()public ImportRestApiRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2017. All rights reserved.