AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ComputeNodeGroupSlurmConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/pcs/PCS_EXPORTS.h>
9#include <aws/pcs/model/SlurmCustomSetting.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PCS {
21namespace Model {
22
30 public:
31 AWS_PCS_API ComputeNodeGroupSlurmConfiguration() = default;
35
37
44 inline int GetScaleDownIdleTimeInSeconds() const { return m_scaleDownIdleTimeInSeconds; }
45 inline bool ScaleDownIdleTimeInSecondsHasBeenSet() const { return m_scaleDownIdleTimeInSecondsHasBeenSet; }
46 inline void SetScaleDownIdleTimeInSeconds(int value) {
47 m_scaleDownIdleTimeInSecondsHasBeenSet = true;
48 m_scaleDownIdleTimeInSeconds = value;
49 }
52 return *this;
53 }
55
57
61 inline const Aws::Vector<SlurmCustomSetting>& GetSlurmCustomSettings() const { return m_slurmCustomSettings; }
62 inline bool SlurmCustomSettingsHasBeenSet() const { return m_slurmCustomSettingsHasBeenSet; }
63 template <typename SlurmCustomSettingsT = Aws::Vector<SlurmCustomSetting>>
64 void SetSlurmCustomSettings(SlurmCustomSettingsT&& value) {
65 m_slurmCustomSettingsHasBeenSet = true;
66 m_slurmCustomSettings = std::forward<SlurmCustomSettingsT>(value);
67 }
68 template <typename SlurmCustomSettingsT = Aws::Vector<SlurmCustomSetting>>
70 SetSlurmCustomSettings(std::forward<SlurmCustomSettingsT>(value));
71 return *this;
72 }
73 template <typename SlurmCustomSettingsT = SlurmCustomSetting>
75 m_slurmCustomSettingsHasBeenSet = true;
76 m_slurmCustomSettings.emplace_back(std::forward<SlurmCustomSettingsT>(value));
77 return *this;
78 }
80 private:
81 int m_scaleDownIdleTimeInSeconds{0};
82
83 Aws::Vector<SlurmCustomSetting> m_slurmCustomSettings;
84 bool m_scaleDownIdleTimeInSecondsHasBeenSet = false;
85 bool m_slurmCustomSettingsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace PCS
90} // namespace Aws
ComputeNodeGroupSlurmConfiguration & WithSlurmCustomSettings(SlurmCustomSettingsT &&value)
ComputeNodeGroupSlurmConfiguration & WithScaleDownIdleTimeInSeconds(int value)
const Aws::Vector< SlurmCustomSetting > & GetSlurmCustomSettings() const
AWS_PCS_API ComputeNodeGroupSlurmConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeNodeGroupSlurmConfiguration & AddSlurmCustomSettings(SlurmCustomSettingsT &&value)
AWS_PCS_API ComputeNodeGroupSlurmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue