AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricAttribution.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/MetricAttributionOutput.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
39 {
40 public:
41 AWS_PERSONALIZE_API MetricAttribution() = default;
42 AWS_PERSONALIZE_API MetricAttribution(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 MetricAttribution& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::forward<MetricAttributionArnT>(value); }
67 template<typename MetricAttributionArnT = Aws::String>
68 MetricAttribution& WithMetricAttributionArn(MetricAttributionArnT&& value) { SetMetricAttributionArn(std::forward<MetricAttributionArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
76 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
77 template<typename DatasetGroupArnT = Aws::String>
78 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
79 template<typename DatasetGroupArnT = Aws::String>
80 MetricAttribution& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
82
84
87 inline const MetricAttributionOutput& GetMetricsOutputConfig() const { return m_metricsOutputConfig; }
88 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
89 template<typename MetricsOutputConfigT = MetricAttributionOutput>
90 void SetMetricsOutputConfig(MetricsOutputConfigT&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::forward<MetricsOutputConfigT>(value); }
91 template<typename MetricsOutputConfigT = MetricAttributionOutput>
92 MetricAttribution& WithMetricsOutputConfig(MetricsOutputConfigT&& value) { SetMetricsOutputConfig(std::forward<MetricsOutputConfigT>(value)); return *this;}
94
96
99 inline const Aws::String& GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 template<typename StatusT = Aws::String>
102 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
103 template<typename StatusT = Aws::String>
104 MetricAttribution& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
112 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
113 template<typename CreationDateTimeT = Aws::Utils::DateTime>
114 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
115 template<typename CreationDateTimeT = Aws::Utils::DateTime>
116 MetricAttribution& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
124 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
125 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
126 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
127 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
128 MetricAttribution& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
130
132
135 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
136 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
137 template<typename FailureReasonT = Aws::String>
138 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
139 template<typename FailureReasonT = Aws::String>
140 MetricAttribution& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
142 private:
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_metricAttributionArn;
148 bool m_metricAttributionArnHasBeenSet = false;
149
150 Aws::String m_datasetGroupArn;
151 bool m_datasetGroupArnHasBeenSet = false;
152
153 MetricAttributionOutput m_metricsOutputConfig;
154 bool m_metricsOutputConfigHasBeenSet = false;
155
156 Aws::String m_status;
157 bool m_statusHasBeenSet = false;
158
159 Aws::Utils::DateTime m_creationDateTime{};
160 bool m_creationDateTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_lastUpdatedDateTime{};
163 bool m_lastUpdatedDateTimeHasBeenSet = false;
164
165 Aws::String m_failureReason;
166 bool m_failureReasonHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace Personalize
171} // 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