AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NodeProperties.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/NodeRangeProperty.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 Batch
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BATCH_API NodeProperties() = default;
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetNumNodes() const { return m_numNodes; }
48 inline bool NumNodesHasBeenSet() const { return m_numNodesHasBeenSet; }
49 inline void SetNumNodes(int value) { m_numNodesHasBeenSet = true; m_numNodes = value; }
50 inline NodeProperties& WithNumNodes(int value) { SetNumNodes(value); return *this;}
52
54
58 inline int GetMainNode() const { return m_mainNode; }
59 inline bool MainNodeHasBeenSet() const { return m_mainNodeHasBeenSet; }
60 inline void SetMainNode(int value) { m_mainNodeHasBeenSet = true; m_mainNode = value; }
61 inline NodeProperties& WithMainNode(int value) { SetMainNode(value); return *this;}
63
65
69 inline const Aws::Vector<NodeRangeProperty>& GetNodeRangeProperties() const { return m_nodeRangeProperties; }
70 inline bool NodeRangePropertiesHasBeenSet() const { return m_nodeRangePropertiesHasBeenSet; }
71 template<typename NodeRangePropertiesT = Aws::Vector<NodeRangeProperty>>
72 void SetNodeRangeProperties(NodeRangePropertiesT&& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties = std::forward<NodeRangePropertiesT>(value); }
73 template<typename NodeRangePropertiesT = Aws::Vector<NodeRangeProperty>>
74 NodeProperties& WithNodeRangeProperties(NodeRangePropertiesT&& value) { SetNodeRangeProperties(std::forward<NodeRangePropertiesT>(value)); return *this;}
75 template<typename NodeRangePropertiesT = NodeRangeProperty>
76 NodeProperties& AddNodeRangeProperties(NodeRangePropertiesT&& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties.emplace_back(std::forward<NodeRangePropertiesT>(value)); return *this; }
78 private:
79
80 int m_numNodes{0};
81 bool m_numNodesHasBeenSet = false;
82
83 int m_mainNode{0};
84 bool m_mainNodeHasBeenSet = false;
85
86 Aws::Vector<NodeRangeProperty> m_nodeRangeProperties;
87 bool m_nodeRangePropertiesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Batch
92} // namespace Aws
NodeProperties & AddNodeRangeProperties(NodeRangePropertiesT &&value)
NodeProperties & WithMainNode(int value)
AWS_BATCH_API NodeProperties(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< NodeRangeProperty > & GetNodeRangeProperties() const
NodeProperties & WithNodeRangeProperties(NodeRangePropertiesT &&value)
void SetNodeRangeProperties(NodeRangePropertiesT &&value)
NodeProperties & WithNumNodes(int value)
AWS_BATCH_API NodeProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API NodeProperties()=default
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue