Interface CodeInterpreterInvocationOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeInterpreterInvocationOutput.Builder,
,CodeInterpreterInvocationOutput> SdkBuilder<CodeInterpreterInvocationOutput.Builder,
,CodeInterpreterInvocationOutput> SdkPojo
- Enclosing class:
CodeInterpreterInvocationOutput
@Mutable
@NotThreadSafe
public static interface CodeInterpreterInvocationOutput.Builder
extends SdkPojo, CopyableBuilder<CodeInterpreterInvocationOutput.Builder,CodeInterpreterInvocationOutput>
-
Method Summary
Modifier and TypeMethodDescriptionexecutionError
(String executionError) Contains the error returned from code execution.executionOutput
(String executionOutput) Contains the successful output returned from code executionexecutionTimeout
(Boolean executionTimeout) Indicates if the execution of the code timed out.Contains output files, if generated by code execution.files
(Collection<String> files) Contains output files, if generated by code execution.metadata
(Consumer<Metadata.Builder> metadata) Contains information about the output from the code interpreter.Contains information about the output from the code interpreter.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 Details
-
executionError
Contains the error returned from code execution.
- Parameters:
executionError
- Contains the error returned from code execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionOutput
Contains the successful output returned from code execution
- Parameters:
executionOutput
- Contains the successful output returned from code execution- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionTimeout
Indicates if the execution of the code timed out.
- Parameters:
executionTimeout
- Indicates if the execution of the code timed out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
files
Contains output files, if generated by code execution.
- Parameters:
files
- Contains output files, if generated by code execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
files
Contains output files, if generated by code execution.
- Parameters:
files
- Contains output files, if generated by code execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Contains information about the output from the code interpreter.
- Parameters:
metadata
- Contains information about the output from the code interpreter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Contains information about the output from the code interpreter.
This is a convenience method that creates an instance of theMetadata.Builder
avoiding the need to create one manually viaMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(Metadata)
.- Parameters:
metadata
- a consumer that will call methods onMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-