AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MonitoringSchedule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/MonitoringExecutionSummary.h>
12#include <aws/sagemaker/model/MonitoringScheduleConfig.h>
13#include <aws/sagemaker/model/MonitoringType.h>
14#include <aws/sagemaker/model/ScheduleStatus.h>
15#include <aws/sagemaker/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
38 public:
39 AWS_SAGEMAKER_API MonitoringSchedule() = default;
40 AWS_SAGEMAKER_API MonitoringSchedule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetMonitoringScheduleArn() const { return m_monitoringScheduleArn; }
49 inline bool MonitoringScheduleArnHasBeenSet() const { return m_monitoringScheduleArnHasBeenSet; }
50 template <typename MonitoringScheduleArnT = Aws::String>
51 void SetMonitoringScheduleArn(MonitoringScheduleArnT&& value) {
52 m_monitoringScheduleArnHasBeenSet = true;
53 m_monitoringScheduleArn = std::forward<MonitoringScheduleArnT>(value);
54 }
55 template <typename MonitoringScheduleArnT = Aws::String>
56 MonitoringSchedule& WithMonitoringScheduleArn(MonitoringScheduleArnT&& value) {
57 SetMonitoringScheduleArn(std::forward<MonitoringScheduleArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetMonitoringScheduleName() const { return m_monitoringScheduleName; }
67 inline bool MonitoringScheduleNameHasBeenSet() const { return m_monitoringScheduleNameHasBeenSet; }
68 template <typename MonitoringScheduleNameT = Aws::String>
69 void SetMonitoringScheduleName(MonitoringScheduleNameT&& value) {
70 m_monitoringScheduleNameHasBeenSet = true;
71 m_monitoringScheduleName = std::forward<MonitoringScheduleNameT>(value);
72 }
73 template <typename MonitoringScheduleNameT = Aws::String>
74 MonitoringSchedule& WithMonitoringScheduleName(MonitoringScheduleNameT&& value) {
75 SetMonitoringScheduleName(std::forward<MonitoringScheduleNameT>(value));
76 return *this;
77 }
79
81
88 inline ScheduleStatus GetMonitoringScheduleStatus() const { return m_monitoringScheduleStatus; }
89 inline bool MonitoringScheduleStatusHasBeenSet() const { return m_monitoringScheduleStatusHasBeenSet; }
91 m_monitoringScheduleStatusHasBeenSet = true;
92 m_monitoringScheduleStatus = value;
93 }
96 return *this;
97 }
99
101
104 inline MonitoringType GetMonitoringType() const { return m_monitoringType; }
105 inline bool MonitoringTypeHasBeenSet() const { return m_monitoringTypeHasBeenSet; }
107 m_monitoringTypeHasBeenSet = true;
108 m_monitoringType = value;
109 }
111 SetMonitoringType(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
121 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
122 template <typename FailureReasonT = Aws::String>
123 void SetFailureReason(FailureReasonT&& value) {
124 m_failureReasonHasBeenSet = true;
125 m_failureReason = std::forward<FailureReasonT>(value);
126 }
127 template <typename FailureReasonT = Aws::String>
128 MonitoringSchedule& WithFailureReason(FailureReasonT&& value) {
129 SetFailureReason(std::forward<FailureReasonT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
139 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
140 template <typename CreationTimeT = Aws::Utils::DateTime>
141 void SetCreationTime(CreationTimeT&& value) {
142 m_creationTimeHasBeenSet = true;
143 m_creationTime = std::forward<CreationTimeT>(value);
144 }
145 template <typename CreationTimeT = Aws::Utils::DateTime>
146 MonitoringSchedule& WithCreationTime(CreationTimeT&& value) {
147 SetCreationTime(std::forward<CreationTimeT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
157 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
158 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
159 void SetLastModifiedTime(LastModifiedTimeT&& value) {
160 m_lastModifiedTimeHasBeenSet = true;
161 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
162 }
163 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
164 MonitoringSchedule& WithLastModifiedTime(LastModifiedTimeT&& value) {
165 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
166 return *this;
167 }
169
171
172 inline const MonitoringScheduleConfig& GetMonitoringScheduleConfig() const { return m_monitoringScheduleConfig; }
173 inline bool MonitoringScheduleConfigHasBeenSet() const { return m_monitoringScheduleConfigHasBeenSet; }
174 template <typename MonitoringScheduleConfigT = MonitoringScheduleConfig>
175 void SetMonitoringScheduleConfig(MonitoringScheduleConfigT&& value) {
176 m_monitoringScheduleConfigHasBeenSet = true;
177 m_monitoringScheduleConfig = std::forward<MonitoringScheduleConfigT>(value);
178 }
179 template <typename MonitoringScheduleConfigT = MonitoringScheduleConfig>
180 MonitoringSchedule& WithMonitoringScheduleConfig(MonitoringScheduleConfigT&& value) {
181 SetMonitoringScheduleConfig(std::forward<MonitoringScheduleConfigT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
191 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
192 template <typename EndpointNameT = Aws::String>
193 void SetEndpointName(EndpointNameT&& value) {
194 m_endpointNameHasBeenSet = true;
195 m_endpointName = std::forward<EndpointNameT>(value);
196 }
197 template <typename EndpointNameT = Aws::String>
198 MonitoringSchedule& WithEndpointName(EndpointNameT&& value) {
199 SetEndpointName(std::forward<EndpointNameT>(value));
200 return *this;
201 }
203
205
206 inline const MonitoringExecutionSummary& GetLastMonitoringExecutionSummary() const { return m_lastMonitoringExecutionSummary; }
207 inline bool LastMonitoringExecutionSummaryHasBeenSet() const { return m_lastMonitoringExecutionSummaryHasBeenSet; }
208 template <typename LastMonitoringExecutionSummaryT = MonitoringExecutionSummary>
209 void SetLastMonitoringExecutionSummary(LastMonitoringExecutionSummaryT&& value) {
210 m_lastMonitoringExecutionSummaryHasBeenSet = true;
211 m_lastMonitoringExecutionSummary = std::forward<LastMonitoringExecutionSummaryT>(value);
212 }
213 template <typename LastMonitoringExecutionSummaryT = MonitoringExecutionSummary>
214 MonitoringSchedule& WithLastMonitoringExecutionSummary(LastMonitoringExecutionSummaryT&& value) {
215 SetLastMonitoringExecutionSummary(std::forward<LastMonitoringExecutionSummaryT>(value));
216 return *this;
217 }
219
221
228 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
229 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
230 template <typename TagsT = Aws::Vector<Tag>>
231 void SetTags(TagsT&& value) {
232 m_tagsHasBeenSet = true;
233 m_tags = std::forward<TagsT>(value);
234 }
235 template <typename TagsT = Aws::Vector<Tag>>
236 MonitoringSchedule& WithTags(TagsT&& value) {
237 SetTags(std::forward<TagsT>(value));
238 return *this;
239 }
240 template <typename TagsT = Tag>
241 MonitoringSchedule& AddTags(TagsT&& value) {
242 m_tagsHasBeenSet = true;
243 m_tags.emplace_back(std::forward<TagsT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_monitoringScheduleArn;
249
250 Aws::String m_monitoringScheduleName;
251
252 ScheduleStatus m_monitoringScheduleStatus{ScheduleStatus::NOT_SET};
253
254 MonitoringType m_monitoringType{MonitoringType::NOT_SET};
255
256 Aws::String m_failureReason;
257
258 Aws::Utils::DateTime m_creationTime{};
259
260 Aws::Utils::DateTime m_lastModifiedTime{};
261
262 MonitoringScheduleConfig m_monitoringScheduleConfig;
263
264 Aws::String m_endpointName;
265
266 MonitoringExecutionSummary m_lastMonitoringExecutionSummary;
267
268 Aws::Vector<Tag> m_tags;
269 bool m_monitoringScheduleArnHasBeenSet = false;
270 bool m_monitoringScheduleNameHasBeenSet = false;
271 bool m_monitoringScheduleStatusHasBeenSet = false;
272 bool m_monitoringTypeHasBeenSet = false;
273 bool m_failureReasonHasBeenSet = false;
274 bool m_creationTimeHasBeenSet = false;
275 bool m_lastModifiedTimeHasBeenSet = false;
276 bool m_monitoringScheduleConfigHasBeenSet = false;
277 bool m_endpointNameHasBeenSet = false;
278 bool m_lastMonitoringExecutionSummaryHasBeenSet = false;
279 bool m_tagsHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace SageMaker
284} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API MonitoringSchedule(Aws::Utils::Json::JsonView jsonValue)
void SetLastMonitoringExecutionSummary(LastMonitoringExecutionSummaryT &&value)
MonitoringSchedule & WithMonitoringScheduleArn(MonitoringScheduleArnT &&value)
const MonitoringScheduleConfig & GetMonitoringScheduleConfig() const
MonitoringSchedule & WithMonitoringType(MonitoringType value)
AWS_SAGEMAKER_API MonitoringSchedule()=default
const MonitoringExecutionSummary & GetLastMonitoringExecutionSummary() const
void SetMonitoringScheduleName(MonitoringScheduleNameT &&value)
void SetMonitoringScheduleArn(MonitoringScheduleArnT &&value)
MonitoringSchedule & WithMonitoringScheduleConfig(MonitoringScheduleConfigT &&value)
MonitoringSchedule & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Tag > & GetTags() const
MonitoringSchedule & WithLastModifiedTime(LastModifiedTimeT &&value)
MonitoringSchedule & WithFailureReason(FailureReasonT &&value)
AWS_SAGEMAKER_API MonitoringSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
MonitoringSchedule & WithLastMonitoringExecutionSummary(LastMonitoringExecutionSummaryT &&value)
MonitoringSchedule & WithEndpointName(EndpointNameT &&value)
MonitoringSchedule & AddTags(TagsT &&value)
void SetMonitoringScheduleConfig(MonitoringScheduleConfigT &&value)
void SetMonitoringScheduleStatus(ScheduleStatus value)
MonitoringSchedule & WithMonitoringScheduleName(MonitoringScheduleNameT &&value)
void SetFailureReason(FailureReasonT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetMonitoringScheduleName() const
MonitoringSchedule & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
MonitoringSchedule & WithMonitoringScheduleStatus(ScheduleStatus value)
const Aws::String & GetMonitoringScheduleArn() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue