Class CfnNotebookInstanceLifecycleConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfigProps>
- Enclosing interface:
CfnNotebookInstanceLifecycleConfigProps
@Stability(Stable)
public static final class CfnNotebookInstanceLifecycleConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfigProps>
A builder for
CfnNotebookInstanceLifecycleConfigProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.notebookInstanceLifecycleConfigName(String notebookInstanceLifecycleConfigName) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnCreate()onCreate(IResolvable onCreate) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnCreate()Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnStart()onStart(IResolvable onStart) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnStart()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
notebookInstanceLifecycleConfigName
@Stability(Stable) public CfnNotebookInstanceLifecycleConfigProps.Builder notebookInstanceLifecycleConfigName(String notebookInstanceLifecycleConfigName) - Parameters:
notebookInstanceLifecycleConfigName- The name of the lifecycle configuration.- Returns:
this
-
onCreate
@Stability(Stable) public CfnNotebookInstanceLifecycleConfigProps.Builder onCreate(IResolvable onCreate) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnCreate()- 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:
this
-
onCreate
@Stability(Stable) public CfnNotebookInstanceLifecycleConfigProps.Builder onCreate(List<? extends Object> onCreate) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnCreate()- 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:
this
-
onStart
@Stability(Stable) public CfnNotebookInstanceLifecycleConfigProps.Builder onStart(IResolvable onStart) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnStart()- 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:
this
-
onStart
@Stability(Stable) public CfnNotebookInstanceLifecycleConfigProps.Builder onStart(List<? extends Object> onStart) Sets the value ofCfnNotebookInstanceLifecycleConfigProps.getOnStart()- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfigProps>- Returns:
- a new instance of
CfnNotebookInstanceLifecycleConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-