AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
ExperimentRunSummary.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/ExperimentRunStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppConfig {
22namespace Model {
23
30 public:
31 AWS_APPCONFIG_API ExperimentRunSummary() = default;
34 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetExperimentDefinitionId() const { return m_experimentDefinitionId; }
41 inline bool ExperimentDefinitionIdHasBeenSet() const { return m_experimentDefinitionIdHasBeenSet; }
42 template <typename ExperimentDefinitionIdT = Aws::String>
43 void SetExperimentDefinitionId(ExperimentDefinitionIdT&& value) {
44 m_experimentDefinitionIdHasBeenSet = true;
45 m_experimentDefinitionId = std::forward<ExperimentDefinitionIdT>(value);
46 }
47 template <typename ExperimentDefinitionIdT = Aws::String>
48 ExperimentRunSummary& WithExperimentDefinitionId(ExperimentDefinitionIdT&& value) {
49 SetExperimentDefinitionId(std::forward<ExperimentDefinitionIdT>(value));
50 return *this;
51 }
53
55
58 inline int GetRun() const { return m_run; }
59 inline bool RunHasBeenSet() const { return m_runHasBeenSet; }
60 inline void SetRun(int value) {
61 m_runHasBeenSet = true;
62 m_run = value;
63 }
64 inline ExperimentRunSummary& WithRun(int value) {
65 SetRun(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 ExperimentRunSummary& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline ExperimentRunStatus GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(ExperimentRunStatus value) {
95 m_statusHasBeenSet = true;
96 m_status = value;
97 }
99 SetStatus(value);
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
109 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
110 template <typename StartedAtT = Aws::Utils::DateTime>
111 void SetStartedAt(StartedAtT&& value) {
112 m_startedAtHasBeenSet = true;
113 m_startedAt = std::forward<StartedAtT>(value);
114 }
115 template <typename StartedAtT = Aws::Utils::DateTime>
116 ExperimentRunSummary& WithStartedAt(StartedAtT&& value) {
117 SetStartedAt(std::forward<StartedAtT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
128 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
129 template <typename UpdatedAtT = Aws::Utils::DateTime>
130 void SetUpdatedAt(UpdatedAtT&& value) {
131 m_updatedAtHasBeenSet = true;
132 m_updatedAt = std::forward<UpdatedAtT>(value);
133 }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 ExperimentRunSummary& WithUpdatedAt(UpdatedAtT&& value) {
136 SetUpdatedAt(std::forward<UpdatedAtT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
146 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
147 template <typename EndedAtT = Aws::Utils::DateTime>
148 void SetEndedAt(EndedAtT&& value) {
149 m_endedAtHasBeenSet = true;
150 m_endedAt = std::forward<EndedAtT>(value);
151 }
152 template <typename EndedAtT = Aws::Utils::DateTime>
154 SetEndedAt(std::forward<EndedAtT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_experimentDefinitionId;
160
161 int m_run{0};
162
163 Aws::String m_description;
164
166
167 Aws::Utils::DateTime m_startedAt{};
168
169 Aws::Utils::DateTime m_updatedAt{};
170
171 Aws::Utils::DateTime m_endedAt{};
172 bool m_experimentDefinitionIdHasBeenSet = false;
173 bool m_runHasBeenSet = false;
174 bool m_descriptionHasBeenSet = false;
175 bool m_statusHasBeenSet = false;
176 bool m_startedAtHasBeenSet = false;
177 bool m_updatedAtHasBeenSet = false;
178 bool m_endedAtHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace AppConfig
183} // namespace Aws
ExperimentRunSummary & WithExperimentDefinitionId(ExperimentDefinitionIdT &&value)
ExperimentRunSummary & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
ExperimentRunSummary & WithDescription(DescriptionT &&value)
AWS_APPCONFIG_API ExperimentRunSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartedAt() const
AWS_APPCONFIG_API ExperimentRunSummary()=default
ExperimentRunSummary & WithStatus(ExperimentRunStatus value)
void SetExperimentDefinitionId(ExperimentDefinitionIdT &&value)
const Aws::String & GetExperimentDefinitionId() const
AWS_APPCONFIG_API ExperimentRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentRunSummary & WithRun(int value)
ExperimentRunSummary & WithUpdatedAt(UpdatedAtT &&value)
ExperimentRunSummary & WithEndedAt(EndedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue