AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComputeNodeGroupSlurmConfiguration.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:
36 AWS_PCS_API ComputeNodeGroupSlurmConfiguration() = default;
40
41
43
47 inline const Aws::Vector<SlurmCustomSetting>& GetSlurmCustomSettings() const { return m_slurmCustomSettings; }
48 inline bool SlurmCustomSettingsHasBeenSet() const { return m_slurmCustomSettingsHasBeenSet; }
49 template<typename SlurmCustomSettingsT = Aws::Vector<SlurmCustomSetting>>
50 void SetSlurmCustomSettings(SlurmCustomSettingsT&& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings = std::forward<SlurmCustomSettingsT>(value); }
51 template<typename SlurmCustomSettingsT = Aws::Vector<SlurmCustomSetting>>
52 ComputeNodeGroupSlurmConfiguration& WithSlurmCustomSettings(SlurmCustomSettingsT&& value) { SetSlurmCustomSettings(std::forward<SlurmCustomSettingsT>(value)); return *this;}
53 template<typename SlurmCustomSettingsT = SlurmCustomSetting>
54 ComputeNodeGroupSlurmConfiguration& AddSlurmCustomSettings(SlurmCustomSettingsT&& value) { m_slurmCustomSettingsHasBeenSet = true; m_slurmCustomSettings.emplace_back(std::forward<SlurmCustomSettingsT>(value)); return *this; }
56 private:
57
58 Aws::Vector<SlurmCustomSetting> m_slurmCustomSettings;
59 bool m_slurmCustomSettingsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace PCS
64} // namespace Aws
ComputeNodeGroupSlurmConfiguration & WithSlurmCustomSettings(SlurmCustomSettingsT &&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