Interface CodeHookSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeHookSpecification.Builder,
,CodeHookSpecification> SdkBuilder<CodeHookSpecification.Builder,
,CodeHookSpecification> SdkPojo
- Enclosing class:
CodeHookSpecification
public static interface CodeHookSpecification.Builder
extends SdkPojo, CopyableBuilder<CodeHookSpecification.Builder,CodeHookSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CodeHookSpecification.Builder
lambdaCodeHook
(Consumer<LambdaCodeHook.Builder> lambdaCodeHook) Sets the value of the LambdaCodeHook property for this object.lambdaCodeHook
(LambdaCodeHook lambdaCodeHook) Sets the value of the LambdaCodeHook property for this object.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, sdkFields
-
Method Details
-
lambdaCodeHook
Sets the value of the LambdaCodeHook property for this object.- Parameters:
lambdaCodeHook
- The new value for the LambdaCodeHook property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaCodeHook
default CodeHookSpecification.Builder lambdaCodeHook(Consumer<LambdaCodeHook.Builder> lambdaCodeHook) Sets the value of the LambdaCodeHook property for this object. This is a convenience method that creates an instance of theLambdaCodeHook.Builder
avoiding the need to create one manually viaLambdaCodeHook.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolambdaCodeHook(LambdaCodeHook)
.- Parameters:
lambdaCodeHook
- a consumer that will call methods onLambdaCodeHook.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-