AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeOverrides.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/NodePropertyOverride.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
38 {
39 public:
40 AWS_BATCH_API NodeOverrides();
41 AWS_BATCH_API NodeOverrides(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
58 inline int GetNumNodes() const{ return m_numNodes; }
59 inline bool NumNodesHasBeenSet() const { return m_numNodesHasBeenSet; }
60 inline void SetNumNodes(int value) { m_numNodesHasBeenSet = true; m_numNodes = value; }
61 inline NodeOverrides& WithNumNodes(int value) { SetNumNodes(value); return *this;}
63
65
68 inline const Aws::Vector<NodePropertyOverride>& GetNodePropertyOverrides() const{ return m_nodePropertyOverrides; }
69 inline bool NodePropertyOverridesHasBeenSet() const { return m_nodePropertyOverridesHasBeenSet; }
70 inline void SetNodePropertyOverrides(const Aws::Vector<NodePropertyOverride>& value) { m_nodePropertyOverridesHasBeenSet = true; m_nodePropertyOverrides = value; }
71 inline void SetNodePropertyOverrides(Aws::Vector<NodePropertyOverride>&& value) { m_nodePropertyOverridesHasBeenSet = true; m_nodePropertyOverrides = std::move(value); }
74 inline NodeOverrides& AddNodePropertyOverrides(const NodePropertyOverride& value) { m_nodePropertyOverridesHasBeenSet = true; m_nodePropertyOverrides.push_back(value); return *this; }
75 inline NodeOverrides& AddNodePropertyOverrides(NodePropertyOverride&& value) { m_nodePropertyOverridesHasBeenSet = true; m_nodePropertyOverrides.push_back(std::move(value)); return *this; }
77 private:
78
79 int m_numNodes;
80 bool m_numNodesHasBeenSet = false;
81
82 Aws::Vector<NodePropertyOverride> m_nodePropertyOverrides;
83 bool m_nodePropertyOverridesHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Batch
88} // namespace Aws
NodeOverrides & WithNodePropertyOverrides(Aws::Vector< NodePropertyOverride > &&value)
void SetNodePropertyOverrides(Aws::Vector< NodePropertyOverride > &&value)
AWS_BATCH_API NodeOverrides(Aws::Utils::Json::JsonView jsonValue)
NodeOverrides & AddNodePropertyOverrides(const NodePropertyOverride &value)
NodeOverrides & AddNodePropertyOverrides(NodePropertyOverride &&value)
AWS_BATCH_API NodeOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeOverrides & WithNumNodes(int value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
NodeOverrides & WithNodePropertyOverrides(const Aws::Vector< NodePropertyOverride > &value)
void SetNodePropertyOverrides(const Aws::Vector< NodePropertyOverride > &value)
const Aws::Vector< NodePropertyOverride > & GetNodePropertyOverrides() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue