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