Interface PutRestApiRequest.Builder
- All Superinterfaces:
ApiGatewayRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutRestApiRequest.Builder,,PutRestApiRequest> SdkBuilder<PutRestApiRequest.Builder,,PutRestApiRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutRestApiRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe PUT request body containing external API definitions.failOnWarnings(Boolean failOnWarnings) A query parameter to indicate whether to rollback the API update (true) or not (false) when a warning is encountered.Themodequery parameter to specify the update mode.Themodequery parameter to specify the update mode.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) Custom header parameters as part of the request.The string identifier of the associated RestApi.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, sdkFields
-
Method Details
-
restApiId
The string identifier of the associated RestApi.
- Parameters:
restApiId- The string identifier of the associated RestApi.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mode
The
modequery parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".- Parameters:
mode- Themodequery parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The
modequery parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".- Parameters:
mode- Themodequery parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failOnWarnings
A query parameter to indicate whether to rollback the API update (
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 update (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
Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set
ignore=documentationas aparametersvalue, as in the AWS CLI command ofaws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.- Parameters:
parameters- Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, setignore=documentationas aparametersvalue, as in the AWS CLI command ofaws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The PUT 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 PUT 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
PutRestApiRequest.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
PutRestApiRequest.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.
-