AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Compute.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/model/ComputeType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RoboMaker
22{
23namespace Model
24{
25
31 class Compute
32 {
33 public:
34 AWS_ROBOMAKER_API Compute();
35 AWS_ROBOMAKER_API Compute(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROBOMAKER_API Compute& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
47 inline int GetSimulationUnitLimit() const{ return m_simulationUnitLimit; }
48 inline bool SimulationUnitLimitHasBeenSet() const { return m_simulationUnitLimitHasBeenSet; }
49 inline void SetSimulationUnitLimit(int value) { m_simulationUnitLimitHasBeenSet = true; m_simulationUnitLimit = value; }
50 inline Compute& WithSimulationUnitLimit(int value) { SetSimulationUnitLimit(value); return *this;}
52
54
57 inline const ComputeType& GetComputeType() const{ return m_computeType; }
58 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
59 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
60 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
61 inline Compute& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
62 inline Compute& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
64
66
70 inline int GetGpuUnitLimit() const{ return m_gpuUnitLimit; }
71 inline bool GpuUnitLimitHasBeenSet() const { return m_gpuUnitLimitHasBeenSet; }
72 inline void SetGpuUnitLimit(int value) { m_gpuUnitLimitHasBeenSet = true; m_gpuUnitLimit = value; }
73 inline Compute& WithGpuUnitLimit(int value) { SetGpuUnitLimit(value); return *this;}
75 private:
76
77 int m_simulationUnitLimit;
78 bool m_simulationUnitLimitHasBeenSet = false;
79
80 ComputeType m_computeType;
81 bool m_computeTypeHasBeenSet = false;
82
83 int m_gpuUnitLimit;
84 bool m_gpuUnitLimitHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace RoboMaker
89} // namespace Aws
AWS_ROBOMAKER_API Compute & operator=(Aws::Utils::Json::JsonView jsonValue)
Compute & WithSimulationUnitLimit(int value)
Definition Compute.h:50
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Compute & WithGpuUnitLimit(int value)
Definition Compute.h:73
Compute & WithComputeType(ComputeType &&value)
Definition Compute.h:62
bool SimulationUnitLimitHasBeenSet() const
Definition Compute.h:48
const ComputeType & GetComputeType() const
Definition Compute.h:57
Compute & WithComputeType(const ComputeType &value)
Definition Compute.h:61
void SetComputeType(const ComputeType &value)
Definition Compute.h:59
int GetSimulationUnitLimit() const
Definition Compute.h:47
AWS_ROBOMAKER_API Compute(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API Compute()
void SetGpuUnitLimit(int value)
Definition Compute.h:72
bool ComputeTypeHasBeenSet() const
Definition Compute.h:58
void SetComputeType(ComputeType &&value)
Definition Compute.h:60
bool GpuUnitLimitHasBeenSet() const
Definition Compute.h:71
void SetSimulationUnitLimit(int value)
Definition Compute.h:49
Aws::Utils::Json::JsonValue JsonValue