AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListNodegroupsResult.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 {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace EKS {
23namespace Model {
25 public:
26 AWS_EKS_API ListNodegroupsResult() = default;
29
31
34 inline const Aws::Vector<Aws::String>& GetNodegroups() const { return m_nodegroups; }
35 template <typename NodegroupsT = Aws::Vector<Aws::String>>
36 void SetNodegroups(NodegroupsT&& value) {
37 m_nodegroupsHasBeenSet = true;
38 m_nodegroups = std::forward<NodegroupsT>(value);
39 }
40 template <typename NodegroupsT = Aws::Vector<Aws::String>>
41 ListNodegroupsResult& WithNodegroups(NodegroupsT&& value) {
42 SetNodegroups(std::forward<NodegroupsT>(value));
43 return *this;
44 }
45 template <typename NodegroupsT = Aws::String>
46 ListNodegroupsResult& AddNodegroups(NodegroupsT&& value) {
47 m_nodegroupsHasBeenSet = true;
48 m_nodegroups.emplace_back(std::forward<NodegroupsT>(value));
49 return *this;
50 }
52
54
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListNodegroupsResult& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 ListNodegroupsResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<Aws::String> m_nodegroups;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 bool m_nodegroupsHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EKS
103} // namespace Aws
AWS_EKS_API ListNodegroupsResult()=default
const Aws::Vector< Aws::String > & GetNodegroups() const
AWS_EKS_API ListNodegroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListNodegroupsResult & WithNodegroups(NodegroupsT &&value)
const Aws::String & GetNextToken() const
ListNodegroupsResult & WithRequestId(RequestIdT &&value)
ListNodegroupsResult & WithNextToken(NextTokenT &&value)
ListNodegroupsResult & AddNodegroups(NodegroupsT &&value)
AWS_EKS_API ListNodegroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() 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