AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DatasetSchema.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/Domain.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize {
22namespace Model {
23
32 public:
33 AWS_PERSONALIZE_API DatasetSchema() = default;
34 AWS_PERSONALIZE_API DatasetSchema(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZE_API DatasetSchema& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 DatasetSchema& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
61 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
62 template <typename SchemaArnT = Aws::String>
63 void SetSchemaArn(SchemaArnT&& value) {
64 m_schemaArnHasBeenSet = true;
65 m_schemaArn = std::forward<SchemaArnT>(value);
66 }
67 template <typename SchemaArnT = Aws::String>
68 DatasetSchema& WithSchemaArn(SchemaArnT&& value) {
69 SetSchemaArn(std::forward<SchemaArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSchema() const { return m_schema; }
79 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
80 template <typename SchemaT = Aws::String>
81 void SetSchema(SchemaT&& value) {
82 m_schemaHasBeenSet = true;
83 m_schema = std::forward<SchemaT>(value);
84 }
85 template <typename SchemaT = Aws::String>
86 DatasetSchema& WithSchema(SchemaT&& value) {
87 SetSchema(std::forward<SchemaT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
97 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
98 template <typename CreationDateTimeT = Aws::Utils::DateTime>
99 void SetCreationDateTime(CreationDateTimeT&& value) {
100 m_creationDateTimeHasBeenSet = true;
101 m_creationDateTime = std::forward<CreationDateTimeT>(value);
102 }
103 template <typename CreationDateTimeT = Aws::Utils::DateTime>
104 DatasetSchema& WithCreationDateTime(CreationDateTimeT&& value) {
105 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
115 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
116 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
117 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
118 m_lastUpdatedDateTimeHasBeenSet = true;
119 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
120 }
121 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
122 DatasetSchema& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
123 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
124 return *this;
125 }
127
129
133 inline Domain GetDomain() const { return m_domain; }
134 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
135 inline void SetDomain(Domain value) {
136 m_domainHasBeenSet = true;
137 m_domain = value;
138 }
140 SetDomain(value);
141 return *this;
142 }
144 private:
145 Aws::String m_name;
146
147 Aws::String m_schemaArn;
148
149 Aws::String m_schema;
150
151 Aws::Utils::DateTime m_creationDateTime{};
152
153 Aws::Utils::DateTime m_lastUpdatedDateTime{};
154
155 Domain m_domain{Domain::NOT_SET};
156 bool m_nameHasBeenSet = false;
157 bool m_schemaArnHasBeenSet = false;
158 bool m_schemaHasBeenSet = false;
159 bool m_creationDateTimeHasBeenSet = false;
160 bool m_lastUpdatedDateTimeHasBeenSet = false;
161 bool m_domainHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Personalize
166} // namespace Aws
AWS_PERSONALIZE_API DatasetSchema()=default
DatasetSchema & WithCreationDateTime(CreationDateTimeT &&value)
DatasetSchema & WithSchema(SchemaT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetName() const
DatasetSchema & WithName(NameT &&value)
AWS_PERSONALIZE_API DatasetSchema(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDateTime(CreationDateTimeT &&value)
DatasetSchema & WithDomain(Domain value)
const Aws::String & GetSchema() const
AWS_PERSONALIZE_API DatasetSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
DatasetSchema & WithSchemaArn(SchemaArnT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::String & GetSchemaArn() const
DatasetSchema & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetSchemaArn(SchemaArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue