AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline MetricAttributionSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline MetricAttributionSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline MetricAttributionSummary& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetMetricAttributionArn() const{ return m_metricAttributionArn; }
63 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
64 inline void SetMetricAttributionArn(const Aws::String& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = value; }
65 inline void SetMetricAttributionArn(Aws::String&& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::move(value); }
66 inline void SetMetricAttributionArn(const char* value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn.assign(value); }
68 inline MetricAttributionSummary& WithMetricAttributionArn(Aws::String&& value) { SetMetricAttributionArn(std::move(value)); return *this;}
69 inline MetricAttributionSummary& WithMetricAttributionArn(const char* value) { SetMetricAttributionArn(value); return *this;}
71
73
76 inline const Aws::String& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
81 inline MetricAttributionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
82 inline MetricAttributionSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
83 inline MetricAttributionSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
91 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
92 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
93 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
97
99
102 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
103 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
104 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
105 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
109
111
114 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
115 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
116 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
117 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
118 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
119 inline MetricAttributionSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
120 inline MetricAttributionSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
121 inline MetricAttributionSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
123 private:
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_metricAttributionArn;
129 bool m_metricAttributionArnHasBeenSet = false;
130
131 Aws::String m_status;
132 bool m_statusHasBeenSet = false;
133
134 Aws::Utils::DateTime m_creationDateTime;
135 bool m_creationDateTimeHasBeenSet = false;
136
137 Aws::Utils::DateTime m_lastUpdatedDateTime;
138 bool m_lastUpdatedDateTimeHasBeenSet = false;
139
140 Aws::String m_failureReason;
141 bool m_failureReasonHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Personalize
146} // namespace Aws
AWS_PERSONALIZE_API MetricAttributionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
MetricAttributionSummary & WithCreationDateTime(Aws::Utils::DateTime &&value)
MetricAttributionSummary & WithFailureReason(const Aws::String &value)
MetricAttributionSummary & WithName(const Aws::String &value)
MetricAttributionSummary & WithStatus(const char *value)
MetricAttributionSummary & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
MetricAttributionSummary & WithStatus(Aws::String &&value)
MetricAttributionSummary & WithCreationDateTime(const Aws::Utils::DateTime &value)
MetricAttributionSummary & WithMetricAttributionArn(const char *value)
MetricAttributionSummary & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
MetricAttributionSummary & WithFailureReason(Aws::String &&value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
MetricAttributionSummary & WithName(const char *value)
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
MetricAttributionSummary & WithName(Aws::String &&value)
AWS_PERSONALIZE_API MetricAttributionSummary(Aws::Utils::Json::JsonView jsonValue)
MetricAttributionSummary & WithMetricAttributionArn(Aws::String &&value)
MetricAttributionSummary & WithStatus(const Aws::String &value)
MetricAttributionSummary & WithMetricAttributionArn(const Aws::String &value)
MetricAttributionSummary & WithFailureReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue