AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DatasetUpdateSummary.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Personalize {
21namespace Model {
22
29 public:
30 AWS_PERSONALIZE_API DatasetUpdateSummary() = default;
31 AWS_PERSONALIZE_API DatasetUpdateSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
41 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
42 template <typename SchemaArnT = Aws::String>
43 void SetSchemaArn(SchemaArnT&& value) {
44 m_schemaArnHasBeenSet = true;
45 m_schemaArn = std::forward<SchemaArnT>(value);
46 }
47 template <typename SchemaArnT = Aws::String>
48 DatasetUpdateSummary& WithSchemaArn(SchemaArnT&& value) {
49 SetSchemaArn(std::forward<SchemaArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 template <typename StatusT = Aws::String>
61 void SetStatus(StatusT&& value) {
62 m_statusHasBeenSet = true;
63 m_status = std::forward<StatusT>(value);
64 }
65 template <typename StatusT = Aws::String>
66 DatasetUpdateSummary& WithStatus(StatusT&& value) {
67 SetStatus(std::forward<StatusT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
77 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
78 template <typename FailureReasonT = Aws::String>
79 void SetFailureReason(FailureReasonT&& value) {
80 m_failureReasonHasBeenSet = true;
81 m_failureReason = std::forward<FailureReasonT>(value);
82 }
83 template <typename FailureReasonT = Aws::String>
84 DatasetUpdateSummary& WithFailureReason(FailureReasonT&& value) {
85 SetFailureReason(std::forward<FailureReasonT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
95 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
96 template <typename CreationDateTimeT = Aws::Utils::DateTime>
97 void SetCreationDateTime(CreationDateTimeT&& value) {
98 m_creationDateTimeHasBeenSet = true;
99 m_creationDateTime = std::forward<CreationDateTimeT>(value);
100 }
101 template <typename CreationDateTimeT = Aws::Utils::DateTime>
102 DatasetUpdateSummary& WithCreationDateTime(CreationDateTimeT&& value) {
103 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
113 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
114 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
115 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
116 m_lastUpdatedDateTimeHasBeenSet = true;
117 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
118 }
119 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
120 DatasetUpdateSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
121 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_schemaArn;
127
128 Aws::String m_status;
129
130 Aws::String m_failureReason;
131
132 Aws::Utils::DateTime m_creationDateTime{};
133
134 Aws::Utils::DateTime m_lastUpdatedDateTime{};
135 bool m_schemaArnHasBeenSet = false;
136 bool m_statusHasBeenSet = false;
137 bool m_failureReasonHasBeenSet = false;
138 bool m_creationDateTimeHasBeenSet = false;
139 bool m_lastUpdatedDateTimeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Personalize
144} // namespace Aws
DatasetUpdateSummary & WithSchemaArn(SchemaArnT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
DatasetUpdateSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DatasetUpdateSummary & WithCreationDateTime(CreationDateTimeT &&value)
AWS_PERSONALIZE_API DatasetUpdateSummary()=default
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DatasetUpdateSummary & WithStatus(StatusT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
DatasetUpdateSummary & WithFailureReason(FailureReasonT &&value)
AWS_PERSONALIZE_API DatasetUpdateSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_PERSONALIZE_API DatasetUpdateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue