AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ComputeConfigResponse.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
30 public:
31 AWS_EKS_API ComputeConfigResponse() = default;
35
37
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
48 inline ComputeConfigResponse& WithEnabled(bool value) {
49 SetEnabled(value);
50 return *this;
51 }
53
55
60 inline const Aws::Vector<Aws::String>& GetNodePools() const { return m_nodePools; }
61 inline bool NodePoolsHasBeenSet() const { return m_nodePoolsHasBeenSet; }
62 template <typename NodePoolsT = Aws::Vector<Aws::String>>
63 void SetNodePools(NodePoolsT&& value) {
64 m_nodePoolsHasBeenSet = true;
65 m_nodePools = std::forward<NodePoolsT>(value);
66 }
67 template <typename NodePoolsT = Aws::Vector<Aws::String>>
68 ComputeConfigResponse& WithNodePools(NodePoolsT&& value) {
69 SetNodePools(std::forward<NodePoolsT>(value));
70 return *this;
71 }
72 template <typename NodePoolsT = Aws::String>
73 ComputeConfigResponse& AddNodePools(NodePoolsT&& value) {
74 m_nodePoolsHasBeenSet = true;
75 m_nodePools.emplace_back(std::forward<NodePoolsT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetNodeRoleArn() const { return m_nodeRoleArn; }
86 inline bool NodeRoleArnHasBeenSet() const { return m_nodeRoleArnHasBeenSet; }
87 template <typename NodeRoleArnT = Aws::String>
88 void SetNodeRoleArn(NodeRoleArnT&& value) {
89 m_nodeRoleArnHasBeenSet = true;
90 m_nodeRoleArn = std::forward<NodeRoleArnT>(value);
91 }
92 template <typename NodeRoleArnT = Aws::String>
93 ComputeConfigResponse& WithNodeRoleArn(NodeRoleArnT&& value) {
94 SetNodeRoleArn(std::forward<NodeRoleArnT>(value));
95 return *this;
96 }
98 private:
99 bool m_enabled{false};
100
101 Aws::Vector<Aws::String> m_nodePools;
102
103 Aws::String m_nodeRoleArn;
104 bool m_enabledHasBeenSet = false;
105 bool m_nodePoolsHasBeenSet = false;
106 bool m_nodeRoleArnHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EKS
111} // namespace Aws
const Aws::Vector< Aws::String > & GetNodePools() const
AWS_EKS_API ComputeConfigResponse(Aws::Utils::Json::JsonView jsonValue)
ComputeConfigResponse & WithEnabled(bool value)
ComputeConfigResponse & AddNodePools(NodePoolsT &&value)
AWS_EKS_API ComputeConfigResponse()=default
ComputeConfigResponse & WithNodeRoleArn(NodeRoleArnT &&value)
ComputeConfigResponse & WithNodePools(NodePoolsT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API ComputeConfigResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue