AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ComputeConfigRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 EKS
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_EKS_API ComputeConfigRequest() = default;
42
43
45
50 inline bool GetEnabled() const { return m_enabled; }
51 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
52 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
53 inline ComputeConfigRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
55
57
62 inline const Aws::Vector<Aws::String>& GetNodePools() const { return m_nodePools; }
63 inline bool NodePoolsHasBeenSet() const { return m_nodePoolsHasBeenSet; }
64 template<typename NodePoolsT = Aws::Vector<Aws::String>>
65 void SetNodePools(NodePoolsT&& value) { m_nodePoolsHasBeenSet = true; m_nodePools = std::forward<NodePoolsT>(value); }
66 template<typename NodePoolsT = Aws::Vector<Aws::String>>
67 ComputeConfigRequest& WithNodePools(NodePoolsT&& value) { SetNodePools(std::forward<NodePoolsT>(value)); return *this;}
68 template<typename NodePoolsT = Aws::String>
69 ComputeConfigRequest& AddNodePools(NodePoolsT&& value) { m_nodePoolsHasBeenSet = true; m_nodePools.emplace_back(std::forward<NodePoolsT>(value)); return *this; }
71
73
79 inline const Aws::String& GetNodeRoleArn() const { return m_nodeRoleArn; }
80 inline bool NodeRoleArnHasBeenSet() const { return m_nodeRoleArnHasBeenSet; }
81 template<typename NodeRoleArnT = Aws::String>
82 void SetNodeRoleArn(NodeRoleArnT&& value) { m_nodeRoleArnHasBeenSet = true; m_nodeRoleArn = std::forward<NodeRoleArnT>(value); }
83 template<typename NodeRoleArnT = Aws::String>
84 ComputeConfigRequest& WithNodeRoleArn(NodeRoleArnT&& value) { SetNodeRoleArn(std::forward<NodeRoleArnT>(value)); return *this;}
86 private:
87
88 bool m_enabled{false};
89 bool m_enabledHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_nodePools;
92 bool m_nodePoolsHasBeenSet = false;
93
94 Aws::String m_nodeRoleArn;
95 bool m_nodeRoleArnHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EKS
100} // namespace Aws
ComputeConfigRequest & WithEnabled(bool value)
AWS_EKS_API ComputeConfigRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetNodeRoleArn() const
void SetNodeRoleArn(NodeRoleArnT &&value)
ComputeConfigRequest & WithNodePools(NodePoolsT &&value)
const Aws::Vector< Aws::String > & GetNodePools() const
AWS_EKS_API ComputeConfigRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeConfigRequest & AddNodePools(NodePoolsT &&value)
AWS_EKS_API ComputeConfigRequest()=default
ComputeConfigRequest & WithNodeRoleArn(NodeRoleArnT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue