AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SolutionUpdateSummary.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/SolutionUpdateConfig.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
33 public:
34 AWS_PERSONALIZE_API SolutionUpdateSummary() = default;
35 AWS_PERSONALIZE_API SolutionUpdateSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const SolutionUpdateConfig& GetSolutionUpdateConfig() const { return m_solutionUpdateConfig; }
44 inline bool SolutionUpdateConfigHasBeenSet() const { return m_solutionUpdateConfigHasBeenSet; }
45 template <typename SolutionUpdateConfigT = SolutionUpdateConfig>
46 void SetSolutionUpdateConfig(SolutionUpdateConfigT&& value) {
47 m_solutionUpdateConfigHasBeenSet = true;
48 m_solutionUpdateConfig = std::forward<SolutionUpdateConfigT>(value);
49 }
50 template <typename SolutionUpdateConfigT = SolutionUpdateConfig>
51 SolutionUpdateSummary& WithSolutionUpdateConfig(SolutionUpdateConfigT&& value) {
52 SetSolutionUpdateConfig(std::forward<SolutionUpdateConfigT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 template <typename StatusT = Aws::String>
66 void SetStatus(StatusT&& value) {
67 m_statusHasBeenSet = true;
68 m_status = std::forward<StatusT>(value);
69 }
70 template <typename StatusT = Aws::String>
72 SetStatus(std::forward<StatusT>(value));
73 return *this;
74 }
76
78
81 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
82 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
83 inline void SetPerformAutoTraining(bool value) {
84 m_performAutoTrainingHasBeenSet = true;
85 m_performAutoTraining = value;
86 }
89 return *this;
90 }
92
94
101 inline bool GetPerformIncrementalUpdate() const { return m_performIncrementalUpdate; }
102 inline bool PerformIncrementalUpdateHasBeenSet() const { return m_performIncrementalUpdateHasBeenSet; }
103 inline void SetPerformIncrementalUpdate(bool value) {
104 m_performIncrementalUpdateHasBeenSet = true;
105 m_performIncrementalUpdate = value;
106 }
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
118 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
119 template <typename CreationDateTimeT = Aws::Utils::DateTime>
120 void SetCreationDateTime(CreationDateTimeT&& value) {
121 m_creationDateTimeHasBeenSet = true;
122 m_creationDateTime = std::forward<CreationDateTimeT>(value);
123 }
124 template <typename CreationDateTimeT = Aws::Utils::DateTime>
125 SolutionUpdateSummary& WithCreationDateTime(CreationDateTimeT&& value) {
126 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
137 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
138 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
139 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
140 m_lastUpdatedDateTimeHasBeenSet = true;
141 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
142 }
143 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
144 SolutionUpdateSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
145 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
155 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
156 template <typename FailureReasonT = Aws::String>
157 void SetFailureReason(FailureReasonT&& value) {
158 m_failureReasonHasBeenSet = true;
159 m_failureReason = std::forward<FailureReasonT>(value);
160 }
161 template <typename FailureReasonT = Aws::String>
162 SolutionUpdateSummary& WithFailureReason(FailureReasonT&& value) {
163 SetFailureReason(std::forward<FailureReasonT>(value));
164 return *this;
165 }
167 private:
168 SolutionUpdateConfig m_solutionUpdateConfig;
169
170 Aws::String m_status;
171
172 bool m_performAutoTraining{false};
173
174 bool m_performIncrementalUpdate{false};
175
176 Aws::Utils::DateTime m_creationDateTime{};
177
178 Aws::Utils::DateTime m_lastUpdatedDateTime{};
179
180 Aws::String m_failureReason;
181 bool m_solutionUpdateConfigHasBeenSet = false;
182 bool m_statusHasBeenSet = false;
183 bool m_performAutoTrainingHasBeenSet = false;
184 bool m_performIncrementalUpdateHasBeenSet = false;
185 bool m_creationDateTimeHasBeenSet = false;
186 bool m_lastUpdatedDateTimeHasBeenSet = false;
187 bool m_failureReasonHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace Personalize
192} // namespace Aws
void SetSolutionUpdateConfig(SolutionUpdateConfigT &&value)
SolutionUpdateSummary & WithStatus(StatusT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
SolutionUpdateSummary & WithPerformAutoTraining(bool value)
const Aws::Utils::DateTime & GetCreationDateTime() const
SolutionUpdateSummary & WithSolutionUpdateConfig(SolutionUpdateConfigT &&value)
SolutionUpdateSummary & WithFailureReason(FailureReasonT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
SolutionUpdateSummary & WithPerformIncrementalUpdate(bool value)
AWS_PERSONALIZE_API SolutionUpdateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const SolutionUpdateConfig & GetSolutionUpdateConfig() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
SolutionUpdateSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
SolutionUpdateSummary & WithCreationDateTime(CreationDateTimeT &&value)
AWS_PERSONALIZE_API SolutionUpdateSummary()=default
AWS_PERSONALIZE_API SolutionUpdateSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue