Interface PutRestApiRequest.Builder
-
- All Superinterfaces:
ApiGatewayRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>,SdkBuilder<PutRestApiRequest.Builder,PutRestApiRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutRestApiRequest
public static interface PutRestApiRequest.Builder extends ApiGatewayRequest.Builder, SdkPojo, CopyableBuilder<PutRestApiRequest.Builder,PutRestApiRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutRestApiRequest.Builderbody(SdkBytes body)The PUT request body containing external API definitions.PutRestApiRequest.BuilderfailOnWarnings(Boolean failOnWarnings)A query parameter to indicate whether to rollback the API update (true) or not (false) when a warning is encountered.PutRestApiRequest.Buildermode(String mode)Themodequery parameter to specify the update mode.PutRestApiRequest.Buildermode(PutMode mode)Themodequery parameter to specify the update mode.PutRestApiRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutRestApiRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutRestApiRequest.Builderparameters(Map<String,String> parameters)Custom header parameters as part of the request.PutRestApiRequest.BuilderrestApiId(String restApiId)The string identifier of the associated RestApi.-
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
-
restApiId
PutRestApiRequest.Builder restApiId(String 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
PutRestApiRequest.Builder mode(String mode)
The
modequery parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
-
mode
PutRestApiRequest.Builder mode(PutMode mode)
The
modequery parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
-
failOnWarnings
PutRestApiRequest.Builder failOnWarnings(Boolean 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
PutRestApiRequest.Builder parameters(Map<String,String> 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
PutRestApiRequest.Builder body(SdkBytes 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutRestApiRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-