AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListNetworksRequest.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/Framework.h>
11#include <aws/managedblockchain/model/NetworkStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace ManagedBlockchain
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MANAGEDBLOCKCHAIN_API ListNetworksRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListNetworks"; }
37
38 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
39
40 AWS_MANAGEDBLOCKCHAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 ListNetworksRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline Framework GetFramework() const { return m_framework; }
61 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
62 inline void SetFramework(Framework value) { m_frameworkHasBeenSet = true; m_framework = value; }
63 inline ListNetworksRequest& WithFramework(Framework value) { SetFramework(value); return *this;}
65
67
71 inline NetworkStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(NetworkStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline ListNetworksRequest& WithStatus(NetworkStatus value) { SetStatus(value); return *this;}
76
78
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline ListNetworksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86
88
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 template<typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
95 template<typename NextTokenT = Aws::String>
96 ListNetworksRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Framework m_framework{Framework::NOT_SET};
104 bool m_frameworkHasBeenSet = false;
105
107 bool m_statusHasBeenSet = false;
108
109 int m_maxResults{0};
110 bool m_maxResultsHasBeenSet = false;
111
112 Aws::String m_nextToken;
113 bool m_nextTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace ManagedBlockchain
118} // namespace Aws
AWS_MANAGEDBLOCKCHAIN_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
ListNetworksRequest & WithName(NameT &&value)
ListNetworksRequest & WithStatus(NetworkStatus value)
AWS_MANAGEDBLOCKCHAIN_API ListNetworksRequest()=default
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
ListNetworksRequest & WithNextToken(NextTokenT &&value)
ListNetworksRequest & WithFramework(Framework value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String