AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline MetricAttribution& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline MetricAttribution& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline MetricAttribution& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetMetricAttributionArn() const{ return m_metricAttributionArn; }
66 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
67 inline void SetMetricAttributionArn(const Aws::String& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = value; }
68 inline void SetMetricAttributionArn(Aws::String&& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::move(value); }
69 inline void SetMetricAttributionArn(const char* value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn.assign(value); }
71 inline MetricAttribution& WithMetricAttributionArn(Aws::String&& value) { SetMetricAttributionArn(std::move(value)); return *this;}
72 inline MetricAttribution& WithMetricAttributionArn(const char* value) { SetMetricAttributionArn(value); return *this;}
74
76
79 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
80 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
81 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
82 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
83 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
84 inline MetricAttribution& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
85 inline MetricAttribution& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
86 inline MetricAttribution& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
88
90
93 inline const MetricAttributionOutput& GetMetricsOutputConfig() const{ return m_metricsOutputConfig; }
94 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
95 inline void SetMetricsOutputConfig(const MetricAttributionOutput& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = value; }
96 inline void SetMetricsOutputConfig(MetricAttributionOutput&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::move(value); }
100
102
105 inline const Aws::String& GetStatus() const{ return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
108 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
109 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
110 inline MetricAttribution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
111 inline MetricAttribution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
112 inline MetricAttribution& WithStatus(const char* value) { SetStatus(value); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
120 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
121 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
122 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
124 inline MetricAttribution& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
132 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
133 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
134 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
138
140
143 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
144 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
145 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
146 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
147 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
148 inline MetricAttribution& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
149 inline MetricAttribution& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
150 inline MetricAttribution& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
152 private:
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 Aws::String m_metricAttributionArn;
158 bool m_metricAttributionArnHasBeenSet = false;
159
160 Aws::String m_datasetGroupArn;
161 bool m_datasetGroupArnHasBeenSet = false;
162
163 MetricAttributionOutput m_metricsOutputConfig;
164 bool m_metricsOutputConfigHasBeenSet = false;
165
166 Aws::String m_status;
167 bool m_statusHasBeenSet = false;
168
169 Aws::Utils::DateTime m_creationDateTime;
170 bool m_creationDateTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastUpdatedDateTime;
173 bool m_lastUpdatedDateTimeHasBeenSet = false;
174
175 Aws::String m_failureReason;
176 bool m_failureReasonHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace Personalize
181} // namespace Aws
MetricAttribution & WithMetricAttributionArn(const Aws::String &value)
void SetMetricAttributionArn(Aws::String &&value)
MetricAttribution & WithMetricsOutputConfig(MetricAttributionOutput &&value)
void SetName(const Aws::String &value)
MetricAttribution & WithStatus(const Aws::String &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
MetricAttribution & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
void SetDatasetGroupArn(const Aws::String &value)
MetricAttribution & WithDatasetGroupArn(Aws::String &&value)
MetricAttribution & WithFailureReason(Aws::String &&value)
MetricAttribution & WithMetricAttributionArn(const char *value)
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
MetricAttribution & WithName(Aws::String &&value)
MetricAttribution & WithCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
void SetMetricsOutputConfig(const MetricAttributionOutput &value)
void SetFailureReason(const Aws::String &value)
AWS_PERSONALIZE_API MetricAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
MetricAttribution & WithFailureReason(const char *value)
void SetStatus(const Aws::String &value)
const MetricAttributionOutput & GetMetricsOutputConfig() const
MetricAttribution & WithMetricsOutputConfig(const MetricAttributionOutput &value)
MetricAttribution & WithCreationDateTime(Aws::Utils::DateTime &&value)
MetricAttribution & WithStatus(const char *value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricsOutputConfig(MetricAttributionOutput &&value)
MetricAttribution & WithDatasetGroupArn(const char *value)
MetricAttribution & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
MetricAttribution & WithFailureReason(const Aws::String &value)
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
const Aws::String & GetDatasetGroupArn() const
AWS_PERSONALIZE_API MetricAttribution(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetricAttributionArn() const
MetricAttribution & WithMetricAttributionArn(Aws::String &&value)
MetricAttribution & WithName(const char *value)
MetricAttribution & WithStatus(Aws::String &&value)
MetricAttribution & WithDatasetGroupArn(const Aws::String &value)
MetricAttribution & WithName(const Aws::String &value)
void SetMetricAttributionArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue