AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterSlurmConfiguration.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/SlurmAuthKey.h>
10#include <aws/pcs/model/SlurmCustomSetting.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PCS
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
48 inline int GetScaleDownIdleTimeInSeconds() const{ return m_scaleDownIdleTimeInSeconds; }
49 inline bool ScaleDownIdleTimeInSecondsHasBeenSet() const { return m_scaleDownIdleTimeInSecondsHasBeenSet; }
50 inline void SetScaleDownIdleTimeInSeconds(int value) { m_scaleDownIdleTimeInSecondsHasBeenSet = true; m_scaleDownIdleTimeInSeconds = value; }
53
55
59 inline const Aws::Vector<SlurmCustomSetting>& GetSlurmCustomSettings() const{ return m_slurmCustomSettings; }
60 inline bool SlurmCustomSettingsHasBeenSet() const { return m_slurmCustomSettingsHasBeenSet; }
61 inline void SetSlurmCustomSettings(const Aws::Vector<SlurmCustomSetting>& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings = value; }
62 inline void SetSlurmCustomSettings(Aws::Vector<SlurmCustomSetting>&& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings = std::move(value); }
65 inline ClusterSlurmConfiguration& AddSlurmCustomSettings(const SlurmCustomSetting& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings.push_back(value); return *this; }
66 inline ClusterSlurmConfiguration& AddSlurmCustomSettings(SlurmCustomSetting&& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings.push_back(std::move(value)); return *this; }
68
70
74 inline const SlurmAuthKey& GetAuthKey() const{ return m_authKey; }
75 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
76 inline void SetAuthKey(const SlurmAuthKey& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
77 inline void SetAuthKey(SlurmAuthKey&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
78 inline ClusterSlurmConfiguration& WithAuthKey(const SlurmAuthKey& value) { SetAuthKey(value); return *this;}
79 inline ClusterSlurmConfiguration& WithAuthKey(SlurmAuthKey&& value) { SetAuthKey(std::move(value)); return *this;}
81 private:
82
83 int m_scaleDownIdleTimeInSeconds;
84 bool m_scaleDownIdleTimeInSecondsHasBeenSet = false;
85
86 Aws::Vector<SlurmCustomSetting> m_slurmCustomSettings;
87 bool m_slurmCustomSettingsHasBeenSet = false;
88
89 SlurmAuthKey m_authKey;
90 bool m_authKeyHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace PCS
95} // namespace Aws
AWS_PCS_API ClusterSlurmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSlurmConfiguration & WithSlurmCustomSettings(const Aws::Vector< SlurmCustomSetting > &value)
AWS_PCS_API ClusterSlurmConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetSlurmCustomSettings(const Aws::Vector< SlurmCustomSetting > &value)
void SetSlurmCustomSettings(Aws::Vector< SlurmCustomSetting > &&value)
ClusterSlurmConfiguration & WithAuthKey(const SlurmAuthKey &value)
ClusterSlurmConfiguration & AddSlurmCustomSettings(const SlurmCustomSetting &value)
ClusterSlurmConfiguration & WithAuthKey(SlurmAuthKey &&value)
ClusterSlurmConfiguration & WithScaleDownIdleTimeInSeconds(int value)
ClusterSlurmConfiguration & WithSlurmCustomSettings(Aws::Vector< SlurmCustomSetting > &&value)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SlurmCustomSetting > & GetSlurmCustomSettings() const
ClusterSlurmConfiguration & AddSlurmCustomSettings(SlurmCustomSetting &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue