AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterSlurmConfigurationRequest.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pcs/model/SlurmCustomSetting.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 PCS
23{
24namespace Model
25{
26
34 {
35 public:
40
41
43
47 inline int GetScaleDownIdleTimeInSeconds() const{ return m_scaleDownIdleTimeInSeconds; }
48 inline bool ScaleDownIdleTimeInSecondsHasBeenSet() const { return m_scaleDownIdleTimeInSecondsHasBeenSet; }
49 inline void SetScaleDownIdleTimeInSeconds(int value) { m_scaleDownIdleTimeInSecondsHasBeenSet = true; m_scaleDownIdleTimeInSeconds = value; }
52
54
58 inline const Aws::Vector<SlurmCustomSetting>& GetSlurmCustomSettings() const{ return m_slurmCustomSettings; }
59 inline bool SlurmCustomSettingsHasBeenSet() const { return m_slurmCustomSettingsHasBeenSet; }
60 inline void SetSlurmCustomSettings(const Aws::Vector<SlurmCustomSetting>& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings = value; }
61 inline void SetSlurmCustomSettings(Aws::Vector<SlurmCustomSetting>&& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings = std::move(value); }
64 inline ClusterSlurmConfigurationRequest& AddSlurmCustomSettings(const SlurmCustomSetting& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings.push_back(value); return *this; }
65 inline ClusterSlurmConfigurationRequest& AddSlurmCustomSettings(SlurmCustomSetting&& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings.push_back(std::move(value)); return *this; }
67 private:
68
69 int m_scaleDownIdleTimeInSeconds;
70 bool m_scaleDownIdleTimeInSecondsHasBeenSet = false;
71
72 Aws::Vector<SlurmCustomSetting> m_slurmCustomSettings;
73 bool m_slurmCustomSettingsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace PCS
78} // namespace Aws
ClusterSlurmConfigurationRequest & AddSlurmCustomSettings(const SlurmCustomSetting &value)
ClusterSlurmConfigurationRequest & AddSlurmCustomSettings(SlurmCustomSetting &&value)
void SetSlurmCustomSettings(Aws::Vector< SlurmCustomSetting > &&value)
AWS_PCS_API ClusterSlurmConfigurationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSlurmConfigurationRequest & WithScaleDownIdleTimeInSeconds(int value)
ClusterSlurmConfigurationRequest & WithSlurmCustomSettings(Aws::Vector< SlurmCustomSetting > &&value)
void SetSlurmCustomSettings(const Aws::Vector< SlurmCustomSetting > &value)
ClusterSlurmConfigurationRequest & WithSlurmCustomSettings(const Aws::Vector< SlurmCustomSetting > &value)
AWS_PCS_API ClusterSlurmConfigurationRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SlurmCustomSetting > & GetSlurmCustomSettings() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue