AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/ClusterEventResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
30 public:
31 AWS_SAGEMAKER_API ClusterEventSummary() = default;
32 AWS_SAGEMAKER_API ClusterEventSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEventId() const { return m_eventId; }
41 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
42 template <typename EventIdT = Aws::String>
43 void SetEventId(EventIdT&& value) {
44 m_eventIdHasBeenSet = true;
45 m_eventId = std::forward<EventIdT>(value);
46 }
47 template <typename EventIdT = Aws::String>
48 ClusterEventSummary& WithEventId(EventIdT&& value) {
49 SetEventId(std::forward<EventIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
60 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
61 template <typename ClusterArnT = Aws::String>
62 void SetClusterArn(ClusterArnT&& value) {
63 m_clusterArnHasBeenSet = true;
64 m_clusterArn = std::forward<ClusterArnT>(value);
65 }
66 template <typename ClusterArnT = Aws::String>
67 ClusterEventSummary& WithClusterArn(ClusterArnT&& value) {
68 SetClusterArn(std::forward<ClusterArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetClusterName() const { return m_clusterName; }
78 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
79 template <typename ClusterNameT = Aws::String>
80 void SetClusterName(ClusterNameT&& value) {
81 m_clusterNameHasBeenSet = true;
82 m_clusterName = std::forward<ClusterNameT>(value);
83 }
84 template <typename ClusterNameT = Aws::String>
85 ClusterEventSummary& WithClusterName(ClusterNameT&& value) {
86 SetClusterName(std::forward<ClusterNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
96 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
97 template <typename InstanceGroupNameT = Aws::String>
98 void SetInstanceGroupName(InstanceGroupNameT&& value) {
99 m_instanceGroupNameHasBeenSet = true;
100 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
101 }
102 template <typename InstanceGroupNameT = Aws::String>
103 ClusterEventSummary& WithInstanceGroupName(InstanceGroupNameT&& value) {
104 SetInstanceGroupName(std::forward<InstanceGroupNameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
115 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
116 template <typename InstanceIdT = Aws::String>
117 void SetInstanceId(InstanceIdT&& value) {
118 m_instanceIdHasBeenSet = true;
119 m_instanceId = std::forward<InstanceIdT>(value);
120 }
121 template <typename InstanceIdT = Aws::String>
122 ClusterEventSummary& WithInstanceId(InstanceIdT&& value) {
123 SetInstanceId(std::forward<InstanceIdT>(value));
124 return *this;
125 }
127
129
133 inline ClusterEventResourceType GetResourceType() const { return m_resourceType; }
134 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
136 m_resourceTypeHasBeenSet = true;
137 m_resourceType = value;
138 }
140 SetResourceType(value);
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
150 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
151 template <typename EventTimeT = Aws::Utils::DateTime>
152 void SetEventTime(EventTimeT&& value) {
153 m_eventTimeHasBeenSet = true;
154 m_eventTime = std::forward<EventTimeT>(value);
155 }
156 template <typename EventTimeT = Aws::Utils::DateTime>
157 ClusterEventSummary& WithEventTime(EventTimeT&& value) {
158 SetEventTime(std::forward<EventTimeT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetDescription() const { return m_description; }
168 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 template <typename DescriptionT = Aws::String>
170 void SetDescription(DescriptionT&& value) {
171 m_descriptionHasBeenSet = true;
172 m_description = std::forward<DescriptionT>(value);
173 }
174 template <typename DescriptionT = Aws::String>
175 ClusterEventSummary& WithDescription(DescriptionT&& value) {
176 SetDescription(std::forward<DescriptionT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_eventId;
182
183 Aws::String m_clusterArn;
184
185 Aws::String m_clusterName;
186
187 Aws::String m_instanceGroupName;
188
189 Aws::String m_instanceId;
190
192
193 Aws::Utils::DateTime m_eventTime{};
194
195 Aws::String m_description;
196 bool m_eventIdHasBeenSet = false;
197 bool m_clusterArnHasBeenSet = false;
198 bool m_clusterNameHasBeenSet = false;
199 bool m_instanceGroupNameHasBeenSet = false;
200 bool m_instanceIdHasBeenSet = false;
201 bool m_resourceTypeHasBeenSet = false;
202 bool m_eventTimeHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace SageMaker
208} // 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)
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