AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RecommenderUpdate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/RecommenderConfig.h>
11#include <aws/customer-profiles/model/RecommenderStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles {
23namespace Model {
24
32 public:
33 AWS_CUSTOMERPROFILES_API RecommenderUpdate() = default;
34 AWS_CUSTOMERPROFILES_API RecommenderUpdate(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API RecommenderUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const RecommenderConfig& GetRecommenderConfig() const { return m_recommenderConfig; }
44 inline bool RecommenderConfigHasBeenSet() const { return m_recommenderConfigHasBeenSet; }
45 template <typename RecommenderConfigT = RecommenderConfig>
46 void SetRecommenderConfig(RecommenderConfigT&& value) {
47 m_recommenderConfigHasBeenSet = true;
48 m_recommenderConfig = std::forward<RecommenderConfigT>(value);
49 }
50 template <typename RecommenderConfigT = RecommenderConfig>
51 RecommenderUpdate& WithRecommenderConfig(RecommenderConfigT&& value) {
52 SetRecommenderConfig(std::forward<RecommenderConfigT>(value));
53 return *this;
54 }
56
58
61 inline RecommenderStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(RecommenderStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 RecommenderUpdate& WithCreatedAt(CreatedAtT&& value) {
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
96 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
97 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
98 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
99 m_lastUpdatedAtHasBeenSet = true;
100 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
101 }
102 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
103 RecommenderUpdate& WithLastUpdatedAt(LastUpdatedAtT&& value) {
104 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
114 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
115 template <typename FailureReasonT = Aws::String>
116 void SetFailureReason(FailureReasonT&& value) {
117 m_failureReasonHasBeenSet = true;
118 m_failureReason = std::forward<FailureReasonT>(value);
119 }
120 template <typename FailureReasonT = Aws::String>
121 RecommenderUpdate& WithFailureReason(FailureReasonT&& value) {
122 SetFailureReason(std::forward<FailureReasonT>(value));
123 return *this;
124 }
126 private:
127 RecommenderConfig m_recommenderConfig;
128
130
131 Aws::Utils::DateTime m_createdAt{};
132
133 Aws::Utils::DateTime m_lastUpdatedAt{};
134
135 Aws::String m_failureReason;
136 bool m_recommenderConfigHasBeenSet = false;
137 bool m_statusHasBeenSet = false;
138 bool m_createdAtHasBeenSet = false;
139 bool m_lastUpdatedAtHasBeenSet = false;
140 bool m_failureReasonHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace CustomerProfiles
145} // namespace Aws
const RecommenderConfig & GetRecommenderConfig() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
RecommenderUpdate & WithFailureReason(FailureReasonT &&value)
AWS_CUSTOMERPROFILES_API RecommenderUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommenderUpdate & WithRecommenderConfig(RecommenderConfigT &&value)
RecommenderUpdate & WithStatus(RecommenderStatus value)
RecommenderUpdate & WithCreatedAt(CreatedAtT &&value)
AWS_CUSTOMERPROFILES_API RecommenderUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRecommenderConfig(RecommenderConfigT &&value)
RecommenderUpdate & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_CUSTOMERPROFILES_API RecommenderUpdate()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue