Interface RuntimeVersionConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RuntimeVersionConfig.Builder,,RuntimeVersionConfig> SdkBuilder<RuntimeVersionConfig.Builder,,RuntimeVersionConfig> SdkPojo
- Enclosing class:
RuntimeVersionConfig
public static interface RuntimeVersionConfig.Builder
extends SdkPojo, CopyableBuilder<RuntimeVersionConfig.Builder,RuntimeVersionConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuntimeVersionConfig.Buildererror(Consumer<RuntimeVersionError.Builder> error) Error response when Lambda is unable to retrieve the runtime version for a function.error(RuntimeVersionError error) Error response when Lambda is unable to retrieve the runtime version for a function.runtimeVersionArn(String runtimeVersionArn) The ARN of the runtime version you want the function to use.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, sdkFields
-
Method Details
-
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
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
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:
-