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.tags
(Collection<Tag> tags) An array of key-value pairs.tags
(Consumer<Tag.Builder>... tags) An array of key-value pairs.An array of key-value pairs.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.sagemaker.model.SageMakerRequest.Builder
build
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 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.Builder
avoiding the need to create one manually viaNotebookInstanceLifecycleHook.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaNotebookInstanceLifecycleHook.builder()
.When the
Consumer
completes,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:
-
tags
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags
- An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags
- An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
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:
-
overrideConfiguration
CreateNotebookInstanceLifecycleConfigRequest.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
CreateNotebookInstanceLifecycleConfigRequest.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.
-