AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SolutionVersionSummary.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/TrainingMode.h>
11#include <aws/personalize/model/TrainingType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize {
23namespace Model {
24
34 public:
35 AWS_PERSONALIZE_API SolutionVersionSummary() = default;
36 AWS_PERSONALIZE_API SolutionVersionSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
45 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
46 template <typename SolutionVersionArnT = Aws::String>
47 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
48 m_solutionVersionArnHasBeenSet = true;
49 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
50 }
51 template <typename SolutionVersionArnT = Aws::String>
52 SolutionVersionSummary& WithSolutionVersionArn(SolutionVersionArnT&& value) {
53 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 template <typename StatusT = Aws::String>
67 void SetStatus(StatusT&& value) {
68 m_statusHasBeenSet = true;
69 m_status = std::forward<StatusT>(value);
70 }
71 template <typename StatusT = Aws::String>
73 SetStatus(std::forward<StatusT>(value));
74 return *this;
75 }
77
79
86 inline TrainingMode GetTrainingMode() const { return m_trainingMode; }
87 inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
88 inline void SetTrainingMode(TrainingMode value) {
89 m_trainingModeHasBeenSet = true;
90 m_trainingMode = value;
91 }
93 SetTrainingMode(value);
94 return *this;
95 }
97
99
102 inline TrainingType GetTrainingType() const { return m_trainingType; }
103 inline bool TrainingTypeHasBeenSet() const { return m_trainingTypeHasBeenSet; }
104 inline void SetTrainingType(TrainingType value) {
105 m_trainingTypeHasBeenSet = true;
106 m_trainingType = value;
107 }
109 SetTrainingType(value);
110 return *this;
111 }
113
115
119 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
120 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
121 template <typename CreationDateTimeT = Aws::Utils::DateTime>
122 void SetCreationDateTime(CreationDateTimeT&& value) {
123 m_creationDateTimeHasBeenSet = true;
124 m_creationDateTime = std::forward<CreationDateTimeT>(value);
125 }
126 template <typename CreationDateTimeT = Aws::Utils::DateTime>
127 SolutionVersionSummary& WithCreationDateTime(CreationDateTimeT&& value) {
128 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
139 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
140 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
141 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
142 m_lastUpdatedDateTimeHasBeenSet = true;
143 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
144 }
145 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
146 SolutionVersionSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
147 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
157 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
158 template <typename FailureReasonT = Aws::String>
159 void SetFailureReason(FailureReasonT&& value) {
160 m_failureReasonHasBeenSet = true;
161 m_failureReason = std::forward<FailureReasonT>(value);
162 }
163 template <typename FailureReasonT = Aws::String>
164 SolutionVersionSummary& WithFailureReason(FailureReasonT&& value) {
165 SetFailureReason(std::forward<FailureReasonT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_solutionVersionArn;
171
172 Aws::String m_status;
173
174 TrainingMode m_trainingMode{TrainingMode::NOT_SET};
175
176 TrainingType m_trainingType{TrainingType::NOT_SET};
177
178 Aws::Utils::DateTime m_creationDateTime{};
179
180 Aws::Utils::DateTime m_lastUpdatedDateTime{};
181
182 Aws::String m_failureReason;
183 bool m_solutionVersionArnHasBeenSet = false;
184 bool m_statusHasBeenSet = false;
185 bool m_trainingModeHasBeenSet = false;
186 bool m_trainingTypeHasBeenSet = false;
187 bool m_creationDateTimeHasBeenSet = false;
188 bool m_lastUpdatedDateTimeHasBeenSet = false;
189 bool m_failureReasonHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace Personalize
194} // namespace Aws
AWS_PERSONALIZE_API SolutionVersionSummary(Aws::Utils::Json::JsonView jsonValue)
SolutionVersionSummary & WithTrainingType(TrainingType value)
AWS_PERSONALIZE_API SolutionVersionSummary()=default
SolutionVersionSummary & WithCreationDateTime(CreationDateTimeT &&value)
SolutionVersionSummary & WithFailureReason(FailureReasonT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetSolutionVersionArn(SolutionVersionArnT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API SolutionVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SolutionVersionSummary & WithTrainingMode(TrainingMode value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
SolutionVersionSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
SolutionVersionSummary & WithSolutionVersionArn(SolutionVersionArnT &&value)
SolutionVersionSummary & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue