AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ClusterOperationSummary.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/ClusterOperationStatus.h>
11#include <aws/sagemaker/model/ClusterOperationType.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 ClusterOperationSummary() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetOperationId() const { return m_operationId; }
43 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
44 template <typename OperationIdT = Aws::String>
45 void SetOperationId(OperationIdT&& value) {
46 m_operationIdHasBeenSet = true;
47 m_operationId = std::forward<OperationIdT>(value);
48 }
49 template <typename OperationIdT = Aws::String>
51 SetOperationId(std::forward<OperationIdT>(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>
70 SetClusterArn(std::forward<ClusterArnT>(value));
71 return *this;
72 }
74
76
80 inline ClusterOperationType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(ClusterOperationType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91
93
97 inline ClusterOperationStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(ClusterOperationStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
114 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
115 template <typename CreationTimeT = Aws::Utils::DateTime>
116 void SetCreationTime(CreationTimeT&& value) {
117 m_creationTimeHasBeenSet = true;
118 m_creationTime = std::forward<CreationTimeT>(value);
119 }
120 template <typename CreationTimeT = Aws::Utils::DateTime>
122 SetCreationTime(std::forward<CreationTimeT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_operationId;
128
129 Aws::String m_clusterArn;
130
132
134
135 Aws::Utils::DateTime m_creationTime{};
136 bool m_operationIdHasBeenSet = false;
137 bool m_clusterArnHasBeenSet = false;
138 bool m_typeHasBeenSet = false;
139 bool m_statusHasBeenSet = false;
140 bool m_creationTimeHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace SageMaker
145} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
ClusterOperationSummary & WithOperationId(OperationIdT &&value)
ClusterOperationSummary & WithStatus(ClusterOperationStatus value)
AWS_SAGEMAKER_API ClusterOperationSummary()=default
ClusterOperationSummary & WithType(ClusterOperationType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterOperationSummary & WithCreationTime(CreationTimeT &&value)
AWS_SAGEMAKER_API ClusterOperationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterOperationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterOperationSummary & WithClusterArn(ClusterArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue