Interface StartNotebookExecutionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartNotebookExecutionRequest.Builder,
,StartNotebookExecutionRequest> EmrRequest.Builder
,SdkBuilder<StartNotebookExecutionRequest.Builder,
,StartNotebookExecutionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartNotebookExecutionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier of the Amazon EMR Notebook to use for notebook execution.environmentVariables
(Map<String, String> environmentVariables) The environment variables associated with the notebook execution.executionEngine
(Consumer<ExecutionEngineConfig.Builder> executionEngine) Specifies the execution engine (cluster) that runs the notebook execution.executionEngine
(ExecutionEngineConfig executionEngine) Specifies the execution engine (cluster) that runs the notebook execution.notebookExecutionName
(String notebookExecutionName) An optional name for the notebook execution.notebookInstanceSecurityGroupId
(String notebookInstanceSecurityGroupId) The unique identifier of the Amazon EC2 security group to associate with the Amazon EMR Notebook for this notebook execution.notebookParams
(String notebookParams) Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution.notebookS3Location
(Consumer<NotebookS3LocationFromInput.Builder> notebookS3Location) The Amazon S3 location for the notebook execution input.notebookS3Location
(NotebookS3LocationFromInput notebookS3Location) The Amazon S3 location for the notebook execution input.outputNotebookFormat
(String outputNotebookFormat) The output format for the notebook execution.outputNotebookFormat
(OutputNotebookFormat outputNotebookFormat) The output format for the notebook execution.outputNotebookS3Location
(Consumer<OutputNotebookS3LocationFromInput.Builder> outputNotebookS3Location) The Amazon S3 location for the notebook execution output.outputNotebookS3Location
(OutputNotebookS3LocationFromInput outputNotebookS3Location) The Amazon S3 location for the notebook execution output.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.relativePath
(String relativePath) The path and file name of the notebook file for this execution, relative to the path specified for the Amazon EMR Notebook.serviceRole
(String serviceRole) The name or ARN of the IAM role that is used as the service role for Amazon EMR (the Amazon EMR role) for the notebook execution.tags
(Collection<Tag> tags) A list of tags associated with a notebook execution.tags
(Consumer<Tag.Builder>... tags) A list of tags associated with a notebook execution.A list of tags associated with a notebook execution.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.emr.model.EmrRequest.Builder
build
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
-
editorId
The unique identifier of the Amazon EMR Notebook to use for notebook execution.
- Parameters:
editorId
- The unique identifier of the Amazon EMR Notebook to use for notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relativePath
The path and file name of the notebook file for this execution, relative to the path specified for the Amazon EMR Notebook. For example, if you specify a path of
s3://MyBucket/MyNotebooks
when you create an Amazon EMR Notebook for a notebook with an ID ofe-ABCDEFGHIJK1234567890ABCD
(theEditorID
of this request), and you specify aRelativePath
ofmy_notebook_executions/notebook_execution.ipynb
, the location of the file for the notebook execution iss3://MyBucket/MyNotebooks/e-ABCDEFGHIJK1234567890ABCD/my_notebook_executions/notebook_execution.ipynb
.- Parameters:
relativePath
- The path and file name of the notebook file for this execution, relative to the path specified for the Amazon EMR Notebook. For example, if you specify a path ofs3://MyBucket/MyNotebooks
when you create an Amazon EMR Notebook for a notebook with an ID ofe-ABCDEFGHIJK1234567890ABCD
(theEditorID
of this request), and you specify aRelativePath
ofmy_notebook_executions/notebook_execution.ipynb
, the location of the file for the notebook execution iss3://MyBucket/MyNotebooks/e-ABCDEFGHIJK1234567890ABCD/my_notebook_executions/notebook_execution.ipynb
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notebookExecutionName
An optional name for the notebook execution.
- Parameters:
notebookExecutionName
- An optional name for the notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notebookParams
Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution.
- Parameters:
notebookParams
- Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionEngine
Specifies the execution engine (cluster) that runs the notebook execution.
- Parameters:
executionEngine
- Specifies the execution engine (cluster) that runs the notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionEngine
default StartNotebookExecutionRequest.Builder executionEngine(Consumer<ExecutionEngineConfig.Builder> executionEngine) Specifies the execution engine (cluster) that runs the notebook execution.
This is a convenience method that creates an instance of theExecutionEngineConfig.Builder
avoiding the need to create one manually viaExecutionEngineConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexecutionEngine(ExecutionEngineConfig)
.- Parameters:
executionEngine
- a consumer that will call methods onExecutionEngineConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceRole
The name or ARN of the IAM role that is used as the service role for Amazon EMR (the Amazon EMR role) for the notebook execution.
- Parameters:
serviceRole
- The name or ARN of the IAM role that is used as the service role for Amazon EMR (the Amazon EMR role) for the notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notebookInstanceSecurityGroupId
StartNotebookExecutionRequest.Builder notebookInstanceSecurityGroupId(String notebookInstanceSecurityGroupId) The unique identifier of the Amazon EC2 security group to associate with the Amazon EMR Notebook for this notebook execution.
- Parameters:
notebookInstanceSecurityGroupId
- The unique identifier of the Amazon EC2 security group to associate with the Amazon EMR Notebook for this notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.
- Parameters:
tags
- A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.
- Parameters:
tags
- A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notebookS3Location
StartNotebookExecutionRequest.Builder notebookS3Location(NotebookS3LocationFromInput notebookS3Location) The Amazon S3 location for the notebook execution input.
- Parameters:
notebookS3Location
- The Amazon S3 location for the notebook execution input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notebookS3Location
default StartNotebookExecutionRequest.Builder notebookS3Location(Consumer<NotebookS3LocationFromInput.Builder> notebookS3Location) The Amazon S3 location for the notebook execution input.
This is a convenience method that creates an instance of theNotebookS3LocationFromInput.Builder
avoiding the need to create one manually viaNotebookS3LocationFromInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotebookS3Location(NotebookS3LocationFromInput)
.- Parameters:
notebookS3Location
- a consumer that will call methods onNotebookS3LocationFromInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputNotebookS3Location
StartNotebookExecutionRequest.Builder outputNotebookS3Location(OutputNotebookS3LocationFromInput outputNotebookS3Location) The Amazon S3 location for the notebook execution output.
- Parameters:
outputNotebookS3Location
- The Amazon S3 location for the notebook execution output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputNotebookS3Location
default StartNotebookExecutionRequest.Builder outputNotebookS3Location(Consumer<OutputNotebookS3LocationFromInput.Builder> outputNotebookS3Location) The Amazon S3 location for the notebook execution output.
This is a convenience method that creates an instance of theOutputNotebookS3LocationFromInput.Builder
avoiding the need to create one manually viaOutputNotebookS3LocationFromInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputNotebookS3Location(OutputNotebookS3LocationFromInput)
.- Parameters:
outputNotebookS3Location
- a consumer that will call methods onOutputNotebookS3LocationFromInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputNotebookFormat
The output format for the notebook execution.
- Parameters:
outputNotebookFormat
- The output format for the notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputNotebookFormat
StartNotebookExecutionRequest.Builder outputNotebookFormat(OutputNotebookFormat outputNotebookFormat) The output format for the notebook execution.
- Parameters:
outputNotebookFormat
- The output format for the notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentVariables
The environment variables associated with the notebook execution.
- Parameters:
environmentVariables
- The environment variables associated with the notebook execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartNotebookExecutionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartNotebookExecutionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-