AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
MetricAttribution.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/MetricAttributionOutput.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
35 public:
36 AWS_PERSONALIZE_API MetricAttribution() = default;
37 AWS_PERSONALIZE_API MetricAttribution(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 MetricAttribution& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetMetricAttributionArn() const { return m_metricAttributionArn; }
64 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
65 template <typename MetricAttributionArnT = Aws::String>
66 void SetMetricAttributionArn(MetricAttributionArnT&& value) {
67 m_metricAttributionArnHasBeenSet = true;
68 m_metricAttributionArn = std::forward<MetricAttributionArnT>(value);
69 }
70 template <typename MetricAttributionArnT = Aws::String>
71 MetricAttribution& WithMetricAttributionArn(MetricAttributionArnT&& value) {
72 SetMetricAttributionArn(std::forward<MetricAttributionArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
82 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
83 template <typename DatasetGroupArnT = Aws::String>
84 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
85 m_datasetGroupArnHasBeenSet = true;
86 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
87 }
88 template <typename DatasetGroupArnT = Aws::String>
89 MetricAttribution& WithDatasetGroupArn(DatasetGroupArnT&& value) {
90 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
91 return *this;
92 }
94
96
99 inline const MetricAttributionOutput& GetMetricsOutputConfig() const { return m_metricsOutputConfig; }
100 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
101 template <typename MetricsOutputConfigT = MetricAttributionOutput>
102 void SetMetricsOutputConfig(MetricsOutputConfigT&& value) {
103 m_metricsOutputConfigHasBeenSet = true;
104 m_metricsOutputConfig = std::forward<MetricsOutputConfigT>(value);
105 }
106 template <typename MetricsOutputConfigT = MetricAttributionOutput>
107 MetricAttribution& WithMetricsOutputConfig(MetricsOutputConfigT&& value) {
108 SetMetricsOutputConfig(std::forward<MetricsOutputConfigT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 template <typename StatusT = Aws::String>
120 void SetStatus(StatusT&& value) {
121 m_statusHasBeenSet = true;
122 m_status = std::forward<StatusT>(value);
123 }
124 template <typename StatusT = Aws::String>
125 MetricAttribution& WithStatus(StatusT&& value) {
126 SetStatus(std::forward<StatusT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
136 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
137 template <typename CreationDateTimeT = Aws::Utils::DateTime>
138 void SetCreationDateTime(CreationDateTimeT&& value) {
139 m_creationDateTimeHasBeenSet = true;
140 m_creationDateTime = std::forward<CreationDateTimeT>(value);
141 }
142 template <typename CreationDateTimeT = Aws::Utils::DateTime>
143 MetricAttribution& WithCreationDateTime(CreationDateTimeT&& value) {
144 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
154 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
155 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
156 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
157 m_lastUpdatedDateTimeHasBeenSet = true;
158 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
159 }
160 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
161 MetricAttribution& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
162 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
172 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
173 template <typename FailureReasonT = Aws::String>
174 void SetFailureReason(FailureReasonT&& value) {
175 m_failureReasonHasBeenSet = true;
176 m_failureReason = std::forward<FailureReasonT>(value);
177 }
178 template <typename FailureReasonT = Aws::String>
179 MetricAttribution& WithFailureReason(FailureReasonT&& value) {
180 SetFailureReason(std::forward<FailureReasonT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_name;
186
187 Aws::String m_metricAttributionArn;
188
189 Aws::String m_datasetGroupArn;
190
191 MetricAttributionOutput m_metricsOutputConfig;
192
193 Aws::String m_status;
194
195 Aws::Utils::DateTime m_creationDateTime{};
196
197 Aws::Utils::DateTime m_lastUpdatedDateTime{};
198
199 Aws::String m_failureReason;
200 bool m_nameHasBeenSet = false;
201 bool m_metricAttributionArnHasBeenSet = false;
202 bool m_datasetGroupArnHasBeenSet = false;
203 bool m_metricsOutputConfigHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_creationDateTimeHasBeenSet = false;
206 bool m_lastUpdatedDateTimeHasBeenSet = false;
207 bool m_failureReasonHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace Personalize
212} // namespace Aws
void SetDatasetGroupArn(DatasetGroupArnT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
MetricAttribution & WithCreationDateTime(CreationDateTimeT &&value)
MetricAttribution & WithStatus(StatusT &&value)
AWS_PERSONALIZE_API MetricAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricAttribution & WithName(NameT &&value)
const MetricAttributionOutput & GetMetricsOutputConfig() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
MetricAttribution & WithFailureReason(FailureReasonT &&value)
MetricAttribution & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API MetricAttribution()=default
MetricAttribution & WithMetricsOutputConfig(MetricsOutputConfigT &&value)
MetricAttribution & WithMetricAttributionArn(MetricAttributionArnT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetDatasetGroupArn() const
void SetFailureReason(FailureReasonT &&value)
AWS_PERSONALIZE_API MetricAttribution(Aws::Utils::Json::JsonView jsonValue)
MetricAttribution & WithDatasetGroupArn(DatasetGroupArnT &&value)
const Aws::String & GetMetricAttributionArn() const
void SetMetricAttributionArn(MetricAttributionArnT &&value)
void SetMetricsOutputConfig(MetricsOutputConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue