Cloneable, ReadLimitInfo, ToCopyableBuilder<ImportRestApiRequest.Builder,ImportRestApiRequest>@Generated("software.amazon.awssdk:codegen") public class ImportRestApiRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<ImportRestApiRequest.Builder,ImportRestApiRequest>
A POST request to import an API to Amazon API Gateway using an input of an API definition file.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
ImportRestApiRequest.Builder |
NOOP| Modifier and Type | Method | Description |
|---|---|---|
ByteBuffer |
body() |
The POST request body containing external API definitions.
|
static ImportRestApiRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
Boolean |
failOnWarnings() |
A query parameter to indicate whether to rollback the API creation (
true) or not (false
) when a warning is encountered. |
int |
hashCode() |
|
Map<String,String> |
parameters() |
Custom header parameters as part of the request.
|
static Class<? extends ImportRestApiRequest.Builder> |
serializableBuilderClass() |
|
ImportRestApiRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeoutpublic 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.
true) or not (
false) when a warning is encountered. The default value is false.public Map<String,String> parameters()
Custom header parameters as part of the request.
public ByteBuffer body()
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.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<ImportRestApiRequest.Builder,ImportRestApiRequest>public static ImportRestApiRequest.Builder builder()
public static Class<? extends ImportRestApiRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.