/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Athena { namespace Model { /** *

Contains metadata for notebook, including the notebook name, ID, workgroup, * and time created.

See Also:

AWS * API Reference

*/ class NotebookMetadata { public: AWS_ATHENA_API NotebookMetadata(); AWS_ATHENA_API NotebookMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_ATHENA_API NotebookMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The notebook ID.

*/ inline const Aws::String& GetNotebookId() const{ return m_notebookId; } /** *

The notebook ID.

*/ inline bool NotebookIdHasBeenSet() const { return m_notebookIdHasBeenSet; } /** *

The notebook ID.

*/ inline void SetNotebookId(const Aws::String& value) { m_notebookIdHasBeenSet = true; m_notebookId = value; } /** *

The notebook ID.

*/ inline void SetNotebookId(Aws::String&& value) { m_notebookIdHasBeenSet = true; m_notebookId = std::move(value); } /** *

The notebook ID.

*/ inline void SetNotebookId(const char* value) { m_notebookIdHasBeenSet = true; m_notebookId.assign(value); } /** *

The notebook ID.

*/ inline NotebookMetadata& WithNotebookId(const Aws::String& value) { SetNotebookId(value); return *this;} /** *

The notebook ID.

*/ inline NotebookMetadata& WithNotebookId(Aws::String&& value) { SetNotebookId(std::move(value)); return *this;} /** *

The notebook ID.

*/ inline NotebookMetadata& WithNotebookId(const char* value) { SetNotebookId(value); return *this;} /** *

The name of the notebook.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the notebook.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the notebook.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the notebook.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the notebook.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the notebook.

*/ inline NotebookMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the notebook.

*/ inline NotebookMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the notebook.

*/ inline NotebookMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; } /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; } /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); } /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); } /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline NotebookMetadata& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline NotebookMetadata& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *

The name of the Spark enabled workgroup to which the notebook belongs.

*/ inline NotebookMetadata& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} /** *

The time when the notebook was created.

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

The time when the notebook was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time when the notebook was created.

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

The time when the notebook was created.

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

The time when the notebook was created.

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

The time when the notebook was created.

*/ inline NotebookMetadata& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The type of notebook. Currently, the only valid type is * IPYNB.

*/ inline const NotebookType& GetType() const{ return m_type; } /** *

The type of notebook. Currently, the only valid type is * IPYNB.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of notebook. Currently, the only valid type is * IPYNB.

*/ inline void SetType(const NotebookType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of notebook. Currently, the only valid type is * IPYNB.

*/ inline void SetType(NotebookType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of notebook. Currently, the only valid type is * IPYNB.

*/ inline NotebookMetadata& WithType(const NotebookType& value) { SetType(value); return *this;} /** *

The type of notebook. Currently, the only valid type is * IPYNB.

*/ inline NotebookMetadata& WithType(NotebookType&& value) { SetType(std::move(value)); return *this;} /** *

The time when the notebook was last modified.

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

The time when the notebook was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The time when the notebook was last modified.

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

The time when the notebook was last modified.

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

The time when the notebook was last modified.

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

The time when the notebook was last modified.

*/ inline NotebookMetadata& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} private: Aws::String m_notebookId; bool m_notebookIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; NotebookType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws