AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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