AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Gpu.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_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 ComputeOptimizer
20{
21namespace Model
22{
23
30 class Gpu
31 {
32 public:
33 AWS_COMPUTEOPTIMIZER_API Gpu();
34 AWS_COMPUTEOPTIMIZER_API Gpu(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPUTEOPTIMIZER_API Gpu& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline int GetGpuCount() const{ return m_gpuCount; }
44 inline bool GpuCountHasBeenSet() const { return m_gpuCountHasBeenSet; }
45 inline void SetGpuCount(int value) { m_gpuCountHasBeenSet = true; m_gpuCount = value; }
46 inline Gpu& WithGpuCount(int value) { SetGpuCount(value); return *this;}
48
50
54 inline int GetGpuMemorySizeInMiB() const{ return m_gpuMemorySizeInMiB; }
55 inline bool GpuMemorySizeInMiBHasBeenSet() const { return m_gpuMemorySizeInMiBHasBeenSet; }
56 inline void SetGpuMemorySizeInMiB(int value) { m_gpuMemorySizeInMiBHasBeenSet = true; m_gpuMemorySizeInMiB = value; }
57 inline Gpu& WithGpuMemorySizeInMiB(int value) { SetGpuMemorySizeInMiB(value); return *this;}
59 private:
60
61 int m_gpuCount;
62 bool m_gpuCountHasBeenSet = false;
63
64 int m_gpuMemorySizeInMiB;
65 bool m_gpuMemorySizeInMiBHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace ComputeOptimizer
70} // namespace Aws
Gpu & WithGpuMemorySizeInMiB(int value)
Definition Gpu.h:57
AWS_COMPUTEOPTIMIZER_API Gpu(Aws::Utils::Json::JsonView jsonValue)
bool GpuCountHasBeenSet() const
Definition Gpu.h:44
bool GpuMemorySizeInMiBHasBeenSet() const
Definition Gpu.h:55
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGpuCount(int value)
Definition Gpu.h:45
AWS_COMPUTEOPTIMIZER_API Gpu()
AWS_COMPUTEOPTIMIZER_API Gpu & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGpuMemorySizeInMiB(int value)
Definition Gpu.h:56
int GetGpuMemorySizeInMiB() const
Definition Gpu.h:54
Gpu & WithGpuCount(int value)
Definition Gpu.h:46
Aws::Utils::Json::JsonValue JsonValue