AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ComputeQuotaResourceConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterInstanceType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKER_API ComputeQuotaResourceConfig() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline ClusterInstanceType GetInstanceType() const { return m_instanceType; }
46 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
47 inline void SetInstanceType(ClusterInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
50
52
56 inline int GetCount() const { return m_count; }
57 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
58 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
59 inline ComputeQuotaResourceConfig& WithCount(int value) { SetCount(value); return *this;}
61
63
70 inline int GetAccelerators() const { return m_accelerators; }
71 inline bool AcceleratorsHasBeenSet() const { return m_acceleratorsHasBeenSet; }
72 inline void SetAccelerators(int value) { m_acceleratorsHasBeenSet = true; m_accelerators = value; }
73 inline ComputeQuotaResourceConfig& WithAccelerators(int value) { SetAccelerators(value); return *this;}
75
77
84 inline double GetVCpu() const { return m_vCpu; }
85 inline bool VCpuHasBeenSet() const { return m_vCpuHasBeenSet; }
86 inline void SetVCpu(double value) { m_vCpuHasBeenSet = true; m_vCpu = value; }
87 inline ComputeQuotaResourceConfig& WithVCpu(double value) { SetVCpu(value); return *this;}
89
91
98 inline double GetMemoryInGiB() const { return m_memoryInGiB; }
99 inline bool MemoryInGiBHasBeenSet() const { return m_memoryInGiBHasBeenSet; }
100 inline void SetMemoryInGiB(double value) { m_memoryInGiBHasBeenSet = true; m_memoryInGiB = value; }
101 inline ComputeQuotaResourceConfig& WithMemoryInGiB(double value) { SetMemoryInGiB(value); return *this;}
103 private:
104
106 bool m_instanceTypeHasBeenSet = false;
107
108 int m_count{0};
109 bool m_countHasBeenSet = false;
110
111 int m_accelerators{0};
112 bool m_acceleratorsHasBeenSet = false;
113
114 double m_vCpu{0.0};
115 bool m_vCpuHasBeenSet = false;
116
117 double m_memoryInGiB{0.0};
118 bool m_memoryInGiBHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace SageMaker
123} // namespace Aws
AWS_SAGEMAKER_API ComputeQuotaResourceConfig()=default
AWS_SAGEMAKER_API ComputeQuotaResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ComputeQuotaResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeQuotaResourceConfig & WithVCpu(double value)
ComputeQuotaResourceConfig & WithInstanceType(ClusterInstanceType value)
ComputeQuotaResourceConfig & WithMemoryInGiB(double value)
ComputeQuotaResourceConfig & WithAccelerators(int value)
Aws::Utils::Json::JsonValue JsonValue