Interface FunctionSchema.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<FunctionSchema.Builder,FunctionSchema>
,SdkBuilder<FunctionSchema.Builder,FunctionSchema>
,SdkPojo
- Enclosing class:
- FunctionSchema
public static interface FunctionSchema.Builder extends SdkPojo, CopyableBuilder<FunctionSchema.Builder,FunctionSchema>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FunctionSchema.Builder
functions(Collection<FunctionDefinition> functions)
A list of functions that each define an action in the action group.FunctionSchema.Builder
functions(Consumer<FunctionDefinition.Builder>... functions)
A list of functions that each define an action in the action group.FunctionSchema.Builder
functions(FunctionDefinition... functions)
A list of functions that each define an action in the action group.-
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
-
functions
FunctionSchema.Builder functions(Collection<FunctionDefinition> functions)
A list of functions that each define an action in the action group.
- Parameters:
functions
- A list of functions that each define an action in the action group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functions
FunctionSchema.Builder functions(FunctionDefinition... functions)
A list of functions that each define an action in the action group.
- Parameters:
functions
- A list of functions that each define an action in the action group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functions
FunctionSchema.Builder functions(Consumer<FunctionDefinition.Builder>... functions)
A list of functions that each define an action in the action group.
This is a convenience method that creates an instance of theFunctionDefinition.Builder
avoiding the need to create one manually viaFunctionDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#functions(List
.) - Parameters:
functions
- a consumer that will call methods onFunctionDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#functions(java.util.Collection
)
-
-