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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CodeInterpreterInvocationOutput.Builder
executionError(String executionError)
Contains the error returned from code execution.CodeInterpreterInvocationOutput.Builder
executionOutput(String executionOutput)
Contains the successful output returned from code executionCodeInterpreterInvocationOutput.Builder
executionTimeout(Boolean executionTimeout)
Indicates if the execution of the code timed out.CodeInterpreterInvocationOutput.Builder
files(String... files)
Contains output files, if generated by code execution.CodeInterpreterInvocationOutput.Builder
files(Collection<String> files)
Contains output files, if generated by code execution.default CodeInterpreterInvocationOutput.Builder
metadata(Consumer<Metadata.Builder> metadata)
Contains information about the output from the code interpreter.CodeInterpreterInvocationOutput.Builder
metadata(Metadata metadata)
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 Detail
-
executionError
CodeInterpreterInvocationOutput.Builder executionError(String 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
CodeInterpreterInvocationOutput.Builder executionOutput(String 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
CodeInterpreterInvocationOutput.Builder executionTimeout(Boolean 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
CodeInterpreterInvocationOutput.Builder files(Collection<String> 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
CodeInterpreterInvocationOutput.Builder files(String... 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
CodeInterpreterInvocationOutput.Builder metadata(Metadata 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
default CodeInterpreterInvocationOutput.Builder metadata(Consumer<Metadata.Builder> 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:
metadata(Metadata)
-
-