AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/ClusterEventResourceType.h>
11#include <aws/sagemaker/model/EventDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKER_API ClusterEventDetail() = default;
34 AWS_SAGEMAKER_API ClusterEventDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetEventId() const { return m_eventId; }
43 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
44 template <typename EventIdT = Aws::String>
45 void SetEventId(EventIdT&& value) {
46 m_eventIdHasBeenSet = true;
47 m_eventId = std::forward<EventIdT>(value);
48 }
49 template <typename EventIdT = Aws::String>
50 ClusterEventDetail& WithEventId(EventIdT&& value) {
51 SetEventId(std::forward<EventIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
62 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
63 template <typename ClusterArnT = Aws::String>
64 void SetClusterArn(ClusterArnT&& value) {
65 m_clusterArnHasBeenSet = true;
66 m_clusterArn = std::forward<ClusterArnT>(value);
67 }
68 template <typename ClusterArnT = Aws::String>
69 ClusterEventDetail& WithClusterArn(ClusterArnT&& value) {
70 SetClusterArn(std::forward<ClusterArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetClusterName() const { return m_clusterName; }
80 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
81 template <typename ClusterNameT = Aws::String>
82 void SetClusterName(ClusterNameT&& value) {
83 m_clusterNameHasBeenSet = true;
84 m_clusterName = std::forward<ClusterNameT>(value);
85 }
86 template <typename ClusterNameT = Aws::String>
87 ClusterEventDetail& WithClusterName(ClusterNameT&& value) {
88 SetClusterName(std::forward<ClusterNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
98 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
99 template <typename InstanceGroupNameT = Aws::String>
100 void SetInstanceGroupName(InstanceGroupNameT&& value) {
101 m_instanceGroupNameHasBeenSet = true;
102 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
103 }
104 template <typename InstanceGroupNameT = Aws::String>
105 ClusterEventDetail& WithInstanceGroupName(InstanceGroupNameT&& value) {
106 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
116 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
117 template <typename InstanceIdT = Aws::String>
118 void SetInstanceId(InstanceIdT&& value) {
119 m_instanceIdHasBeenSet = true;
120 m_instanceId = std::forward<InstanceIdT>(value);
121 }
122 template <typename InstanceIdT = Aws::String>
123 ClusterEventDetail& WithInstanceId(InstanceIdT&& value) {
124 SetInstanceId(std::forward<InstanceIdT>(value));
125 return *this;
126 }
128
130
134 inline ClusterEventResourceType GetResourceType() const { return m_resourceType; }
135 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
137 m_resourceTypeHasBeenSet = true;
138 m_resourceType = value;
139 }
141 SetResourceType(value);
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
151 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
152 template <typename EventTimeT = Aws::Utils::DateTime>
153 void SetEventTime(EventTimeT&& value) {
154 m_eventTimeHasBeenSet = true;
155 m_eventTime = std::forward<EventTimeT>(value);
156 }
157 template <typename EventTimeT = Aws::Utils::DateTime>
158 ClusterEventDetail& WithEventTime(EventTimeT&& value) {
159 SetEventTime(std::forward<EventTimeT>(value));
160 return *this;
161 }
163
165
168 inline const EventDetails& GetEventDetails() const { return m_eventDetails; }
169 inline bool EventDetailsHasBeenSet() const { return m_eventDetailsHasBeenSet; }
170 template <typename EventDetailsT = EventDetails>
171 void SetEventDetails(EventDetailsT&& value) {
172 m_eventDetailsHasBeenSet = true;
173 m_eventDetails = std::forward<EventDetailsT>(value);
174 }
175 template <typename EventDetailsT = EventDetails>
176 ClusterEventDetail& WithEventDetails(EventDetailsT&& value) {
177 SetEventDetails(std::forward<EventDetailsT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetDescription() const { return m_description; }
187 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
188 template <typename DescriptionT = Aws::String>
189 void SetDescription(DescriptionT&& value) {
190 m_descriptionHasBeenSet = true;
191 m_description = std::forward<DescriptionT>(value);
192 }
193 template <typename DescriptionT = Aws::String>
194 ClusterEventDetail& WithDescription(DescriptionT&& value) {
195 SetDescription(std::forward<DescriptionT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_eventId;
201
202 Aws::String m_clusterArn;
203
204 Aws::String m_clusterName;
205
206 Aws::String m_instanceGroupName;
207
208 Aws::String m_instanceId;
209
211
212 Aws::Utils::DateTime m_eventTime{};
213
214 EventDetails m_eventDetails;
215
216 Aws::String m_description;
217 bool m_eventIdHasBeenSet = false;
218 bool m_clusterArnHasBeenSet = false;
219 bool m_clusterNameHasBeenSet = false;
220 bool m_instanceGroupNameHasBeenSet = false;
221 bool m_instanceIdHasBeenSet = false;
222 bool m_resourceTypeHasBeenSet = false;
223 bool m_eventTimeHasBeenSet = false;
224 bool m_eventDetailsHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace SageMaker
230} // 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)
const EventDetails & GetEventDetails() const
ClusterEventDetail & WithInstanceGroupName(InstanceGroupNameT &&value)
AWS_SAGEMAKER_API ClusterEventDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterEventResourceType GetResourceType() const
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