Interface InterceptorConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InterceptorConfiguration.Builder,,InterceptorConfiguration> SdkBuilder<InterceptorConfiguration.Builder,,InterceptorConfiguration> SdkPojo
- Enclosing class:
InterceptorConfiguration
@Mutable
@NotThreadSafe
public static interface InterceptorConfiguration.Builder
extends SdkPojo, CopyableBuilder<InterceptorConfiguration.Builder,InterceptorConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InterceptorConfiguration.BuilderThe details of the lambda function used for the interceptor.lambda(LambdaInterceptorConfiguration lambda) The details of the lambda function used for the interceptor.Methods 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
-
lambda
The details of the lambda function used for the interceptor.
- Parameters:
lambda- The details of the lambda function used for the interceptor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambda
default InterceptorConfiguration.Builder lambda(Consumer<LambdaInterceptorConfiguration.Builder> lambda) The details of the lambda function used for the interceptor.
This is a convenience method that creates an instance of theLambdaInterceptorConfiguration.Builderavoiding the need to create one manually viaLambdaInterceptorConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambda(LambdaInterceptorConfiguration).- Parameters:
lambda- a consumer that will call methods onLambdaInterceptorConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-