AWS SDK for C++  1.9.157
AWS SDK for C++
ResourceConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const TrainingInstanceType& GetInstanceType() const{ return m_instanceType; }
46 
50  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
51 
55  inline void SetInstanceType(const TrainingInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
56 
60  inline void SetInstanceType(TrainingInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
61 
65  inline ResourceConfig& WithInstanceType(const TrainingInstanceType& value) { SetInstanceType(value); return *this;}
66 
70  inline ResourceConfig& WithInstanceType(TrainingInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
71 
72 
77  inline int GetInstanceCount() const{ return m_instanceCount; }
78 
83  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
84 
89  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
90 
95  inline ResourceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
96 
97 
116  inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
117 
136  inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
137 
156  inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
157 
176  inline ResourceConfig& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
177 
178 
198  inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
199 
219  inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
220 
240  inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
241 
261  inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
262 
282  inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
283 
303  inline ResourceConfig& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
304 
324  inline ResourceConfig& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
325 
345  inline ResourceConfig& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
346 
347  private:
348 
349  TrainingInstanceType m_instanceType;
350  bool m_instanceTypeHasBeenSet;
351 
352  int m_instanceCount;
353  bool m_instanceCountHasBeenSet;
354 
355  int m_volumeSizeInGB;
356  bool m_volumeSizeInGBHasBeenSet;
357 
358  Aws::String m_volumeKmsKeyId;
359  bool m_volumeKmsKeyIdHasBeenSet;
360  };
361 
362 } // namespace Model
363 } // namespace SageMaker
364 } // namespace Aws
Aws::SageMaker::Model::ResourceConfig::SetInstanceCount
void SetInstanceCount(int value)
Definition: ResourceConfig.h:89
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ResourceConfig::VolumeSizeInGBHasBeenSet
bool VolumeSizeInGBHasBeenSet() const
Definition: ResourceConfig.h:136
Aws::SageMaker::Model::ResourceConfig::SetVolumeSizeInGB
void SetVolumeSizeInGB(int value)
Definition: ResourceConfig.h:156
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ResourceConfig::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: ResourceConfig.h:50
Aws::SageMaker::Model::ResourceConfig
Definition: ResourceConfig.h:34
Aws::SageMaker::Model::ResourceConfig::WithInstanceCount
ResourceConfig & WithInstanceCount(int value)
Definition: ResourceConfig.h:95
Aws::SageMaker::Model::ResourceConfig::SetInstanceType
void SetInstanceType(const TrainingInstanceType &value)
Definition: ResourceConfig.h:55
Aws::SageMaker::Model::ResourceConfig::WithVolumeSizeInGB
ResourceConfig & WithVolumeSizeInGB(int value)
Definition: ResourceConfig.h:176
Aws::SageMaker::Model::TrainingInstanceType
TrainingInstanceType
Definition: TrainingInstanceType.h:17
Aws::SageMaker::Model::ResourceConfig::SetVolumeKmsKeyId
void SetVolumeKmsKeyId(Aws::String &&value)
Definition: ResourceConfig.h:261
Aws::SageMaker::Model::ResourceConfig::GetVolumeKmsKeyId
const Aws::String & GetVolumeKmsKeyId() const
Definition: ResourceConfig.h:198
Aws::SageMaker::Model::ResourceConfig::WithInstanceType
ResourceConfig & WithInstanceType(const TrainingInstanceType &value)
Definition: ResourceConfig.h:65
Aws::SageMaker::Model::ResourceConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::ResourceConfig::GetInstanceCount
int GetInstanceCount() const
Definition: ResourceConfig.h:77
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ResourceConfig::GetInstanceType
const TrainingInstanceType & GetInstanceType() const
Definition: ResourceConfig.h:45
Aws::SageMaker::Model::ResourceConfig::SetInstanceType
void SetInstanceType(TrainingInstanceType &&value)
Definition: ResourceConfig.h:60
Aws::SageMaker::Model::ResourceConfig::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: ResourceConfig.h:83
Aws::SageMaker::Model::ResourceConfig::WithVolumeKmsKeyId
ResourceConfig & WithVolumeKmsKeyId(const char *value)
Definition: ResourceConfig.h:345
TrainingInstanceType.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SageMaker::Model::ResourceConfig::GetVolumeSizeInGB
int GetVolumeSizeInGB() const
Definition: ResourceConfig.h:116
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::ResourceConfig::WithVolumeKmsKeyId
ResourceConfig & WithVolumeKmsKeyId(Aws::String &&value)
Definition: ResourceConfig.h:324
Aws::SageMaker::Model::ResourceConfig::SetVolumeKmsKeyId
void SetVolumeKmsKeyId(const char *value)
Definition: ResourceConfig.h:282
Aws::SageMaker::Model::ResourceConfig::VolumeKmsKeyIdHasBeenSet
bool VolumeKmsKeyIdHasBeenSet() const
Definition: ResourceConfig.h:219
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ResourceConfig::WithInstanceType
ResourceConfig & WithInstanceType(TrainingInstanceType &&value)
Definition: ResourceConfig.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ResourceConfig::WithVolumeKmsKeyId
ResourceConfig & WithVolumeKmsKeyId(const Aws::String &value)
Definition: ResourceConfig.h:303
Aws::SageMaker::Model::ResourceConfig::ResourceConfig
ResourceConfig()
Aws::SageMaker::Model::ResourceConfig::SetVolumeKmsKeyId
void SetVolumeKmsKeyId(const Aws::String &value)
Definition: ResourceConfig.h:240
Aws::SageMaker::Model::ResourceConfig::ResourceConfig
ResourceConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ResourceConfig::operator=
ResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)