Interface CreateNotebookInstanceLifecycleConfigRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateNotebookInstanceLifecycleConfigRequest.Builder,,CreateNotebookInstanceLifecycleConfigRequest> SageMakerRequest.Builder,SdkBuilder<CreateNotebookInstanceLifecycleConfigRequest.Builder,,CreateNotebookInstanceLifecycleConfigRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateNotebookInstanceLifecycleConfigRequest
-
Method Summary
Modifier and TypeMethodDescriptionnotebookInstanceLifecycleConfigName(String notebookInstanceLifecycleConfigName) The name of the lifecycle configuration.onCreate(Collection<NotebookInstanceLifecycleHook> onCreate) A shell script that runs only once, when you create a notebook instance.onCreate(Consumer<NotebookInstanceLifecycleHook.Builder>... onCreate) A shell script that runs only once, when you create a notebook instance.onCreate(NotebookInstanceLifecycleHook... onCreate) A shell script that runs only once, when you create a notebook instance.onStart(Collection<NotebookInstanceLifecycleHook> onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance.onStart(Consumer<NotebookInstanceLifecycleHook.Builder>... onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance.onStart(NotebookInstanceLifecycleHook... onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
notebookInstanceLifecycleConfigName
CreateNotebookInstanceLifecycleConfigRequest.Builder notebookInstanceLifecycleConfigName(String notebookInstanceLifecycleConfigName) The name of the lifecycle configuration.
- Parameters:
notebookInstanceLifecycleConfigName- The name of the lifecycle configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onCreate
CreateNotebookInstanceLifecycleConfigRequest.Builder onCreate(Collection<NotebookInstanceLifecycleHook> onCreate) A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
- Parameters:
onCreate- A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onCreate
CreateNotebookInstanceLifecycleConfigRequest.Builder onCreate(NotebookInstanceLifecycleHook... onCreate) A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
- Parameters:
onCreate- A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onCreate
CreateNotebookInstanceLifecycleConfigRequest.Builder onCreate(Consumer<NotebookInstanceLifecycleHook.Builder>... onCreate) A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
This is a convenience method that creates an instance of theNotebookInstanceLifecycleHook.Builderavoiding the need to create one manually viaNotebookInstanceLifecycleHook.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonCreate(List<NotebookInstanceLifecycleHook>).- Parameters:
onCreate- a consumer that will call methods onNotebookInstanceLifecycleHook.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onStart
CreateNotebookInstanceLifecycleConfigRequest.Builder onStart(Collection<NotebookInstanceLifecycleHook> onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.
- Parameters:
onStart- A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onStart
CreateNotebookInstanceLifecycleConfigRequest.Builder onStart(NotebookInstanceLifecycleHook... onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.
- Parameters:
onStart- A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onStart
CreateNotebookInstanceLifecycleConfigRequest.Builder onStart(Consumer<NotebookInstanceLifecycleHook.Builder>... onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.
This is a convenience method that creates an instance of theNotebookInstanceLifecycleHook.Builderavoiding the need to create one manually viaNotebookInstanceLifecycleHook.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonStart(List<NotebookInstanceLifecycleHook>).- Parameters:
onStart- a consumer that will call methods onNotebookInstanceLifecycleHook.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateNotebookInstanceLifecycleConfigRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateNotebookInstanceLifecycleConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-