AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CpuOptions.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SnowDeviceManagement {
17namespace Model {
18
26 public:
27 AWS_SNOWDEVICEMANAGEMENT_API CpuOptions() = default;
28 AWS_SNOWDEVICEMANAGEMENT_API CpuOptions(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SNOWDEVICEMANAGEMENT_API CpuOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetCoreCount() const { return m_coreCount; }
37 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
38 inline void SetCoreCount(int value) {
39 m_coreCountHasBeenSet = true;
40 m_coreCount = value;
41 }
42 inline CpuOptions& WithCoreCount(int value) {
43 SetCoreCount(value);
44 return *this;
45 }
47
49
52 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
53 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
54 inline void SetThreadsPerCore(int value) {
55 m_threadsPerCoreHasBeenSet = true;
56 m_threadsPerCore = value;
57 }
58 inline CpuOptions& WithThreadsPerCore(int value) {
59 SetThreadsPerCore(value);
60 return *this;
61 }
63 private:
64 int m_coreCount{0};
65
66 int m_threadsPerCore{0};
67 bool m_coreCountHasBeenSet = false;
68 bool m_threadsPerCoreHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace SnowDeviceManagement
73} // namespace Aws
CpuOptions & WithThreadsPerCore(int value)
Definition CpuOptions.h:58
AWS_SNOWDEVICEMANAGEMENT_API CpuOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SNOWDEVICEMANAGEMENT_API CpuOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWDEVICEMANAGEMENT_API CpuOptions()=default
Aws::Utils::Json::JsonValue JsonValue