AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
DetachClusterNodeVolumeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/VolumeAttachmentStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
27 public:
28 AWS_SAGEMAKER_API DetachClusterNodeVolumeResult() = default;
31
33
37 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
38 template <typename ClusterArnT = Aws::String>
39 void SetClusterArn(ClusterArnT&& value) {
40 m_clusterArnHasBeenSet = true;
41 m_clusterArn = std::forward<ClusterArnT>(value);
42 }
43 template <typename ClusterArnT = Aws::String>
45 SetClusterArn(std::forward<ClusterArnT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetNodeId() const { return m_nodeId; }
56 template <typename NodeIdT = Aws::String>
57 void SetNodeId(NodeIdT&& value) {
58 m_nodeIdHasBeenSet = true;
59 m_nodeId = std::forward<NodeIdT>(value);
60 }
61 template <typename NodeIdT = Aws::String>
63 SetNodeId(std::forward<NodeIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
73 template <typename VolumeIdT = Aws::String>
74 void SetVolumeId(VolumeIdT&& value) {
75 m_volumeIdHasBeenSet = true;
76 m_volumeId = std::forward<VolumeIdT>(value);
77 }
78 template <typename VolumeIdT = Aws::String>
80 SetVolumeId(std::forward<VolumeIdT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Utils::DateTime& GetAttachTime() const { return m_attachTime; }
91 template <typename AttachTimeT = Aws::Utils::DateTime>
92 void SetAttachTime(AttachTimeT&& value) {
93 m_attachTimeHasBeenSet = true;
94 m_attachTime = std::forward<AttachTimeT>(value);
95 }
96 template <typename AttachTimeT = Aws::Utils::DateTime>
98 SetAttachTime(std::forward<AttachTimeT>(value));
99 return *this;
100 }
102
104
107 inline VolumeAttachmentStatus GetStatus() const { return m_status; }
109 m_statusHasBeenSet = true;
110 m_status = value;
111 }
113 SetStatus(value);
114 return *this;
115 }
117
119
123 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
124 template <typename DeviceNameT = Aws::String>
125 void SetDeviceName(DeviceNameT&& value) {
126 m_deviceNameHasBeenSet = true;
127 m_deviceName = std::forward<DeviceNameT>(value);
128 }
129 template <typename DeviceNameT = Aws::String>
131 SetDeviceName(std::forward<DeviceNameT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
151
152 private:
153 Aws::String m_clusterArn;
154
155 Aws::String m_nodeId;
156
157 Aws::String m_volumeId;
158
159 Aws::Utils::DateTime m_attachTime{};
160
162
163 Aws::String m_deviceName;
164
165 Aws::String m_requestId;
166 Aws::Http::HttpResponseCode m_HttpResponseCode;
167 bool m_clusterArnHasBeenSet = false;
168 bool m_nodeIdHasBeenSet = false;
169 bool m_volumeIdHasBeenSet = false;
170 bool m_attachTimeHasBeenSet = false;
171 bool m_statusHasBeenSet = false;
172 bool m_deviceNameHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace SageMaker
178} // namespace Aws
DetachClusterNodeVolumeResult & WithDeviceName(DeviceNameT &&value)
AWS_SAGEMAKER_API DetachClusterNodeVolumeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetachClusterNodeVolumeResult & WithVolumeId(VolumeIdT &&value)
AWS_SAGEMAKER_API DetachClusterNodeVolumeResult()=default
AWS_SAGEMAKER_API DetachClusterNodeVolumeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetachClusterNodeVolumeResult & WithAttachTime(AttachTimeT &&value)
DetachClusterNodeVolumeResult & WithStatus(VolumeAttachmentStatus value)
DetachClusterNodeVolumeResult & WithRequestId(RequestIdT &&value)
DetachClusterNodeVolumeResult & WithClusterArn(ClusterArnT &&value)
DetachClusterNodeVolumeResult & WithNodeId(NodeIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue