AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListNodesRequest.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/ManagedBlockchainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/model/NodeStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace ManagedBlockchain
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MANAGEDBLOCKCHAIN_API ListNodesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListNodes"; }
36
37 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
38
39 AWS_MANAGEDBLOCKCHAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetNetworkId() const { return m_networkId; }
47 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
48 template<typename NetworkIdT = Aws::String>
49 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
50 template<typename NetworkIdT = Aws::String>
51 ListNodesRequest& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
53
55
60 inline const Aws::String& GetMemberId() const { return m_memberId; }
61 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
62 template<typename MemberIdT = Aws::String>
63 void SetMemberId(MemberIdT&& value) { m_memberIdHasBeenSet = true; m_memberId = std::forward<MemberIdT>(value); }
64 template<typename MemberIdT = Aws::String>
65 ListNodesRequest& WithMemberId(MemberIdT&& value) { SetMemberId(std::forward<MemberIdT>(value)); return *this;}
67
69
73 inline NodeStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(NodeStatus value) { m_statusHasBeenSet = true; m_status = value; }
76 inline ListNodesRequest& WithStatus(NodeStatus value) { SetStatus(value); return *this;}
78
80
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline ListNodesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
93 inline const Aws::String& GetNextToken() const { return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 template<typename NextTokenT = Aws::String>
96 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
97 template<typename NextTokenT = Aws::String>
98 ListNodesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
100 private:
101
102 Aws::String m_networkId;
103 bool m_networkIdHasBeenSet = false;
104
105 Aws::String m_memberId;
106 bool m_memberIdHasBeenSet = false;
107
109 bool m_statusHasBeenSet = false;
110
111 int m_maxResults{0};
112 bool m_maxResultsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ManagedBlockchain
120} // 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