AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
MetricAttributionSummary.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Personalize {
21namespace Model {
22
32 public:
33 AWS_PERSONALIZE_API MetricAttributionSummary() = default;
36 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMetricAttributionArn() const { return m_metricAttributionArn; }
61 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
62 template <typename MetricAttributionArnT = Aws::String>
63 void SetMetricAttributionArn(MetricAttributionArnT&& value) {
64 m_metricAttributionArnHasBeenSet = true;
65 m_metricAttributionArn = std::forward<MetricAttributionArnT>(value);
66 }
67 template <typename MetricAttributionArnT = Aws::String>
68 MetricAttributionSummary& WithMetricAttributionArn(MetricAttributionArnT&& value) {
69 SetMetricAttributionArn(std::forward<MetricAttributionArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 template <typename StatusT = Aws::String>
81 void SetStatus(StatusT&& value) {
82 m_statusHasBeenSet = true;
83 m_status = std::forward<StatusT>(value);
84 }
85 template <typename StatusT = Aws::String>
87 SetStatus(std::forward<StatusT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
97 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
98 template <typename CreationDateTimeT = Aws::Utils::DateTime>
99 void SetCreationDateTime(CreationDateTimeT&& value) {
100 m_creationDateTimeHasBeenSet = true;
101 m_creationDateTime = std::forward<CreationDateTimeT>(value);
102 }
103 template <typename CreationDateTimeT = Aws::Utils::DateTime>
104 MetricAttributionSummary& WithCreationDateTime(CreationDateTimeT&& value) {
105 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
115 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
116 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
117 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
118 m_lastUpdatedDateTimeHasBeenSet = true;
119 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
120 }
121 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
122 MetricAttributionSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
123 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
133 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
134 template <typename FailureReasonT = Aws::String>
135 void SetFailureReason(FailureReasonT&& value) {
136 m_failureReasonHasBeenSet = true;
137 m_failureReason = std::forward<FailureReasonT>(value);
138 }
139 template <typename FailureReasonT = Aws::String>
141 SetFailureReason(std::forward<FailureReasonT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_name;
147
148 Aws::String m_metricAttributionArn;
149
150 Aws::String m_status;
151
152 Aws::Utils::DateTime m_creationDateTime{};
153
154 Aws::Utils::DateTime m_lastUpdatedDateTime{};
155
156 Aws::String m_failureReason;
157 bool m_nameHasBeenSet = false;
158 bool m_metricAttributionArnHasBeenSet = false;
159 bool m_statusHasBeenSet = false;
160 bool m_creationDateTimeHasBeenSet = false;
161 bool m_lastUpdatedDateTimeHasBeenSet = false;
162 bool m_failureReasonHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Personalize
167} // namespace Aws
AWS_PERSONALIZE_API MetricAttributionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
MetricAttributionSummary & WithFailureReason(FailureReasonT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
MetricAttributionSummary & WithName(NameT &&value)
MetricAttributionSummary & WithMetricAttributionArn(MetricAttributionArnT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
MetricAttributionSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
MetricAttributionSummary & WithCreationDateTime(CreationDateTimeT &&value)
void SetMetricAttributionArn(MetricAttributionArnT &&value)
MetricAttributionSummary & WithStatus(StatusT &&value)
AWS_PERSONALIZE_API MetricAttributionSummary()=default
AWS_PERSONALIZE_API MetricAttributionSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue