AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MonitoringSchedule.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ScheduleStatus.h>
10#include <aws/sagemaker/model/MonitoringType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/MonitoringScheduleConfig.h>
13#include <aws/sagemaker/model/MonitoringExecutionSummary.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
42 {
43 public:
44 AWS_SAGEMAKER_API MonitoringSchedule() = default;
45 AWS_SAGEMAKER_API MonitoringSchedule(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetMonitoringScheduleArn() const { return m_monitoringScheduleArn; }
55 inline bool MonitoringScheduleArnHasBeenSet() const { return m_monitoringScheduleArnHasBeenSet; }
56 template<typename MonitoringScheduleArnT = Aws::String>
57 void SetMonitoringScheduleArn(MonitoringScheduleArnT&& value) { m_monitoringScheduleArnHasBeenSet = true; m_monitoringScheduleArn = std::forward<MonitoringScheduleArnT>(value); }
58 template<typename MonitoringScheduleArnT = Aws::String>
59 MonitoringSchedule& WithMonitoringScheduleArn(MonitoringScheduleArnT&& value) { SetMonitoringScheduleArn(std::forward<MonitoringScheduleArnT>(value)); return *this;}
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) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName = std::forward<MonitoringScheduleNameT>(value); }
70 template<typename MonitoringScheduleNameT = Aws::String>
71 MonitoringSchedule& WithMonitoringScheduleName(MonitoringScheduleNameT&& value) { SetMonitoringScheduleName(std::forward<MonitoringScheduleNameT>(value)); return *this;}
73
75
82 inline ScheduleStatus GetMonitoringScheduleStatus() const { return m_monitoringScheduleStatus; }
83 inline bool MonitoringScheduleStatusHasBeenSet() const { return m_monitoringScheduleStatusHasBeenSet; }
84 inline void SetMonitoringScheduleStatus(ScheduleStatus value) { m_monitoringScheduleStatusHasBeenSet = true; m_monitoringScheduleStatus = value; }
87
89
92 inline MonitoringType GetMonitoringType() const { return m_monitoringType; }
93 inline bool MonitoringTypeHasBeenSet() const { return m_monitoringTypeHasBeenSet; }
94 inline void SetMonitoringType(MonitoringType value) { m_monitoringTypeHasBeenSet = true; m_monitoringType = value; }
97
99
102 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
103 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
104 template<typename FailureReasonT = Aws::String>
105 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
106 template<typename FailureReasonT = Aws::String>
107 MonitoringSchedule& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
115 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
116 template<typename CreationTimeT = Aws::Utils::DateTime>
117 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
118 template<typename CreationTimeT = Aws::Utils::DateTime>
119 MonitoringSchedule& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
127 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
128 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
129 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
130 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
131 MonitoringSchedule& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
133
135
136 inline const MonitoringScheduleConfig& GetMonitoringScheduleConfig() const { return m_monitoringScheduleConfig; }
137 inline bool MonitoringScheduleConfigHasBeenSet() const { return m_monitoringScheduleConfigHasBeenSet; }
138 template<typename MonitoringScheduleConfigT = MonitoringScheduleConfig>
139 void SetMonitoringScheduleConfig(MonitoringScheduleConfigT&& value) { m_monitoringScheduleConfigHasBeenSet = true; m_monitoringScheduleConfig = std::forward<MonitoringScheduleConfigT>(value); }
140 template<typename MonitoringScheduleConfigT = MonitoringScheduleConfig>
141 MonitoringSchedule& WithMonitoringScheduleConfig(MonitoringScheduleConfigT&& value) { SetMonitoringScheduleConfig(std::forward<MonitoringScheduleConfigT>(value)); return *this;}
143
145
148 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
149 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
150 template<typename EndpointNameT = Aws::String>
151 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
152 template<typename EndpointNameT = Aws::String>
153 MonitoringSchedule& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
155
157
158 inline const MonitoringExecutionSummary& GetLastMonitoringExecutionSummary() const { return m_lastMonitoringExecutionSummary; }
159 inline bool LastMonitoringExecutionSummaryHasBeenSet() const { return m_lastMonitoringExecutionSummaryHasBeenSet; }
160 template<typename LastMonitoringExecutionSummaryT = MonitoringExecutionSummary>
161 void SetLastMonitoringExecutionSummary(LastMonitoringExecutionSummaryT&& value) { m_lastMonitoringExecutionSummaryHasBeenSet = true; m_lastMonitoringExecutionSummary = std::forward<LastMonitoringExecutionSummaryT>(value); }
162 template<typename LastMonitoringExecutionSummaryT = MonitoringExecutionSummary>
163 MonitoringSchedule& WithLastMonitoringExecutionSummary(LastMonitoringExecutionSummaryT&& value) { SetLastMonitoringExecutionSummary(std::forward<LastMonitoringExecutionSummaryT>(value)); return *this;}
165
167
174 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template<typename TagsT = Aws::Vector<Tag>>
177 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
178 template<typename TagsT = Aws::Vector<Tag>>
179 MonitoringSchedule& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
180 template<typename TagsT = Tag>
181 MonitoringSchedule& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
183 private:
184
185 Aws::String m_monitoringScheduleArn;
186 bool m_monitoringScheduleArnHasBeenSet = false;
187
188 Aws::String m_monitoringScheduleName;
189 bool m_monitoringScheduleNameHasBeenSet = false;
190
191 ScheduleStatus m_monitoringScheduleStatus{ScheduleStatus::NOT_SET};
192 bool m_monitoringScheduleStatusHasBeenSet = false;
193
194 MonitoringType m_monitoringType{MonitoringType::NOT_SET};
195 bool m_monitoringTypeHasBeenSet = false;
196
197 Aws::String m_failureReason;
198 bool m_failureReasonHasBeenSet = false;
199
200 Aws::Utils::DateTime m_creationTime{};
201 bool m_creationTimeHasBeenSet = false;
202
203 Aws::Utils::DateTime m_lastModifiedTime{};
204 bool m_lastModifiedTimeHasBeenSet = false;
205
206 MonitoringScheduleConfig m_monitoringScheduleConfig;
207 bool m_monitoringScheduleConfigHasBeenSet = false;
208
209 Aws::String m_endpointName;
210 bool m_endpointNameHasBeenSet = false;
211
212 MonitoringExecutionSummary m_lastMonitoringExecutionSummary;
213 bool m_lastMonitoringExecutionSummaryHasBeenSet = false;
214
215 Aws::Vector<Tag> m_tags;
216 bool m_tagsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace SageMaker
221} // 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