/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { class DescribeNotebookInstanceLifecycleConfigResult { public: AWS_SAGEMAKER_API DescribeNotebookInstanceLifecycleConfigResult(); AWS_SAGEMAKER_API DescribeNotebookInstanceLifecycleConfigResult(const Aws::AmazonWebServiceResult& result); AWS_SAGEMAKER_API DescribeNotebookInstanceLifecycleConfigResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline const Aws::String& GetNotebookInstanceLifecycleConfigArn() const{ return m_notebookInstanceLifecycleConfigArn; } /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline void SetNotebookInstanceLifecycleConfigArn(const Aws::String& value) { m_notebookInstanceLifecycleConfigArn = value; } /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline void SetNotebookInstanceLifecycleConfigArn(Aws::String&& value) { m_notebookInstanceLifecycleConfigArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline void SetNotebookInstanceLifecycleConfigArn(const char* value) { m_notebookInstanceLifecycleConfigArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithNotebookInstanceLifecycleConfigArn(const Aws::String& value) { SetNotebookInstanceLifecycleConfigArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithNotebookInstanceLifecycleConfigArn(Aws::String&& value) { SetNotebookInstanceLifecycleConfigArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the lifecycle configuration.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithNotebookInstanceLifecycleConfigArn(const char* value) { SetNotebookInstanceLifecycleConfigArn(value); return *this;} /** *

The name of the lifecycle configuration.

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

The name of the lifecycle configuration.

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

The name of the lifecycle configuration.

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

The name of the lifecycle configuration.

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

The name of the lifecycle configuration.

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

The name of the lifecycle configuration.

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

The name of the lifecycle configuration.

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

The shell script that runs only once, when you create a notebook * instance.

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

The shell script that runs only once, when you create a notebook * instance.

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

The shell script that runs only once, when you create a notebook * instance.

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

The shell script that runs only once, when you create a notebook * instance.

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

The shell script that runs only once, when you create a notebook * instance.

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

The shell script that runs only once, when you create a notebook * instance.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& AddOnCreate(const NotebookInstanceLifecycleHook& value) { m_onCreate.push_back(value); return *this; } /** *

The shell script that runs only once, when you create a notebook * instance.

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

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

*/ inline const Aws::Vector& GetOnStart() const{ return m_onStart; } /** *

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

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

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

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

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

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

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

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

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& AddOnStart(const NotebookInstanceLifecycleHook& value) { m_onStart.push_back(value); return *this; } /** *

The shell script that runs every time you start a notebook instance, * including when you create the notebook instance.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& AddOnStart(NotebookInstanceLifecycleHook&& value) { m_onStart.push_back(std::move(value)); return *this; } /** *

A timestamp that tells when the lifecycle configuration was last * modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

A timestamp that tells when the lifecycle configuration was last * modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

A timestamp that tells when the lifecycle configuration was last * modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

A timestamp that tells when the lifecycle configuration was last * modified.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

A timestamp that tells when the lifecycle configuration was last * modified.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

A timestamp that tells when the lifecycle configuration was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

A timestamp that tells when the lifecycle configuration was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

A timestamp that tells when the lifecycle configuration was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

A timestamp that tells when the lifecycle configuration was created.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

A timestamp that tells when the lifecycle configuration was created.

*/ inline DescribeNotebookInstanceLifecycleConfigResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeNotebookInstanceLifecycleConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeNotebookInstanceLifecycleConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeNotebookInstanceLifecycleConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_notebookInstanceLifecycleConfigArn; Aws::String m_notebookInstanceLifecycleConfigName; Aws::Vector m_onCreate; Aws::Vector m_onStart; Aws::Utils::DateTime m_lastModifiedTime; Aws::Utils::DateTime m_creationTime; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws