AWS SDK for C++

AWS SDK for C++ Version 1.11.890

Loading...
Searching...
No Matches
ProcessingClusterConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ProcessingInstancePreference.h>
11#include <aws/sagemaker/model/ProcessingInstanceType.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 ProcessingClusterConfig() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline int GetInstanceCount() const { return m_instanceCount; }
45 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
46 inline void SetInstanceCount(int value) {
47 m_instanceCountHasBeenSet = true;
48 m_instanceCount = value;
49 }
51 SetInstanceCount(value);
52 return *this;
53 }
55
57
60 inline ProcessingInstanceType GetInstanceType() const { return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 m_instanceTypeHasBeenSet = true;
64 m_instanceType = value;
65 }
67 SetInstanceType(value);
68 return *this;
69 }
71
73
85 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
86 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
87 inline void SetVolumeSizeInGB(int value) {
88 m_volumeSizeInGBHasBeenSet = true;
89 m_volumeSizeInGB = value;
90 }
92 SetVolumeSizeInGB(value);
93 return *this;
94 }
96
98
113 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
114 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
115 template <typename VolumeKmsKeyIdT = Aws::String>
116 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
117 m_volumeKmsKeyIdHasBeenSet = true;
118 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
119 }
120 template <typename VolumeKmsKeyIdT = Aws::String>
121 ProcessingClusterConfig& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
122 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
123 return *this;
124 }
126
128
136 inline const Aws::Vector<ProcessingInstancePreference>& GetInstancePreferences() const { return m_instancePreferences; }
137 inline bool InstancePreferencesHasBeenSet() const { return m_instancePreferencesHasBeenSet; }
138 template <typename InstancePreferencesT = Aws::Vector<ProcessingInstancePreference>>
139 void SetInstancePreferences(InstancePreferencesT&& value) {
140 m_instancePreferencesHasBeenSet = true;
141 m_instancePreferences = std::forward<InstancePreferencesT>(value);
142 }
143 template <typename InstancePreferencesT = Aws::Vector<ProcessingInstancePreference>>
144 ProcessingClusterConfig& WithInstancePreferences(InstancePreferencesT&& value) {
145 SetInstancePreferences(std::forward<InstancePreferencesT>(value));
146 return *this;
147 }
148 template <typename InstancePreferencesT = ProcessingInstancePreference>
149 ProcessingClusterConfig& AddInstancePreferences(InstancePreferencesT&& value) {
150 m_instancePreferencesHasBeenSet = true;
151 m_instancePreferences.emplace_back(std::forward<InstancePreferencesT>(value));
152 return *this;
153 }
155
157
164 inline ProcessingInstanceType GetSelectedInstanceType() const { return m_selectedInstanceType; }
165 inline bool SelectedInstanceTypeHasBeenSet() const { return m_selectedInstanceTypeHasBeenSet; }
167 m_selectedInstanceTypeHasBeenSet = true;
168 m_selectedInstanceType = value;
169 }
172 return *this;
173 }
175
177
184 inline int GetSelectedInstanceCount() const { return m_selectedInstanceCount; }
185 inline bool SelectedInstanceCountHasBeenSet() const { return m_selectedInstanceCountHasBeenSet; }
186 inline void SetSelectedInstanceCount(int value) {
187 m_selectedInstanceCountHasBeenSet = true;
188 m_selectedInstanceCount = value;
189 }
192 return *this;
193 }
195 private:
196 int m_instanceCount{0};
197
199
200 int m_volumeSizeInGB{0};
201
202 Aws::String m_volumeKmsKeyId;
203
204 Aws::Vector<ProcessingInstancePreference> m_instancePreferences;
205
207
208 int m_selectedInstanceCount{0};
209 bool m_instanceCountHasBeenSet = false;
210 bool m_instanceTypeHasBeenSet = false;
211 bool m_volumeSizeInGBHasBeenSet = false;
212 bool m_volumeKmsKeyIdHasBeenSet = false;
213 bool m_instancePreferencesHasBeenSet = false;
214 bool m_selectedInstanceTypeHasBeenSet = false;
215 bool m_selectedInstanceCountHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace SageMaker
220} // namespace Aws
void SetInstancePreferences(InstancePreferencesT &&value)
ProcessingClusterConfig & WithVolumeSizeInGB(int value)
AWS_SAGEMAKER_API ProcessingClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ProcessingClusterConfig & WithSelectedInstanceType(ProcessingInstanceType value)
ProcessingClusterConfig & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
ProcessingClusterConfig & WithInstanceType(ProcessingInstanceType value)
void SetInstanceType(ProcessingInstanceType value)
ProcessingClusterConfig & WithSelectedInstanceCount(int value)
ProcessingClusterConfig & AddInstancePreferences(InstancePreferencesT &&value)
AWS_SAGEMAKER_API ProcessingClusterConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ProcessingClusterConfig()=default
ProcessingClusterConfig & WithInstanceCount(int value)
const Aws::Vector< ProcessingInstancePreference > & GetInstancePreferences() const
void SetSelectedInstanceType(ProcessingInstanceType value)
ProcessingClusterConfig & WithInstancePreferences(InstancePreferencesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue