AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
ListConnectionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/interconnect/InterconnectRequest.h>
9#include <aws/interconnect/Interconnect_EXPORTS.h>
10#include <aws/interconnect/model/AttachPoint.h>
11#include <aws/interconnect/model/ConnectionState.h>
12#include <aws/interconnect/model/Provider.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Interconnect {
18namespace Model {
19
23 public:
24 AWS_INTERCONNECT_API ListConnectionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListConnections"; }
31
32 AWS_INTERCONNECT_API Aws::String SerializePayload() const override;
33
34 AWS_INTERCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline int GetMaxResults() const { return m_maxResults; }
41 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
42 inline void SetMaxResults(int value) {
43 m_maxResultsHasBeenSet = true;
44 m_maxResults = value;
45 }
47 SetMaxResults(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
76 inline ConnectionState GetState() const { return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(ConnectionState value) {
79 m_stateHasBeenSet = true;
80 m_state = value;
81 }
83 SetState(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
94 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
95 template <typename EnvironmentIdT = Aws::String>
96 void SetEnvironmentId(EnvironmentIdT&& value) {
97 m_environmentIdHasBeenSet = true;
98 m_environmentId = std::forward<EnvironmentIdT>(value);
99 }
100 template <typename EnvironmentIdT = Aws::String>
101 ListConnectionsRequest& WithEnvironmentId(EnvironmentIdT&& value) {
102 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
103 return *this;
104 }
106
108
112 inline const Provider& GetProvider() const { return m_provider; }
113 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
114 template <typename ProviderT = Provider>
115 void SetProvider(ProviderT&& value) {
116 m_providerHasBeenSet = true;
117 m_provider = std::forward<ProviderT>(value);
118 }
119 template <typename ProviderT = Provider>
121 SetProvider(std::forward<ProviderT>(value));
122 return *this;
123 }
125
127
131 inline const AttachPoint& GetAttachPoint() const { return m_attachPoint; }
132 inline bool AttachPointHasBeenSet() const { return m_attachPointHasBeenSet; }
133 template <typename AttachPointT = AttachPoint>
134 void SetAttachPoint(AttachPointT&& value) {
135 m_attachPointHasBeenSet = true;
136 m_attachPoint = std::forward<AttachPointT>(value);
137 }
138 template <typename AttachPointT = AttachPoint>
140 SetAttachPoint(std::forward<AttachPointT>(value));
141 return *this;
142 }
144 private:
145 int m_maxResults{0};
146
147 Aws::String m_nextToken;
148
150
151 Aws::String m_environmentId;
152
153 Provider m_provider;
154
155 AttachPoint m_attachPoint;
156 bool m_maxResultsHasBeenSet = false;
157 bool m_nextTokenHasBeenSet = false;
158 bool m_stateHasBeenSet = false;
159 bool m_environmentIdHasBeenSet = false;
160 bool m_providerHasBeenSet = false;
161 bool m_attachPointHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Interconnect
166} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListConnectionsRequest & WithEnvironmentId(EnvironmentIdT &&value)
ListConnectionsRequest & WithMaxResults(int value)
ListConnectionsRequest & WithAttachPoint(AttachPointT &&value)
ListConnectionsRequest & WithProvider(ProviderT &&value)
AWS_INTERCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListConnectionsRequest & WithNextToken(NextTokenT &&value)
AWS_INTERCONNECT_API Aws::String SerializePayload() const override
AWS_INTERCONNECT_API ListConnectionsRequest()=default
ListConnectionsRequest & WithState(ConnectionState value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String