Interface RuntimeVersionConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuntimeVersionConfig.Builder,RuntimeVersionConfig>,SdkBuilder<RuntimeVersionConfig.Builder,RuntimeVersionConfig>,SdkPojo
- Enclosing class:
- RuntimeVersionConfig
@Mutable @NotThreadSafe public static interface RuntimeVersionConfig.Builder extends SdkPojo, CopyableBuilder<RuntimeVersionConfig.Builder,RuntimeVersionConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuntimeVersionConfig.Buildererror(Consumer<RuntimeVersionError.Builder> error)Error response when Lambda is unable to retrieve the runtime version for a function.RuntimeVersionConfig.Buildererror(RuntimeVersionError error)Error response when Lambda is unable to retrieve the runtime version for a function.RuntimeVersionConfig.BuilderruntimeVersionArn(String runtimeVersionArn)The ARN of the runtime version you want the function to use.-
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
-
runtimeVersionArn
RuntimeVersionConfig.Builder runtimeVersionArn(String runtimeVersionArn)
The ARN of the runtime version you want the function to use.
- Parameters:
runtimeVersionArn- The ARN of the runtime version you want the function to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
RuntimeVersionConfig.Builder error(RuntimeVersionError error)
Error response when Lambda is unable to retrieve the runtime version for a function.
- Parameters:
error- Error response when Lambda is unable to retrieve the runtime version for a function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default RuntimeVersionConfig.Builder error(Consumer<RuntimeVersionError.Builder> error)
Error response when Lambda is unable to retrieve the runtime version for a function.
This is a convenience method that creates an instance of theRuntimeVersionError.Builderavoiding the need to create one manually viaRuntimeVersionError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(RuntimeVersionError).- Parameters:
error- a consumer that will call methods onRuntimeVersionError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
error(RuntimeVersionError)
-
-