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
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
parametersasignore=documentation.To configure the endpoint type, set
parametersasendpointConfigurationTypes=EDGE,endpointConfigurationTypes=REGIONAL, orendpointConfigurationTypes=PRIVATE. The default endpoint type isEDGE.To handle imported
basepath, setparametersasbasepath=ignore,basepath=prependorbasepath=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
parametersasignore=documentation.To configure the endpoint type, set
parametersasendpointConfigurationTypes=EDGE,endpointConfigurationTypes=REGIONAL, orendpointConfigurationTypes=PRIVATE. The default endpoint type isEDGE.To handle imported
basepath, setparametersasbasepath=ignore,basepath=prependorbasepath=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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-