AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrainingInstanceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/InstanceGroup.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
37 {
38 public:
39 AWS_SAGEMAKER_API ResourceConfig();
40 AWS_SAGEMAKER_API ResourceConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
62 inline const TrainingInstanceType& GetInstanceType() const{ return m_instanceType; }
63 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
64 inline void SetInstanceType(const TrainingInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
65 inline void SetInstanceType(TrainingInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
66 inline ResourceConfig& WithInstanceType(const TrainingInstanceType& value) { SetInstanceType(value); return *this;}
67 inline ResourceConfig& WithInstanceType(TrainingInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
69
71
75 inline int GetInstanceCount() const{ return m_instanceCount; }
76 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
77 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
78 inline ResourceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
80
82
109 inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
110 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
111 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
112 inline ResourceConfig& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
114
116
135 inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
136 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
137 inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
138 inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
139 inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
140 inline ResourceConfig& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
141 inline ResourceConfig& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
142 inline ResourceConfig& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
144
146
150 inline int GetKeepAlivePeriodInSeconds() const{ return m_keepAlivePeriodInSeconds; }
151 inline bool KeepAlivePeriodInSecondsHasBeenSet() const { return m_keepAlivePeriodInSecondsHasBeenSet; }
152 inline void SetKeepAlivePeriodInSeconds(int value) { m_keepAlivePeriodInSecondsHasBeenSet = true; m_keepAlivePeriodInSeconds = value; }
155
157
160 inline const Aws::Vector<InstanceGroup>& GetInstanceGroups() const{ return m_instanceGroups; }
161 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
162 inline void SetInstanceGroups(const Aws::Vector<InstanceGroup>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
163 inline void SetInstanceGroups(Aws::Vector<InstanceGroup>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
165 inline ResourceConfig& WithInstanceGroups(Aws::Vector<InstanceGroup>&& value) { SetInstanceGroups(std::move(value)); return *this;}
166 inline ResourceConfig& AddInstanceGroups(const InstanceGroup& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
167 inline ResourceConfig& AddInstanceGroups(InstanceGroup&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
169 private:
170
171 TrainingInstanceType m_instanceType;
172 bool m_instanceTypeHasBeenSet = false;
173
174 int m_instanceCount;
175 bool m_instanceCountHasBeenSet = false;
176
177 int m_volumeSizeInGB;
178 bool m_volumeSizeInGBHasBeenSet = false;
179
180 Aws::String m_volumeKmsKeyId;
181 bool m_volumeKmsKeyIdHasBeenSet = false;
182
183 int m_keepAlivePeriodInSeconds;
184 bool m_keepAlivePeriodInSecondsHasBeenSet = false;
185
186 Aws::Vector<InstanceGroup> m_instanceGroups;
187 bool m_instanceGroupsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SageMaker
192} // namespace Aws
ResourceConfig & WithInstanceType(TrainingInstanceType &&value)
const Aws::String & GetVolumeKmsKeyId() const
ResourceConfig & WithVolumeKmsKeyId(Aws::String &&value)
void SetInstanceType(const TrainingInstanceType &value)
ResourceConfig & WithInstanceGroups(const Aws::Vector< InstanceGroup > &value)
ResourceConfig & AddInstanceGroups(const InstanceGroup &value)
ResourceConfig & WithKeepAlivePeriodInSeconds(int value)
void SetInstanceType(TrainingInstanceType &&value)
ResourceConfig & AddInstanceGroups(InstanceGroup &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const TrainingInstanceType & GetInstanceType() const
AWS_SAGEMAKER_API ResourceConfig(Aws::Utils::Json::JsonView jsonValue)
ResourceConfig & WithInstanceCount(int value)
void SetVolumeKmsKeyId(Aws::String &&value)
AWS_SAGEMAKER_API ResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceConfig & WithVolumeSizeInGB(int value)
void SetInstanceGroups(const Aws::Vector< InstanceGroup > &value)
void SetVolumeKmsKeyId(const char *value)
void SetVolumeKmsKeyId(const Aws::String &value)
void SetInstanceGroups(Aws::Vector< InstanceGroup > &&value)
ResourceConfig & WithVolumeKmsKeyId(const char *value)
const Aws::Vector< InstanceGroup > & GetInstanceGroups() const
ResourceConfig & WithInstanceGroups(Aws::Vector< InstanceGroup > &&value)
ResourceConfig & WithVolumeKmsKeyId(const Aws::String &value)
ResourceConfig & WithInstanceType(const TrainingInstanceType &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