AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
ClusterSlurmConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ClusterSlurmNodeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API ClusterSlurmConfig() = default;
33 AWS_SAGEMAKER_API ClusterSlurmConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline ClusterSlurmNodeType GetNodeType() const { return m_nodeType; }
43 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
44 inline void SetNodeType(ClusterSlurmNodeType value) {
45 m_nodeTypeHasBeenSet = true;
46 m_nodeType = value;
47 }
49 SetNodeType(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetPartitionNames() const { return m_partitionNames; }
59 inline bool PartitionNamesHasBeenSet() const { return m_partitionNamesHasBeenSet; }
60 template <typename PartitionNamesT = Aws::Vector<Aws::String>>
61 void SetPartitionNames(PartitionNamesT&& value) {
62 m_partitionNamesHasBeenSet = true;
63 m_partitionNames = std::forward<PartitionNamesT>(value);
64 }
65 template <typename PartitionNamesT = Aws::Vector<Aws::String>>
66 ClusterSlurmConfig& WithPartitionNames(PartitionNamesT&& value) {
67 SetPartitionNames(std::forward<PartitionNamesT>(value));
68 return *this;
69 }
70 template <typename PartitionNamesT = Aws::String>
71 ClusterSlurmConfig& AddPartitionNames(PartitionNamesT&& value) {
72 m_partitionNamesHasBeenSet = true;
73 m_partitionNames.emplace_back(std::forward<PartitionNamesT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::Vector<Aws::String> m_partitionNames;
81 bool m_nodeTypeHasBeenSet = false;
82 bool m_partitionNamesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SageMaker
87} // namespace Aws
ClusterSlurmConfig & WithPartitionNames(PartitionNamesT &&value)
void SetPartitionNames(PartitionNamesT &&value)
const Aws::Vector< Aws::String > & GetPartitionNames() const
AWS_SAGEMAKER_API ClusterSlurmConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterSlurmConfig()=default
void SetNodeType(ClusterSlurmNodeType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterSlurmConfig & AddPartitionNames(PartitionNamesT &&value)
AWS_SAGEMAKER_API ClusterSlurmConfig(Aws::Utils::Json::JsonView jsonValue)
ClusterSlurmConfig & WithNodeType(ClusterSlurmNodeType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue