Interface ImportRestApiRequest.Builder
-
- All Superinterfaces:
ApiGatewayRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<ImportRestApiRequest.Builder,ImportRestApiRequest>,SdkBuilder<ImportRestApiRequest.Builder,ImportRestApiRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ImportRestApiRequest
public static interface ImportRestApiRequest.Builder extends ApiGatewayRequest.Builder, SdkPojo, CopyableBuilder<ImportRestApiRequest.Builder,ImportRestApiRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImportRestApiRequest.Builderbody(SdkBytes body)The POST request body containing external API definitions.ImportRestApiRequest.BuilderfailOnWarnings(Boolean failOnWarnings)A query parameter to indicate whether to rollback the API creation (true) or not (false) when a warning is encountered.ImportRestApiRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ImportRestApiRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ImportRestApiRequest.Builderparameters(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 Detail
-
failOnWarnings
ImportRestApiRequest.Builder failOnWarnings(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 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
ImportRestApiRequest.Builder parameters(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
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
ImportRestApiRequest.Builder body(SdkBytes 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ImportRestApiRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-