AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
NotebookMetadata.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/NotebookType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Athena {
22namespace Model {
23
31 public:
32 AWS_ATHENA_API NotebookMetadata() = default;
35 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetNotebookId() const { return m_notebookId; }
42 inline bool NotebookIdHasBeenSet() const { return m_notebookIdHasBeenSet; }
43 template <typename NotebookIdT = Aws::String>
44 void SetNotebookId(NotebookIdT&& value) {
45 m_notebookIdHasBeenSet = true;
46 m_notebookId = std::forward<NotebookIdT>(value);
47 }
48 template <typename NotebookIdT = Aws::String>
49 NotebookMetadata& WithNotebookId(NotebookIdT&& value) {
50 SetNotebookId(std::forward<NotebookIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 NotebookMetadata& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
78 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
79 template <typename WorkGroupT = Aws::String>
80 void SetWorkGroup(WorkGroupT&& value) {
81 m_workGroupHasBeenSet = true;
82 m_workGroup = std::forward<WorkGroupT>(value);
83 }
84 template <typename WorkGroupT = Aws::String>
85 NotebookMetadata& WithWorkGroup(WorkGroupT&& value) {
86 SetWorkGroup(std::forward<WorkGroupT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
96 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
97 template <typename CreationTimeT = Aws::Utils::DateTime>
98 void SetCreationTime(CreationTimeT&& value) {
99 m_creationTimeHasBeenSet = true;
100 m_creationTime = std::forward<CreationTimeT>(value);
101 }
102 template <typename CreationTimeT = Aws::Utils::DateTime>
103 NotebookMetadata& WithCreationTime(CreationTimeT&& value) {
104 SetCreationTime(std::forward<CreationTimeT>(value));
105 return *this;
106 }
108
110
114 inline NotebookType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(NotebookType value) {
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
131 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
132 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
133 void SetLastModifiedTime(LastModifiedTimeT&& value) {
134 m_lastModifiedTimeHasBeenSet = true;
135 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
136 }
137 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
138 NotebookMetadata& WithLastModifiedTime(LastModifiedTimeT&& value) {
139 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_notebookId;
145
146 Aws::String m_name;
147
148 Aws::String m_workGroup;
149
150 Aws::Utils::DateTime m_creationTime{};
151
153
154 Aws::Utils::DateTime m_lastModifiedTime{};
155 bool m_notebookIdHasBeenSet = false;
156 bool m_nameHasBeenSet = false;
157 bool m_workGroupHasBeenSet = false;
158 bool m_creationTimeHasBeenSet = false;
159 bool m_typeHasBeenSet = false;
160 bool m_lastModifiedTimeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Athena
165} // namespace Aws
const Aws::String & GetNotebookId() const
NotebookMetadata & WithWorkGroup(WorkGroupT &&value)
NotebookMetadata & WithName(NameT &&value)
AWS_ATHENA_API NotebookMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
NotebookMetadata & WithNotebookId(NotebookIdT &&value)
NotebookMetadata & WithType(NotebookType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_ATHENA_API NotebookMetadata()=default
const Aws::String & GetWorkGroup() const
NotebookMetadata & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetName() const
void SetWorkGroup(WorkGroupT &&value)
void SetCreationTime(CreationTimeT &&value)
void SetNotebookId(NotebookIdT &&value)
AWS_ATHENA_API NotebookMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
NotebookMetadata & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue