AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterTieredStorageConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterConfigMode.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
33 public:
34 AWS_SAGEMAKER_API ClusterTieredStorageConfig() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline ClusterConfigMode GetMode() const { return m_mode; }
48 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
49 inline void SetMode(ClusterConfigMode value) {
50 m_modeHasBeenSet = true;
51 m_mode = value;
52 }
54 SetMode(value);
55 return *this;
56 }
58
60
63 inline int GetInstanceMemoryAllocationPercentage() const { return m_instanceMemoryAllocationPercentage; }
64 inline bool InstanceMemoryAllocationPercentageHasBeenSet() const { return m_instanceMemoryAllocationPercentageHasBeenSet; }
66 m_instanceMemoryAllocationPercentageHasBeenSet = true;
67 m_instanceMemoryAllocationPercentage = value;
68 }
71 return *this;
72 }
74 private:
76
77 int m_instanceMemoryAllocationPercentage{0};
78 bool m_modeHasBeenSet = false;
79 bool m_instanceMemoryAllocationPercentageHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace SageMaker
84} // namespace Aws
AWS_SAGEMAKER_API ClusterTieredStorageConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterTieredStorageConfig & WithMode(ClusterConfigMode value)
AWS_SAGEMAKER_API ClusterTieredStorageConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterTieredStorageConfig()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterTieredStorageConfig & WithInstanceMemoryAllocationPercentage(int value)
Aws::Utils::Json::JsonValue JsonValue