AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricAttributionSummary.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PERSONALIZE_API MetricAttributionSummary() = default;
41 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 MetricAttributionSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::forward<MetricAttributionArnT>(value); }
64 template<typename MetricAttributionArnT = Aws::String>
65 MetricAttributionSummary& WithMetricAttributionArn(MetricAttributionArnT&& value) { SetMetricAttributionArn(std::forward<MetricAttributionArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 template<typename StatusT = Aws::String>
75 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
76 template<typename StatusT = Aws::String>
77 MetricAttributionSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
85 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
86 template<typename CreationDateTimeT = Aws::Utils::DateTime>
87 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
88 template<typename CreationDateTimeT = Aws::Utils::DateTime>
89 MetricAttributionSummary& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
97 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
98 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
99 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
100 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
101 MetricAttributionSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
103
105
108 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
109 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
110 template<typename FailureReasonT = Aws::String>
111 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
112 template<typename FailureReasonT = Aws::String>
113 MetricAttributionSummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_metricAttributionArn;
121 bool m_metricAttributionArnHasBeenSet = false;
122
123 Aws::String m_status;
124 bool m_statusHasBeenSet = false;
125
126 Aws::Utils::DateTime m_creationDateTime{};
127 bool m_creationDateTimeHasBeenSet = false;
128
129 Aws::Utils::DateTime m_lastUpdatedDateTime{};
130 bool m_lastUpdatedDateTimeHasBeenSet = false;
131
132 Aws::String m_failureReason;
133 bool m_failureReasonHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Personalize
138} // 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
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
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