Interface ImportRestApiRequest.Builder
- All Superinterfaces:
ApiGatewayRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<ImportRestApiRequest.Builder,
,ImportRestApiRequest> SdkBuilder<ImportRestApiRequest.Builder,
,ImportRestApiRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ImportRestApiRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe POST request body containing external API definitions.failOnWarnings
(Boolean failOnWarnings) A query parameter to indicate whether to rollback the API creation (true
) or not (false
) when a warning is encountered.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parameters
(Map<String, String> parameters) A key-value map of context-specific query string parameters specifying the behavior of different API importing operations.Methods inherited from interface software.amazon.awssdk.services.apigateway.model.ApiGatewayRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
failOnWarnings
A query parameter to indicate whether to rollback the API creation (
true
) or not (false
) when a warning is encountered. The default value isfalse
.- Parameters:
failOnWarnings
- A query parameter to indicate whether to rollback the API creation (true
) or not (false
) when a warning is encountered. The default value isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
asignore=documentation
.To configure the endpoint type, set
parameters
asendpointConfigurationTypes=EDGE
,endpointConfigurationTypes=REGIONAL
, orendpointConfigurationTypes=PRIVATE
. The default endpoint type isEDGE
.To handle imported
basepath
, setparameters
asbasepath=ignore
,basepath=prepend
orbasepath=split
.- Parameters:
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
asignore=documentation
.To configure the endpoint type, set
parameters
asendpointConfigurationTypes=EDGE
,endpointConfigurationTypes=REGIONAL
, orendpointConfigurationTypes=PRIVATE
. The default endpoint type isEDGE
.To handle imported
basepath
, setparameters
asbasepath=ignore
,basepath=prepend
orbasepath=split
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ImportRestApiRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ImportRestApiRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-