AWS SDK for C++

AWS SDK for C++ Version 1.11.635

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/InstancePlacementConfig.h>
12#include <aws/sagemaker/model/InstanceGroup.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_SAGEMAKER_API ResourceConfig() = default;
41 AWS_SAGEMAKER_API ResourceConfig(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline TrainingInstanceType GetInstanceType() const { return m_instanceType; }
51 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
52 inline void SetInstanceType(TrainingInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
55
57
61 inline int GetInstanceCount() const { return m_instanceCount; }
62 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
63 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
64 inline ResourceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
66
68
95 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
96 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
97 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
98 inline ResourceConfig& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
100
102
121 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
122 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
123 template<typename VolumeKmsKeyIdT = Aws::String>
124 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value); }
125 template<typename VolumeKmsKeyIdT = Aws::String>
126 ResourceConfig& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value)); return *this;}
128
130
134 inline int GetKeepAlivePeriodInSeconds() const { return m_keepAlivePeriodInSeconds; }
135 inline bool KeepAlivePeriodInSecondsHasBeenSet() const { return m_keepAlivePeriodInSecondsHasBeenSet; }
136 inline void SetKeepAlivePeriodInSeconds(int value) { m_keepAlivePeriodInSecondsHasBeenSet = true; m_keepAlivePeriodInSeconds = value; }
139
141
144 inline const Aws::Vector<InstanceGroup>& GetInstanceGroups() const { return m_instanceGroups; }
145 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
146 template<typename InstanceGroupsT = Aws::Vector<InstanceGroup>>
147 void SetInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::forward<InstanceGroupsT>(value); }
148 template<typename InstanceGroupsT = Aws::Vector<InstanceGroup>>
149 ResourceConfig& WithInstanceGroups(InstanceGroupsT&& value) { SetInstanceGroups(std::forward<InstanceGroupsT>(value)); return *this;}
150 template<typename InstanceGroupsT = InstanceGroup>
151 ResourceConfig& AddInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value)); return *this; }
153
155
159 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
160 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
161 template<typename TrainingPlanArnT = Aws::String>
162 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
163 template<typename TrainingPlanArnT = Aws::String>
164 ResourceConfig& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
166
168
172 inline const InstancePlacementConfig& GetInstancePlacementConfig() const { return m_instancePlacementConfig; }
173 inline bool InstancePlacementConfigHasBeenSet() const { return m_instancePlacementConfigHasBeenSet; }
174 template<typename InstancePlacementConfigT = InstancePlacementConfig>
175 void SetInstancePlacementConfig(InstancePlacementConfigT&& value) { m_instancePlacementConfigHasBeenSet = true; m_instancePlacementConfig = std::forward<InstancePlacementConfigT>(value); }
176 template<typename InstancePlacementConfigT = InstancePlacementConfig>
177 ResourceConfig& WithInstancePlacementConfig(InstancePlacementConfigT&& value) { SetInstancePlacementConfig(std::forward<InstancePlacementConfigT>(value)); return *this;}
179 private:
180
182 bool m_instanceTypeHasBeenSet = false;
183
184 int m_instanceCount{0};
185 bool m_instanceCountHasBeenSet = false;
186
187 int m_volumeSizeInGB{0};
188 bool m_volumeSizeInGBHasBeenSet = false;
189
190 Aws::String m_volumeKmsKeyId;
191 bool m_volumeKmsKeyIdHasBeenSet = false;
192
193 int m_keepAlivePeriodInSeconds{0};
194 bool m_keepAlivePeriodInSecondsHasBeenSet = false;
195
196 Aws::Vector<InstanceGroup> m_instanceGroups;
197 bool m_instanceGroupsHasBeenSet = false;
198
199 Aws::String m_trainingPlanArn;
200 bool m_trainingPlanArnHasBeenSet = false;
201
202 InstancePlacementConfig m_instancePlacementConfig;
203 bool m_instancePlacementConfigHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace SageMaker
208} // namespace Aws
const Aws::String & GetVolumeKmsKeyId() const
void SetVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
const Aws::String & GetTrainingPlanArn() const
ResourceConfig & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
ResourceConfig & WithInstancePlacementConfig(InstancePlacementConfigT &&value)
ResourceConfig & WithKeepAlivePeriodInSeconds(int value)
void SetInstanceGroups(InstanceGroupsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceConfig & WithInstanceGroups(InstanceGroupsT &&value)
const InstancePlacementConfig & GetInstancePlacementConfig() const
AWS_SAGEMAKER_API ResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ResourceConfig()=default
ResourceConfig & WithInstanceCount(int value)
ResourceConfig & WithTrainingPlanArn(TrainingPlanArnT &&value)
AWS_SAGEMAKER_API ResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceConfig & WithVolumeSizeInGB(int value)
void SetInstanceType(TrainingInstanceType value)
ResourceConfig & AddInstanceGroups(InstanceGroupsT &&value)
void SetInstancePlacementConfig(InstancePlacementConfigT &&value)
void SetTrainingPlanArn(TrainingPlanArnT &&value)
const Aws::Vector< InstanceGroup > & GetInstanceGroups() const
TrainingInstanceType GetInstanceType() const
ResourceConfig & WithInstanceType(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