AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListNodesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/managedblockchain/ManagedBlockchainRequest.h>
9#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
10#include <aws/managedblockchain/model/NodeStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace ManagedBlockchain {
19namespace Model {
20
24 public:
25 AWS_MANAGEDBLOCKCHAIN_API ListNodesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListNodes"; }
32
33 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
34
35 AWS_MANAGEDBLOCKCHAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetNetworkId() const { return m_networkId; }
42 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
43 template <typename NetworkIdT = Aws::String>
44 void SetNetworkId(NetworkIdT&& value) {
45 m_networkIdHasBeenSet = true;
46 m_networkId = std::forward<NetworkIdT>(value);
47 }
48 template <typename NetworkIdT = Aws::String>
49 ListNodesRequest& WithNetworkId(NetworkIdT&& value) {
50 SetNetworkId(std::forward<NetworkIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetMemberId() const { return m_memberId; }
62 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
63 template <typename MemberIdT = Aws::String>
64 void SetMemberId(MemberIdT&& value) {
65 m_memberIdHasBeenSet = true;
66 m_memberId = std::forward<MemberIdT>(value);
67 }
68 template <typename MemberIdT = Aws::String>
69 ListNodesRequest& WithMemberId(MemberIdT&& value) {
70 SetMemberId(std::forward<MemberIdT>(value));
71 return *this;
72 }
74
76
80 inline NodeStatus GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(NodeStatus value) {
83 m_statusHasBeenSet = true;
84 m_status = value;
85 }
87 SetStatus(value);
88 return *this;
89 }
91
93
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) {
99 m_maxResultsHasBeenSet = true;
100 m_maxResults = value;
101 }
102 inline ListNodesRequest& WithMaxResults(int value) {
103 SetMaxResults(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
120 ListNodesRequest& WithNextToken(NextTokenT&& value) {
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_networkId;
127
128 Aws::String m_memberId;
129
131
132 int m_maxResults{0};
133
134 Aws::String m_nextToken;
135 bool m_networkIdHasBeenSet = false;
136 bool m_memberIdHasBeenSet = false;
137 bool m_statusHasBeenSet = false;
138 bool m_maxResultsHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace ManagedBlockchain
144} // namespace Aws
ListNodesRequest & WithNetworkId(NetworkIdT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
ListNodesRequest & WithNextToken(NextTokenT &&value)
ListNodesRequest & WithStatus(NodeStatus value)
ListNodesRequest & WithMemberId(MemberIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MANAGEDBLOCKCHAIN_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MANAGEDBLOCKCHAIN_API ListNodesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String