Cloneable
, ReadLimitInfo
, ToCopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
@Generated("software.amazon.awssdk:codegen") public class PutRestApiRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
A PUT request to update an existing API, with external API definitions specified as the request body.
Modifier and Type | Class | Description |
---|---|---|
static interface |
PutRestApiRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
ByteBuffer |
body() |
The PUT request body containing external API definitions.
|
static PutRestApiRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
Boolean |
failOnWarnings() |
A query parameter to indicate whether to rollback the API update (
true ) or not (false )
when a warning is encountered. |
int |
hashCode() |
|
String |
mode() |
The
mode query parameter to specify the update mode. |
Map<String,String> |
parameters() |
Custom headers supplied as part of the request.
|
String |
restApiId() |
The identifier of the RestApi to be updated.
|
static Class<? extends PutRestApiRequest.Builder> |
serializableBuilderClass() |
|
PutRestApiRequest.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, withSdkClientExecutionTimeout
public String restApiId()
The identifier of the RestApi to be updated.
public String mode()
The mode
query parameter to specify the update mode. Valid values are "merge" and "overwrite". By
default, the update mode is "merge".
mode
query parameter to specify the update mode. Valid values are "merge" and
"overwrite". By default, the update mode is "merge".PutMode
public Boolean failOnWarnings()
A query parameter to indicate whether to rollback the API update (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 headers supplied as part of the request.
public ByteBuffer body()
The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported.
ByteBuffer
s 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 PutRestApiRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
public static PutRestApiRequest.Builder builder()
public static Class<? extends PutRestApiRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.