AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNodeRangeProperties(const Aws::Vector<NodeRangeProperty>& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties = value; }
72 inline void SetNodeRangeProperties(Aws::Vector<NodeRangeProperty>&& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties = std::move(value); }
75 inline NodeProperties& AddNodeRangeProperties(const NodeRangeProperty& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties.push_back(value); return *this; }
76 inline NodeProperties& AddNodeRangeProperties(NodeRangeProperty&& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties.push_back(std::move(value)); return *this; }
78 private:
79
80 int m_numNodes;
81 bool m_numNodesHasBeenSet = false;
82
83 int m_mainNode;
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(NodeRangeProperty &&value)
NodeProperties & WithNodeRangeProperties(Aws::Vector< NodeRangeProperty > &&value)
void SetNodeRangeProperties(const Aws::Vector< NodeRangeProperty > &value)
NodeProperties & WithNodeRangeProperties(const Aws::Vector< NodeRangeProperty > &value)
NodeProperties & WithMainNode(int value)
AWS_BATCH_API NodeProperties(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< NodeRangeProperty > & GetNodeRangeProperties() const
void SetNodeRangeProperties(Aws::Vector< NodeRangeProperty > &&value)
NodeProperties & AddNodeRangeProperties(const NodeRangeProperty &value)
NodeProperties & WithNumNodes(int value)
AWS_BATCH_API NodeProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue