CopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
, SdkBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
public static interface PutRestApiRequest.Builder extends CopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
Modifier and Type | Method | Description |
---|---|---|
PutRestApiRequest.Builder |
body(ByteBuffer body) |
The PUT request body containing external API definitions.
|
PutRestApiRequest.Builder |
failOnWarnings(Boolean failOnWarnings) |
A query parameter to indicate whether to rollback the API update (
true ) or not (
false ) when a warning is encountered. |
PutRestApiRequest.Builder |
mode(String mode) |
The
mode query parameter to specify the update mode. |
PutRestApiRequest.Builder |
mode(PutMode mode) |
The
mode query parameter to specify the update mode. |
PutRestApiRequest.Builder |
parameters(Map<String,String> parameters) |
Custom headers supplied as part of the request.
|
PutRestApiRequest.Builder |
restApiId(String restApiId) |
The identifier of the RestApi to be updated.
|
copy
apply, build
PutRestApiRequest.Builder restApiId(String restApiId)
The identifier of the RestApi to be updated.
restApiId
- The identifier of the RestApi to be updated.PutRestApiRequest.Builder mode(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
- The mode
query parameter to specify the update mode. Valid values are "merge" and
"overwrite". By default, the update mode is "merge".PutMode
PutRestApiRequest.Builder mode(PutMode mode)
The mode
query parameter to specify the update mode. Valid values are "merge" and "overwrite".
By default, the update mode is "merge".
mode
- The mode
query parameter to specify the update mode. Valid values are "merge" and
"overwrite". By default, the update mode is "merge".PutMode
PutRestApiRequest.Builder failOnWarnings(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
.
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
.PutRestApiRequest.Builder parameters(Map<String,String> parameters)
Custom headers supplied as part of the request.
parameters
- Custom headers supplied as part of the request.PutRestApiRequest.Builder body(ByteBuffer body)
The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported.
body
- The PUT request body containing external API definitions. Currently, only Swagger definition JSON
files are supported.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.