AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ClusterEventDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ClusterEventLevel.h>
11#include <aws/sagemaker/model/ClusterEventResourceType.h>
12#include <aws/sagemaker/model/EventDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
33 public:
34 AWS_SAGEMAKER_API ClusterEventDetail() = default;
35 AWS_SAGEMAKER_API ClusterEventDetail(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetEventId() const { return m_eventId; }
44 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
45 template <typename EventIdT = Aws::String>
46 void SetEventId(EventIdT&& value) {
47 m_eventIdHasBeenSet = true;
48 m_eventId = std::forward<EventIdT>(value);
49 }
50 template <typename EventIdT = Aws::String>
51 ClusterEventDetail& WithEventId(EventIdT&& value) {
52 SetEventId(std::forward<EventIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
63 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
64 template <typename ClusterArnT = Aws::String>
65 void SetClusterArn(ClusterArnT&& value) {
66 m_clusterArnHasBeenSet = true;
67 m_clusterArn = std::forward<ClusterArnT>(value);
68 }
69 template <typename ClusterArnT = Aws::String>
70 ClusterEventDetail& WithClusterArn(ClusterArnT&& value) {
71 SetClusterArn(std::forward<ClusterArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetClusterName() const { return m_clusterName; }
81 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
82 template <typename ClusterNameT = Aws::String>
83 void SetClusterName(ClusterNameT&& value) {
84 m_clusterNameHasBeenSet = true;
85 m_clusterName = std::forward<ClusterNameT>(value);
86 }
87 template <typename ClusterNameT = Aws::String>
88 ClusterEventDetail& WithClusterName(ClusterNameT&& value) {
89 SetClusterName(std::forward<ClusterNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
99 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
100 template <typename InstanceGroupNameT = Aws::String>
101 void SetInstanceGroupName(InstanceGroupNameT&& value) {
102 m_instanceGroupNameHasBeenSet = true;
103 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
104 }
105 template <typename InstanceGroupNameT = Aws::String>
106 ClusterEventDetail& WithInstanceGroupName(InstanceGroupNameT&& value) {
107 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
117 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
118 template <typename InstanceIdT = Aws::String>
119 void SetInstanceId(InstanceIdT&& value) {
120 m_instanceIdHasBeenSet = true;
121 m_instanceId = std::forward<InstanceIdT>(value);
122 }
123 template <typename InstanceIdT = Aws::String>
124 ClusterEventDetail& WithInstanceId(InstanceIdT&& value) {
125 SetInstanceId(std::forward<InstanceIdT>(value));
126 return *this;
127 }
129
131
135 inline ClusterEventResourceType GetResourceType() const { return m_resourceType; }
136 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
138 m_resourceTypeHasBeenSet = true;
139 m_resourceType = value;
140 }
142 SetResourceType(value);
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
152 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
153 template <typename EventTimeT = Aws::Utils::DateTime>
154 void SetEventTime(EventTimeT&& value) {
155 m_eventTimeHasBeenSet = true;
156 m_eventTime = std::forward<EventTimeT>(value);
157 }
158 template <typename EventTimeT = Aws::Utils::DateTime>
159 ClusterEventDetail& WithEventTime(EventTimeT&& value) {
160 SetEventTime(std::forward<EventTimeT>(value));
161 return *this;
162 }
164
166
169 inline const EventDetails& GetEventDetails() const { return m_eventDetails; }
170 inline bool EventDetailsHasBeenSet() const { return m_eventDetailsHasBeenSet; }
171 template <typename EventDetailsT = EventDetails>
172 void SetEventDetails(EventDetailsT&& value) {
173 m_eventDetailsHasBeenSet = true;
174 m_eventDetails = std::forward<EventDetailsT>(value);
175 }
176 template <typename EventDetailsT = EventDetails>
177 ClusterEventDetail& WithEventDetails(EventDetailsT&& value) {
178 SetEventDetails(std::forward<EventDetailsT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetDescription() const { return m_description; }
188 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
189 template <typename DescriptionT = Aws::String>
190 void SetDescription(DescriptionT&& value) {
191 m_descriptionHasBeenSet = true;
192 m_description = std::forward<DescriptionT>(value);
193 }
194 template <typename DescriptionT = Aws::String>
195 ClusterEventDetail& WithDescription(DescriptionT&& value) {
196 SetDescription(std::forward<DescriptionT>(value));
197 return *this;
198 }
200
202
206 inline ClusterEventLevel GetEventLevel() const { return m_eventLevel; }
207 inline bool EventLevelHasBeenSet() const { return m_eventLevelHasBeenSet; }
208 inline void SetEventLevel(ClusterEventLevel value) {
209 m_eventLevelHasBeenSet = true;
210 m_eventLevel = value;
211 }
213 SetEventLevel(value);
214 return *this;
215 }
217 private:
218 Aws::String m_eventId;
219
220 Aws::String m_clusterArn;
221
222 Aws::String m_clusterName;
223
224 Aws::String m_instanceGroupName;
225
226 Aws::String m_instanceId;
227
229
230 Aws::Utils::DateTime m_eventTime{};
231
232 EventDetails m_eventDetails;
233
234 Aws::String m_description;
235
237 bool m_eventIdHasBeenSet = false;
238 bool m_clusterArnHasBeenSet = false;
239 bool m_clusterNameHasBeenSet = false;
240 bool m_instanceGroupNameHasBeenSet = false;
241 bool m_instanceIdHasBeenSet = false;
242 bool m_resourceTypeHasBeenSet = false;
243 bool m_eventTimeHasBeenSet = false;
244 bool m_eventDetailsHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_eventLevelHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace SageMaker
251} // namespace Aws
AWS_SAGEMAKER_API ClusterEventDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterEventDetail()=default
ClusterEventDetail & WithInstanceId(InstanceIdT &&value)
ClusterEventDetail & WithEventId(EventIdT &&value)
ClusterEventDetail & WithResourceType(ClusterEventResourceType value)
void SetInstanceGroupName(InstanceGroupNameT &&value)
ClusterEventDetail & WithDescription(DescriptionT &&value)
ClusterEventDetail & WithEventTime(EventTimeT &&value)
void SetEventLevel(ClusterEventLevel value)
const EventDetails & GetEventDetails() const
ClusterEventDetail & WithInstanceGroupName(InstanceGroupNameT &&value)
AWS_SAGEMAKER_API ClusterEventDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterEventResourceType GetResourceType() const
ClusterEventDetail & WithEventLevel(ClusterEventLevel value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterEventDetail & WithClusterArn(ClusterArnT &&value)
ClusterEventDetail & WithClusterName(ClusterNameT &&value)
ClusterEventDetail & WithEventDetails(EventDetailsT &&value)
void SetResourceType(ClusterEventResourceType value)
const Aws::String & GetInstanceGroupName() const
const Aws::Utils::DateTime & GetEventTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue