AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Gpu.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace ComputeOptimizer {
17namespace Model {
18
25class Gpu {
26 public:
27 AWS_COMPUTEOPTIMIZER_API Gpu() = default;
28 AWS_COMPUTEOPTIMIZER_API Gpu(Aws::Utils::Json::JsonView jsonValue);
29 AWS_COMPUTEOPTIMIZER_API Gpu& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetGpuCount() const { return m_gpuCount; }
37 inline bool GpuCountHasBeenSet() const { return m_gpuCountHasBeenSet; }
38 inline void SetGpuCount(int value) {
39 m_gpuCountHasBeenSet = true;
40 m_gpuCount = value;
41 }
42 inline Gpu& WithGpuCount(int value) {
43 SetGpuCount(value);
44 return *this;
45 }
47
49
53 inline int GetGpuMemorySizeInMiB() const { return m_gpuMemorySizeInMiB; }
54 inline bool GpuMemorySizeInMiBHasBeenSet() const { return m_gpuMemorySizeInMiBHasBeenSet; }
55 inline void SetGpuMemorySizeInMiB(int value) {
56 m_gpuMemorySizeInMiBHasBeenSet = true;
57 m_gpuMemorySizeInMiB = value;
58 }
59 inline Gpu& WithGpuMemorySizeInMiB(int value) {
61 return *this;
62 }
64 private:
65 int m_gpuCount{0};
66
67 int m_gpuMemorySizeInMiB{0};
68 bool m_gpuCountHasBeenSet = false;
69 bool m_gpuMemorySizeInMiBHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace ComputeOptimizer
74} // namespace Aws
Gpu & WithGpuMemorySizeInMiB(int value)
Definition Gpu.h:59
AWS_COMPUTEOPTIMIZER_API Gpu(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Gpu()=default
bool GpuCountHasBeenSet() const
Definition Gpu.h:37
bool GpuMemorySizeInMiBHasBeenSet() const
Definition Gpu.h:54
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGpuCount(int value)
Definition Gpu.h:38
AWS_COMPUTEOPTIMIZER_API Gpu & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGpuMemorySizeInMiB(int value)
Definition Gpu.h:55
int GetGpuMemorySizeInMiB() const
Definition Gpu.h:53
Gpu & WithGpuCount(int value)
Definition Gpu.h:42
Aws::Utils::Json::JsonValue JsonValue