AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferenceComponentComputeResourceRequirements.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker
20{
21namespace Model
22{
23
32 {
33 public:
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline double GetNumberOfCpuCoresRequired() const{ return m_numberOfCpuCoresRequired; }
46 inline bool NumberOfCpuCoresRequiredHasBeenSet() const { return m_numberOfCpuCoresRequiredHasBeenSet; }
47 inline void SetNumberOfCpuCoresRequired(double value) { m_numberOfCpuCoresRequiredHasBeenSet = true; m_numberOfCpuCoresRequired = value; }
50
52
57 inline double GetNumberOfAcceleratorDevicesRequired() const{ return m_numberOfAcceleratorDevicesRequired; }
58 inline bool NumberOfAcceleratorDevicesRequiredHasBeenSet() const { return m_numberOfAcceleratorDevicesRequiredHasBeenSet; }
59 inline void SetNumberOfAcceleratorDevicesRequired(double value) { m_numberOfAcceleratorDevicesRequiredHasBeenSet = true; m_numberOfAcceleratorDevicesRequired = value; }
62
64
68 inline int GetMinMemoryRequiredInMb() const{ return m_minMemoryRequiredInMb; }
69 inline bool MinMemoryRequiredInMbHasBeenSet() const { return m_minMemoryRequiredInMbHasBeenSet; }
70 inline void SetMinMemoryRequiredInMb(int value) { m_minMemoryRequiredInMbHasBeenSet = true; m_minMemoryRequiredInMb = value; }
73
75
79 inline int GetMaxMemoryRequiredInMb() const{ return m_maxMemoryRequiredInMb; }
80 inline bool MaxMemoryRequiredInMbHasBeenSet() const { return m_maxMemoryRequiredInMbHasBeenSet; }
81 inline void SetMaxMemoryRequiredInMb(int value) { m_maxMemoryRequiredInMbHasBeenSet = true; m_maxMemoryRequiredInMb = value; }
84 private:
85
86 double m_numberOfCpuCoresRequired;
87 bool m_numberOfCpuCoresRequiredHasBeenSet = false;
88
89 double m_numberOfAcceleratorDevicesRequired;
90 bool m_numberOfAcceleratorDevicesRequiredHasBeenSet = false;
91
92 int m_minMemoryRequiredInMb;
93 bool m_minMemoryRequiredInMbHasBeenSet = false;
94
95 int m_maxMemoryRequiredInMb;
96 bool m_maxMemoryRequiredInMbHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SageMaker
101} // namespace Aws
AWS_SAGEMAKER_API InferenceComponentComputeResourceRequirements(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentComputeResourceRequirements & WithNumberOfAcceleratorDevicesRequired(double value)
InferenceComponentComputeResourceRequirements & WithNumberOfCpuCoresRequired(double value)
AWS_SAGEMAKER_API InferenceComponentComputeResourceRequirements & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue