AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ComputeConfigRequest.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/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
32 public:
33 AWS_EKS_API ComputeConfigRequest() = default;
37
39
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) {
47 m_enabledHasBeenSet = true;
48 m_enabled = value;
49 }
50 inline ComputeConfigRequest& WithEnabled(bool value) {
51 SetEnabled(value);
52 return *this;
53 }
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) {
66 m_nodePoolsHasBeenSet = true;
67 m_nodePools = std::forward<NodePoolsT>(value);
68 }
69 template <typename NodePoolsT = Aws::Vector<Aws::String>>
70 ComputeConfigRequest& WithNodePools(NodePoolsT&& value) {
71 SetNodePools(std::forward<NodePoolsT>(value));
72 return *this;
73 }
74 template <typename NodePoolsT = Aws::String>
75 ComputeConfigRequest& AddNodePools(NodePoolsT&& value) {
76 m_nodePoolsHasBeenSet = true;
77 m_nodePools.emplace_back(std::forward<NodePoolsT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetNodeRoleArn() const { return m_nodeRoleArn; }
90 inline bool NodeRoleArnHasBeenSet() const { return m_nodeRoleArnHasBeenSet; }
91 template <typename NodeRoleArnT = Aws::String>
92 void SetNodeRoleArn(NodeRoleArnT&& value) {
93 m_nodeRoleArnHasBeenSet = true;
94 m_nodeRoleArn = std::forward<NodeRoleArnT>(value);
95 }
96 template <typename NodeRoleArnT = Aws::String>
97 ComputeConfigRequest& WithNodeRoleArn(NodeRoleArnT&& value) {
98 SetNodeRoleArn(std::forward<NodeRoleArnT>(value));
99 return *this;
100 }
102 private:
103 bool m_enabled{false};
104
105 Aws::Vector<Aws::String> m_nodePools;
106
107 Aws::String m_nodeRoleArn;
108 bool m_enabledHasBeenSet = false;
109 bool m_nodePoolsHasBeenSet = false;
110 bool m_nodeRoleArnHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EKS
115} // 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