AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SolutionUpdateSummary.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/model/SolutionUpdateConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_PERSONALIZE_API SolutionUpdateSummary() = default;
40 AWS_PERSONALIZE_API SolutionUpdateSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const SolutionUpdateConfig& GetSolutionUpdateConfig() const { return m_solutionUpdateConfig; }
50 inline bool SolutionUpdateConfigHasBeenSet() const { return m_solutionUpdateConfigHasBeenSet; }
51 template<typename SolutionUpdateConfigT = SolutionUpdateConfig>
52 void SetSolutionUpdateConfig(SolutionUpdateConfigT&& value) { m_solutionUpdateConfigHasBeenSet = true; m_solutionUpdateConfig = std::forward<SolutionUpdateConfigT>(value); }
53 template<typename SolutionUpdateConfigT = SolutionUpdateConfig>
54 SolutionUpdateSummary& WithSolutionUpdateConfig(SolutionUpdateConfigT&& value) { SetSolutionUpdateConfig(std::forward<SolutionUpdateConfigT>(value)); return *this;}
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) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
67 template<typename StatusT = Aws::String>
68 SolutionUpdateSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
70
72
75 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
76 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
77 inline void SetPerformAutoTraining(bool value) { m_performAutoTrainingHasBeenSet = true; m_performAutoTraining = value; }
78 inline SolutionUpdateSummary& WithPerformAutoTraining(bool value) { SetPerformAutoTraining(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
86 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
87 template<typename CreationDateTimeT = Aws::Utils::DateTime>
88 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
89 template<typename CreationDateTimeT = Aws::Utils::DateTime>
90 SolutionUpdateSummary& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
99 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
100 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
101 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
102 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
103 SolutionUpdateSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
105
107
110 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
111 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
112 template<typename FailureReasonT = Aws::String>
113 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
114 template<typename FailureReasonT = Aws::String>
115 SolutionUpdateSummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
117 private:
118
119 SolutionUpdateConfig m_solutionUpdateConfig;
120 bool m_solutionUpdateConfigHasBeenSet = false;
121
122 Aws::String m_status;
123 bool m_statusHasBeenSet = false;
124
125 bool m_performAutoTraining{false};
126 bool m_performAutoTrainingHasBeenSet = false;
127
128 Aws::Utils::DateTime m_creationDateTime{};
129 bool m_creationDateTimeHasBeenSet = false;
130
131 Aws::Utils::DateTime m_lastUpdatedDateTime{};
132 bool m_lastUpdatedDateTimeHasBeenSet = false;
133
134 Aws::String m_failureReason;
135 bool m_failureReasonHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Personalize
140} // 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
AWS_PERSONALIZE_API SolutionUpdateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const SolutionUpdateConfig & GetSolutionUpdateConfig() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetCreationDateTime(CreationDateTimeT &&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