AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ClusterEventSummary.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SAGEMAKER_API ClusterEventSummary() = default;
37 AWS_SAGEMAKER_API ClusterEventSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetEventId() const { return m_eventId; }
47 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
48 template<typename EventIdT = Aws::String>
49 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
50 template<typename EventIdT = Aws::String>
51 ClusterEventSummary& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
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) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
63 template<typename ClusterArnT = Aws::String>
64 ClusterEventSummary& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetClusterName() const { return m_clusterName; }
72 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
73 template<typename ClusterNameT = Aws::String>
74 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
75 template<typename ClusterNameT = Aws::String>
76 ClusterEventSummary& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetInstanceGroupName() const { return m_instanceGroupName; }
84 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
85 template<typename InstanceGroupNameT = Aws::String>
86 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
87 template<typename InstanceGroupNameT = Aws::String>
88 ClusterEventSummary& WithInstanceGroupName(InstanceGroupNameT&& value) { SetInstanceGroupName(std::forward<InstanceGroupNameT>(value)); return *this;}
90
92
96 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
97 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
98 template<typename InstanceIdT = Aws::String>
99 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
100 template<typename InstanceIdT = Aws::String>
101 ClusterEventSummary& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
103
105
109 inline ClusterEventResourceType GetResourceType() const { return m_resourceType; }
110 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
111 inline void SetResourceType(ClusterEventResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
114
116
119 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
120 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
121 template<typename EventTimeT = Aws::Utils::DateTime>
122 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
123 template<typename EventTimeT = Aws::Utils::DateTime>
124 ClusterEventSummary& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template<typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
135 template<typename DescriptionT = Aws::String>
136 ClusterEventSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
138 private:
139
140 Aws::String m_eventId;
141 bool m_eventIdHasBeenSet = false;
142
143 Aws::String m_clusterArn;
144 bool m_clusterArnHasBeenSet = false;
145
146 Aws::String m_clusterName;
147 bool m_clusterNameHasBeenSet = false;
148
149 Aws::String m_instanceGroupName;
150 bool m_instanceGroupNameHasBeenSet = false;
151
152 Aws::String m_instanceId;
153 bool m_instanceIdHasBeenSet = false;
154
156 bool m_resourceTypeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_eventTime{};
159 bool m_eventTimeHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace SageMaker
167} // 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