AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ClusterEventDetail.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/ClusterEventResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/EventDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKER_API ClusterEventDetail() = default;
39 AWS_SAGEMAKER_API ClusterEventDetail(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetEventId() const { return m_eventId; }
49 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
50 template<typename EventIdT = Aws::String>
51 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
52 template<typename EventIdT = Aws::String>
53 ClusterEventDetail& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
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) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
65 template<typename ClusterArnT = Aws::String>
66 ClusterEventDetail& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
68
70
73 inline const Aws::String& GetClusterName() const { return m_clusterName; }
74 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
75 template<typename ClusterNameT = Aws::String>
76 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
77 template<typename ClusterNameT = Aws::String>
78 ClusterEventDetail& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
86 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
87 template<typename InstanceGroupNameT = Aws::String>
88 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
89 template<typename InstanceGroupNameT = Aws::String>
90 ClusterEventDetail& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
92
94
97 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
98 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
99 template<typename InstanceIdT = Aws::String>
100 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
101 template<typename InstanceIdT = Aws::String>
102 ClusterEventDetail& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
104
106
110 inline ClusterEventResourceType GetResourceType() const { return m_resourceType; }
111 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
112 inline void SetResourceType(ClusterEventResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
115
117
120 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
121 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
122 template<typename EventTimeT = Aws::Utils::DateTime>
123 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
124 template<typename EventTimeT = Aws::Utils::DateTime>
125 ClusterEventDetail& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
127
129
132 inline const EventDetails& GetEventDetails() const { return m_eventDetails; }
133 inline bool EventDetailsHasBeenSet() const { return m_eventDetailsHasBeenSet; }
134 template<typename EventDetailsT = EventDetails>
135 void SetEventDetails(EventDetailsT&& value) { m_eventDetailsHasBeenSet = true; m_eventDetails = std::forward<EventDetailsT>(value); }
136 template<typename EventDetailsT = EventDetails>
137 ClusterEventDetail& WithEventDetails(EventDetailsT&& value) { SetEventDetails(std::forward<EventDetailsT>(value)); return *this;}
139
141
144 inline const Aws::String& GetDescription() const { return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 template<typename DescriptionT = Aws::String>
147 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
148 template<typename DescriptionT = Aws::String>
149 ClusterEventDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
151 private:
152
153 Aws::String m_eventId;
154 bool m_eventIdHasBeenSet = false;
155
156 Aws::String m_clusterArn;
157 bool m_clusterArnHasBeenSet = false;
158
159 Aws::String m_clusterName;
160 bool m_clusterNameHasBeenSet = false;
161
162 Aws::String m_instanceGroupName;
163 bool m_instanceGroupNameHasBeenSet = false;
164
165 Aws::String m_instanceId;
166 bool m_instanceIdHasBeenSet = false;
167
169 bool m_resourceTypeHasBeenSet = false;
170
171 Aws::Utils::DateTime m_eventTime{};
172 bool m_eventTimeHasBeenSet = false;
173
174 EventDetails m_eventDetails;
175 bool m_eventDetailsHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace SageMaker
183} // 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