/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class CreateNotebookInstanceLifecycleConfigRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateNotebookInstanceLifecycleConfigRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateNotebookInstanceLifecycleConfig"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the lifecycle configuration.

*/ inline const Aws::String& GetNotebookInstanceLifecycleConfigName() const{ return m_notebookInstanceLifecycleConfigName; } /** *

The name of the lifecycle configuration.

*/ inline bool NotebookInstanceLifecycleConfigNameHasBeenSet() const { return m_notebookInstanceLifecycleConfigNameHasBeenSet; } /** *

The name of the lifecycle configuration.

*/ inline void SetNotebookInstanceLifecycleConfigName(const Aws::String& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = value; } /** *

The name of the lifecycle configuration.

*/ inline void SetNotebookInstanceLifecycleConfigName(Aws::String&& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = std::move(value); } /** *

The name of the lifecycle configuration.

*/ inline void SetNotebookInstanceLifecycleConfigName(const char* value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName.assign(value); } /** *

The name of the lifecycle configuration.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const Aws::String& value) { SetNotebookInstanceLifecycleConfigName(value); return *this;} /** *

The name of the lifecycle configuration.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(Aws::String&& value) { SetNotebookInstanceLifecycleConfigName(std::move(value)); return *this;} /** *

The name of the lifecycle configuration.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const char* value) { SetNotebookInstanceLifecycleConfigName(value); return *this;} /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline const Aws::Vector& GetOnCreate() const{ return m_onCreate; } /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; } /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline void SetOnCreate(const Aws::Vector& value) { m_onCreateHasBeenSet = true; m_onCreate = value; } /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline void SetOnCreate(Aws::Vector&& value) { m_onCreateHasBeenSet = true; m_onCreate = std::move(value); } /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithOnCreate(const Aws::Vector& value) { SetOnCreate(value); return *this;} /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithOnCreate(Aws::Vector&& value) { SetOnCreate(std::move(value)); return *this;} /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(const NotebookInstanceLifecycleHook& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(value); return *this; } /** *

A shell script that runs only once, when you create a notebook instance. The * shell script must be a base64-encoded string.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(NotebookInstanceLifecycleHook&& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const Aws::Vector& GetOnStart() const{ return m_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.

*/ inline bool OnStartHasBeenSet() const { return m_onStartHasBeenSet; } /** *

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.

*/ inline void SetOnStart(const Aws::Vector& value) { m_onStartHasBeenSet = true; m_onStart = value; } /** *

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.

*/ inline void SetOnStart(Aws::Vector&& value) { m_onStartHasBeenSet = true; m_onStart = std::move(value); } /** *

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.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithOnStart(const Aws::Vector& value) { SetOnStart(value); return *this;} /** *

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.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& WithOnStart(Aws::Vector&& value) { SetOnStart(std::move(value)); return *this;} /** *

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.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(const NotebookInstanceLifecycleHook& value) { m_onStartHasBeenSet = true; m_onStart.push_back(value); return *this; } /** *

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.

*/ inline CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(NotebookInstanceLifecycleHook&& value) { m_onStartHasBeenSet = true; m_onStart.push_back(std::move(value)); return *this; } private: Aws::String m_notebookInstanceLifecycleConfigName; bool m_notebookInstanceLifecycleConfigNameHasBeenSet = false; Aws::Vector m_onCreate; bool m_onCreateHasBeenSet = false; Aws::Vector m_onStart; bool m_onStartHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws