Cloneable
, ReadLimitInfo
, ToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>
@Generated("software.amazon.awssdk:codegen") public class ImportDocumentationPartsRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>
Import documentation parts from an external (e.g., Swagger) definition file.
Modifier and Type | Class | Description |
---|---|---|
static interface |
ImportDocumentationPartsRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
ByteBuffer |
body() |
[Required] Raw byte array representing the to-be-imported documentation parts.
|
static ImportDocumentationPartsRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
Boolean |
failOnWarnings() |
A query parameter to specify whether to rollback the documentation importation (
true ) or not (
false ) when a warning is encountered. |
int |
hashCode() |
|
String |
mode() |
A query parameter to indicate whether to overwrite (
OVERWRITE ) any existing
DocumentationParts definition or to merge (MERGE ) the new definition into the existing one. |
String |
restApiId() |
[Required] The identifier of an API of the to-be-imported documentation parts.
|
static Class<? extends ImportDocumentationPartsRequest.Builder> |
serializableBuilderClass() |
|
ImportDocumentationPartsRequest.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()
[Required] The identifier of an API of the to-be-imported documentation parts.
public String mode()
A query parameter to indicate whether to overwrite (OVERWRITE
) any existing
DocumentationParts definition or to merge (MERGE
) the new definition into the existing one.
The default value is MERGE
.
OVERWRITE
) any existing
DocumentationParts definition or to merge (MERGE
) the new definition into the
existing one. The default value is MERGE
.PutMode
public Boolean failOnWarnings()
A query parameter to specify whether to rollback the documentation importation (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 ByteBuffer body()
[Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object.
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 ImportDocumentationPartsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>
public static ImportDocumentationPartsRequest.Builder builder()
public static Class<? extends ImportDocumentationPartsRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.