AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ClusterEventSummary.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
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
31 public:
32 AWS_SAGEMAKER_API ClusterEventSummary() = default;
33 AWS_SAGEMAKER_API ClusterEventSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetEventId() const { return m_eventId; }
42 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
43 template <typename EventIdT = Aws::String>
44 void SetEventId(EventIdT&& value) {
45 m_eventIdHasBeenSet = true;
46 m_eventId = std::forward<EventIdT>(value);
47 }
48 template <typename EventIdT = Aws::String>
49 ClusterEventSummary& WithEventId(EventIdT&& value) {
50 SetEventId(std::forward<EventIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
61 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
62 template <typename ClusterArnT = Aws::String>
63 void SetClusterArn(ClusterArnT&& value) {
64 m_clusterArnHasBeenSet = true;
65 m_clusterArn = std::forward<ClusterArnT>(value);
66 }
67 template <typename ClusterArnT = Aws::String>
68 ClusterEventSummary& WithClusterArn(ClusterArnT&& value) {
69 SetClusterArn(std::forward<ClusterArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetClusterName() const { return m_clusterName; }
79 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
80 template <typename ClusterNameT = Aws::String>
81 void SetClusterName(ClusterNameT&& value) {
82 m_clusterNameHasBeenSet = true;
83 m_clusterName = std::forward<ClusterNameT>(value);
84 }
85 template <typename ClusterNameT = Aws::String>
86 ClusterEventSummary& WithClusterName(ClusterNameT&& value) {
87 SetClusterName(std::forward<ClusterNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
97 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
98 template <typename InstanceGroupNameT = Aws::String>
99 void SetInstanceGroupName(InstanceGroupNameT&& value) {
100 m_instanceGroupNameHasBeenSet = true;
101 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
102 }
103 template <typename InstanceGroupNameT = Aws::String>
104 ClusterEventSummary& WithInstanceGroupName(InstanceGroupNameT&& value) {
105 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
106 return *this;
107 }
109
111
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 ClusterEventSummary& 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 ClusterEventSummary& WithEventTime(EventTimeT&& value) {
159 SetEventTime(std::forward<EventTimeT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDescription() const { return m_description; }
169 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 template <typename DescriptionT = Aws::String>
171 void SetDescription(DescriptionT&& value) {
172 m_descriptionHasBeenSet = true;
173 m_description = std::forward<DescriptionT>(value);
174 }
175 template <typename DescriptionT = Aws::String>
176 ClusterEventSummary& WithDescription(DescriptionT&& value) {
177 SetDescription(std::forward<DescriptionT>(value));
178 return *this;
179 }
181
183
187 inline ClusterEventLevel GetEventLevel() const { return m_eventLevel; }
188 inline bool EventLevelHasBeenSet() const { return m_eventLevelHasBeenSet; }
189 inline void SetEventLevel(ClusterEventLevel value) {
190 m_eventLevelHasBeenSet = true;
191 m_eventLevel = value;
192 }
194 SetEventLevel(value);
195 return *this;
196 }
198 private:
199 Aws::String m_eventId;
200
201 Aws::String m_clusterArn;
202
203 Aws::String m_clusterName;
204
205 Aws::String m_instanceGroupName;
206
207 Aws::String m_instanceId;
208
210
211 Aws::Utils::DateTime m_eventTime{};
212
213 Aws::String m_description;
214
216 bool m_eventIdHasBeenSet = false;
217 bool m_clusterArnHasBeenSet = false;
218 bool m_clusterNameHasBeenSet = false;
219 bool m_instanceGroupNameHasBeenSet = false;
220 bool m_instanceIdHasBeenSet = false;
221 bool m_resourceTypeHasBeenSet = false;
222 bool m_eventTimeHasBeenSet = false;
223 bool m_descriptionHasBeenSet = false;
224 bool m_eventLevelHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace SageMaker
229} // namespace Aws
ClusterEventSummary & WithInstanceId(InstanceIdT &&value)
ClusterEventSummary & WithResourceType(ClusterEventResourceType value)
ClusterEventSummary & WithClusterArn(ClusterArnT &&value)
AWS_SAGEMAKER_API ClusterEventSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEventTime() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterEventSummary & WithClusterName(ClusterNameT &&value)
ClusterEventSummary & WithEventLevel(ClusterEventLevel value)
void SetInstanceGroupName(InstanceGroupNameT &&value)
ClusterEventSummary & WithInstanceGroupName(InstanceGroupNameT &&value)
void SetResourceType(ClusterEventResourceType value)
ClusterEventResourceType GetResourceType() const
ClusterEventSummary & WithDescription(DescriptionT &&value)
ClusterEventSummary & WithEventId(EventIdT &&value)
AWS_SAGEMAKER_API ClusterEventSummary()=default
ClusterEventSummary & WithEventTime(EventTimeT &&value)
AWS_SAGEMAKER_API ClusterEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceGroupName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue