AWS SDK for C++

AWS SDK for C++ Version 1.11.922

Loading...
Searching...
No Matches
NvidiaMpsAllocation.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace ECS {
17namespace Model {
18
28 public:
29 AWS_ECS_API NvidiaMpsAllocation() = default;
33
35
44 inline int GetMemory() const { return m_memory; }
45 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
46 inline void SetMemory(int value) {
47 m_memoryHasBeenSet = true;
48 m_memory = value;
49 }
50 inline NvidiaMpsAllocation& WithMemory(int value) {
51 SetMemory(value);
52 return *this;
53 }
55
57
66 inline int GetMaxComputePercent() const { return m_maxComputePercent; }
67 inline bool MaxComputePercentHasBeenSet() const { return m_maxComputePercentHasBeenSet; }
68 inline void SetMaxComputePercent(int value) {
69 m_maxComputePercentHasBeenSet = true;
70 m_maxComputePercent = value;
71 }
74 return *this;
75 }
77 private:
78 int m_memory{0};
79
80 int m_maxComputePercent{0};
81 bool m_memoryHasBeenSet = false;
82 bool m_maxComputePercentHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ECS
87} // namespace Aws
AWS_ECS_API NvidiaMpsAllocation()=default
AWS_ECS_API NvidiaMpsAllocation(Aws::Utils::Json::JsonView jsonValue)
NvidiaMpsAllocation & WithMaxComputePercent(int value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
NvidiaMpsAllocation & WithMemory(int value)
AWS_ECS_API NvidiaMpsAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue