@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportRestApiRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A POST request to import an API to API Gateway using an input of an API definition file.
NOOP
Constructor and Description |
---|
ImportRestApiRequest() |
Modifier and Type | Method and Description |
---|---|
ImportRestApiRequest |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
ImportRestApiRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
ImportRestApiRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ByteBuffer |
getBody()
The POST request body containing external API definitions.
|
Boolean |
getFailOnWarnings()
A query parameter to indicate whether to rollback the API creation (
true ) or not (false
) when a warning is encountered. |
Map<String,String> |
getParameters()
A key-value map of context-specific query string parameters specifying the behavior of different API importing
operations.
|
int |
hashCode() |
Boolean |
isFailOnWarnings()
A query parameter to indicate whether to rollback the API creation (
true ) or not (false
) when a warning is encountered. |
void |
setBody(ByteBuffer body)
The POST request body containing external API definitions.
|
void |
setFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback the API creation (
true ) or not (false
) when a warning is encountered. |
void |
setParameters(Map<String,String> parameters)
A key-value map of context-specific query string parameters specifying the behavior of different API importing
operations.
|
String |
toString()
Returns a string representation of this object.
|
ImportRestApiRequest |
withBody(ByteBuffer body)
The POST request body containing external API definitions.
|
ImportRestApiRequest |
withFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback the API creation (
true ) or not (false
) when a warning is encountered. |
ImportRestApiRequest |
withParameters(Map<String,String> parameters)
A key-value map of context-specific query string parameters specifying the behavior of different API importing
operations.
|
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 setFailOnWarnings(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
.
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
.public Boolean getFailOnWarnings()
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 ImportRestApiRequest withFailOnWarnings(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
.
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
.public Boolean isFailOnWarnings()
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> getParameters()
A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as ignore=documentation
.
To configure the endpoint type, set parameters
as endpointConfigurationTypes=EDGE
,
endpointConfigurationTypes=REGIONAL
, or endpointConfigurationTypes=PRIVATE
. The default
endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
,
basepath=prepend
or basepath=split
.
To exclude DocumentationParts from the import, set parameters
as
ignore=documentation
.
To configure the endpoint type, set parameters
as
endpointConfigurationTypes=EDGE
, endpointConfigurationTypes=REGIONAL
, or
endpointConfigurationTypes=PRIVATE
. The default endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
,
basepath=prepend
or basepath=split
.
public void setParameters(Map<String,String> parameters)
A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as ignore=documentation
.
To configure the endpoint type, set parameters
as endpointConfigurationTypes=EDGE
,
endpointConfigurationTypes=REGIONAL
, or endpointConfigurationTypes=PRIVATE
. The default
endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
,
basepath=prepend
or basepath=split
.
parameters
- A key-value map of context-specific query string parameters specifying the behavior of different API
importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as
ignore=documentation
.
To configure the endpoint type, set parameters
as
endpointConfigurationTypes=EDGE
, endpointConfigurationTypes=REGIONAL
, or
endpointConfigurationTypes=PRIVATE
. The default endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
,
basepath=prepend
or basepath=split
.
public ImportRestApiRequest withParameters(Map<String,String> parameters)
A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as ignore=documentation
.
To configure the endpoint type, set parameters
as endpointConfigurationTypes=EDGE
,
endpointConfigurationTypes=REGIONAL
, or endpointConfigurationTypes=PRIVATE
. The default
endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
,
basepath=prepend
or basepath=split
.
parameters
- A key-value map of context-specific query string parameters specifying the behavior of different API
importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as
ignore=documentation
.
To configure the endpoint type, set parameters
as
endpointConfigurationTypes=EDGE
, endpointConfigurationTypes=REGIONAL
, or
endpointConfigurationTypes=PRIVATE
. The default endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
,
basepath=prepend
or basepath=split
.
public ImportRestApiRequest addParametersEntry(String key, String value)
public ImportRestApiRequest clearParametersEntries()
public void setBody(ByteBuffer body)
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
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
- The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML
files are supported. The maximum size of the API definition file is 6MB.public ByteBuffer getBody()
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
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 ImportRestApiRequest withBody(ByteBuffer body)
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
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
- The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML
files are supported. The maximum size of the API definition file is 6MB.public String toString()
toString
in class Object
Object.toString()
public ImportRestApiRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()