200 lines
8.7 KiB
C++
200 lines
8.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/sagemaker/SageMaker_EXPORTS.h>
|
|
#include <aws/sagemaker/SageMakerRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/sagemaker/model/NotebookInstanceLifecycleHook.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace SageMaker
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_SAGEMAKER_API CreateNotebookInstanceLifecycleConfigRequest : public SageMakerRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline const Aws::String& GetNotebookInstanceLifecycleConfigName() const{ return m_notebookInstanceLifecycleConfigName; }
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline bool NotebookInstanceLifecycleConfigNameHasBeenSet() const { return m_notebookInstanceLifecycleConfigNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline void SetNotebookInstanceLifecycleConfigName(const Aws::String& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = value; }
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline void SetNotebookInstanceLifecycleConfigName(Aws::String&& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline void SetNotebookInstanceLifecycleConfigName(const char* value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const Aws::String& value) { SetNotebookInstanceLifecycleConfigName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(Aws::String&& value) { SetNotebookInstanceLifecycleConfigName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the lifecycle configuration.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const char* value) { SetNotebookInstanceLifecycleConfigName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnCreate() const{ return m_onCreate; }
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline void SetOnCreate(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { m_onCreateHasBeenSet = true; m_onCreate = value; }
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline void SetOnCreate(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { m_onCreateHasBeenSet = true; m_onCreate = std::move(value); }
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithOnCreate(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { SetOnCreate(value); return *this;}
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithOnCreate(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { SetOnCreate(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(const NotebookInstanceLifecycleHook& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A shell script that runs only once, when you create a notebook instance. The
|
|
* shell script must be a base64-encoded string.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(NotebookInstanceLifecycleHook&& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnStart() const{ return m_onStart; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline bool OnStartHasBeenSet() const { return m_onStartHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetOnStart(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { m_onStartHasBeenSet = true; m_onStart = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetOnStart(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { m_onStartHasBeenSet = true; m_onStart = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithOnStart(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { SetOnStart(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& WithOnStart(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { SetOnStart(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(const NotebookInstanceLifecycleHook& value) { m_onStartHasBeenSet = true; m_onStart.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
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;
|
|
|
|
Aws::Vector<NotebookInstanceLifecycleHook> m_onCreate;
|
|
bool m_onCreateHasBeenSet;
|
|
|
|
Aws::Vector<NotebookInstanceLifecycleHook> m_onStart;
|
|
bool m_onStartHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SageMaker
|
|
} // namespace Aws
|