AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GpuInfo.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/compute-optimizer/model/Gpu.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
33 class GpuInfo
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API GpuInfo();
37 AWS_COMPUTEOPTIMIZER_API GpuInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API GpuInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Gpu>& GetGpus() const{ return m_gpus; }
47 inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; }
48 inline void SetGpus(const Aws::Vector<Gpu>& value) { m_gpusHasBeenSet = true; m_gpus = value; }
49 inline void SetGpus(Aws::Vector<Gpu>&& value) { m_gpusHasBeenSet = true; m_gpus = std::move(value); }
50 inline GpuInfo& WithGpus(const Aws::Vector<Gpu>& value) { SetGpus(value); return *this;}
51 inline GpuInfo& WithGpus(Aws::Vector<Gpu>&& value) { SetGpus(std::move(value)); return *this;}
52 inline GpuInfo& AddGpus(const Gpu& value) { m_gpusHasBeenSet = true; m_gpus.push_back(value); return *this; }
53 inline GpuInfo& AddGpus(Gpu&& value) { m_gpusHasBeenSet = true; m_gpus.push_back(std::move(value)); return *this; }
55 private:
56
57 Aws::Vector<Gpu> m_gpus;
58 bool m_gpusHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ComputeOptimizer
63} // namespace Aws
const Aws::Vector< Gpu > & GetGpus() const
Definition GpuInfo.h:46
void SetGpus(Aws::Vector< Gpu > &&value)
Definition GpuInfo.h:49
AWS_COMPUTEOPTIMIZER_API GpuInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGpus(const Aws::Vector< Gpu > &value)
Definition GpuInfo.h:48
GpuInfo & WithGpus(const Aws::Vector< Gpu > &value)
Definition GpuInfo.h:50
GpuInfo & AddGpus(Gpu &&value)
Definition GpuInfo.h:53
AWS_COMPUTEOPTIMIZER_API GpuInfo()
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
GpuInfo & WithGpus(Aws::Vector< Gpu > &&value)
Definition GpuInfo.h:51
AWS_COMPUTEOPTIMIZER_API GpuInfo(Aws::Utils::Json::JsonView jsonValue)
GpuInfo & AddGpus(const Gpu &value)
Definition GpuInfo.h:52
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue