@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportDocumentationPartsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Import documentation parts from an external (e.g., Swagger) definition file.
NOOP
Constructor and Description |
---|
ImportDocumentationPartsRequest() |
Modifier and Type | Method and Description |
---|---|
ImportDocumentationPartsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ByteBuffer |
getBody()
[Required] Raw byte array representing the to-be-imported documentation parts.
|
Boolean |
getFailOnWarnings()
A query parameter to specify whether to rollback the documentation importation (
true ) or not (
false ) when a warning is encountered. |
String |
getMode()
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 |
getRestApiId()
[Required] The string identifier of the associated RestApi.
|
int |
hashCode() |
Boolean |
isFailOnWarnings()
A query parameter to specify whether to rollback the documentation importation (
true ) or not (
false ) when a warning is encountered. |
void |
setBody(ByteBuffer body)
[Required] Raw byte array representing the to-be-imported documentation parts.
|
void |
setFailOnWarnings(Boolean failOnWarnings)
A query parameter to specify whether to rollback the documentation importation (
true ) or not (
false ) when a warning is encountered. |
void |
setMode(PutMode 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. |
void |
setMode(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. |
void |
setRestApiId(String restApiId)
[Required] The string identifier of the associated RestApi.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ImportDocumentationPartsRequest |
withBody(ByteBuffer body)
[Required] Raw byte array representing the to-be-imported documentation parts.
|
ImportDocumentationPartsRequest |
withFailOnWarnings(Boolean failOnWarnings)
A query parameter to specify whether to rollback the documentation importation (
true ) or not (
false ) when a warning is encountered. |
ImportDocumentationPartsRequest |
withMode(PutMode 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. |
ImportDocumentationPartsRequest |
withMode(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. |
ImportDocumentationPartsRequest |
withRestApiId(String restApiId)
[Required] The string identifier of the associated RestApi.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
[Required] The string identifier of the associated RestApi.
restApiId
- [Required] The string identifier of the associated RestApi.public String getRestApiId()
[Required] The string identifier of the associated RestApi.
public ImportDocumentationPartsRequest withRestApiId(String restApiId)
[Required] The string identifier of the associated RestApi.
restApiId
- [Required] The string identifier of the associated RestApi.public void setMode(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
.
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
.PutMode
public String getMode()
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 ImportDocumentationPartsRequest withMode(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
.
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
.PutMode
public void setMode(PutMode 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
.
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
.PutMode
public ImportDocumentationPartsRequest withMode(PutMode 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
.
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
.PutMode
public void setFailOnWarnings(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
.
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
.public Boolean getFailOnWarnings()
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 ImportDocumentationPartsRequest withFailOnWarnings(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
.
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
.public Boolean isFailOnWarnings()
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 void setBody(ByteBuffer body)
[Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. 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
- [Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger
file, this is a JSON object.public ByteBuffer getBody()
[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 withBody(ByteBuffer body)
[Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. 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
- [Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger
file, this is a JSON object.public String toString()
toString
in class Object
Object.toString()
public ImportDocumentationPartsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.