AWS SDK for C++  1.9.40
AWS SDK for C++
GetTransitGatewayRegistrationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace NetworkManager
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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 "GetTransitGatewayRegistrations"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
46 
50  inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
51 
55  inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
56 
60  inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
61 
65  inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
66 
70  inline GetTransitGatewayRegistrationsRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
71 
75  inline GetTransitGatewayRegistrationsRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
76 
80  inline GetTransitGatewayRegistrationsRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
81 
82 
87  inline const Aws::Vector<Aws::String>& GetTransitGatewayArns() const{ return m_transitGatewayArns; }
88 
93  inline bool TransitGatewayArnsHasBeenSet() const { return m_transitGatewayArnsHasBeenSet; }
94 
99  inline void SetTransitGatewayArns(const Aws::Vector<Aws::String>& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns = value; }
100 
105  inline void SetTransitGatewayArns(Aws::Vector<Aws::String>&& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns = std::move(value); }
106 
111  inline GetTransitGatewayRegistrationsRequest& WithTransitGatewayArns(const Aws::Vector<Aws::String>& value) { SetTransitGatewayArns(value); return *this;}
112 
117  inline GetTransitGatewayRegistrationsRequest& WithTransitGatewayArns(Aws::Vector<Aws::String>&& value) { SetTransitGatewayArns(std::move(value)); return *this;}
118 
123  inline GetTransitGatewayRegistrationsRequest& AddTransitGatewayArns(const Aws::String& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns.push_back(value); return *this; }
124 
129  inline GetTransitGatewayRegistrationsRequest& AddTransitGatewayArns(Aws::String&& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns.push_back(std::move(value)); return *this; }
130 
135  inline GetTransitGatewayRegistrationsRequest& AddTransitGatewayArns(const char* value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns.push_back(value); return *this; }
136 
137 
141  inline int GetMaxResults() const{ return m_maxResults; }
142 
146  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
147 
151  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
152 
156  inline GetTransitGatewayRegistrationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
157 
158 
162  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
163 
167  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
168 
172  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
173 
177  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
178 
182  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
183 
187  inline GetTransitGatewayRegistrationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
188 
192  inline GetTransitGatewayRegistrationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
193 
197  inline GetTransitGatewayRegistrationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
198 
199  private:
200 
201  Aws::String m_globalNetworkId;
202  bool m_globalNetworkIdHasBeenSet;
203 
204  Aws::Vector<Aws::String> m_transitGatewayArns;
205  bool m_transitGatewayArnsHasBeenSet;
206 
207  int m_maxResults;
208  bool m_maxResultsHasBeenSet;
209 
210  Aws::String m_nextToken;
211  bool m_nextTokenHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace NetworkManager
216 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::NetworkManager::NetworkManagerRequest
Definition: NetworkManagerRequest.h:17
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithGlobalNetworkId
GetTransitGatewayRegistrationsRequest & WithGlobalNetworkId(Aws::String &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:75
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithTransitGatewayArns
GetTransitGatewayRegistrationsRequest & WithTransitGatewayArns(Aws::Vector< Aws::String > &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:117
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithGlobalNetworkId
GetTransitGatewayRegistrationsRequest & WithGlobalNetworkId(const Aws::String &value)
Definition: GetTransitGatewayRegistrationsRequest.h:70
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::AddTransitGatewayArns
GetTransitGatewayRegistrationsRequest & AddTransitGatewayArns(Aws::String &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:129
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetTransitGatewayRegistrationsRequest.h:146
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetGlobalNetworkId
void SetGlobalNetworkId(Aws::String &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:60
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::AddTransitGatewayArns
GetTransitGatewayRegistrationsRequest & AddTransitGatewayArns(const char *value)
Definition: GetTransitGatewayRegistrationsRequest.h:135
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
NetworkManager_EXPORTS.h
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetTransitGatewayRegistrationsRequest.h:167
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetTransitGatewayRegistrationsRequest.h:141
AWSVector.h
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetTransitGatewayRegistrationsRequest.h:162
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithNextToken
GetTransitGatewayRegistrationsRequest & WithNextToken(const Aws::String &value)
Definition: GetTransitGatewayRegistrationsRequest.h:187
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GetTransitGatewayArns
const Aws::Vector< Aws::String > & GetTransitGatewayArns() const
Definition: GetTransitGatewayRegistrationsRequest.h:87
AWS_NETWORKMANAGER_API
#define AWS_NETWORKMANAGER_API
Definition: NetworkManager_EXPORTS.h:28
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GetGlobalNetworkId
const Aws::String & GetGlobalNetworkId() const
Definition: GetTransitGatewayRegistrationsRequest.h:45
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithGlobalNetworkId
GetTransitGatewayRegistrationsRequest & WithGlobalNetworkId(const char *value)
Definition: GetTransitGatewayRegistrationsRequest.h:80
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithNextToken
GetTransitGatewayRegistrationsRequest & WithNextToken(const char *value)
Definition: GetTransitGatewayRegistrationsRequest.h:197
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:177
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GlobalNetworkIdHasBeenSet
bool GlobalNetworkIdHasBeenSet() const
Definition: GetTransitGatewayRegistrationsRequest.h:50
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::TransitGatewayArnsHasBeenSet
bool TransitGatewayArnsHasBeenSet() const
Definition: GetTransitGatewayRegistrationsRequest.h:93
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GetTransitGatewayRegistrationsRequest
GetTransitGatewayRegistrationsRequest()
AWSString.h
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithNextToken
GetTransitGatewayRegistrationsRequest & WithNextToken(Aws::String &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:192
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetTransitGatewayArns
void SetTransitGatewayArns(const Aws::Vector< Aws::String > &value)
Definition: GetTransitGatewayRegistrationsRequest.h:99
NetworkManagerRequest.h
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::AddTransitGatewayArns
GetTransitGatewayRegistrationsRequest & AddTransitGatewayArns(const Aws::String &value)
Definition: GetTransitGatewayRegistrationsRequest.h:123
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetGlobalNetworkId
void SetGlobalNetworkId(const char *value)
Definition: GetTransitGatewayRegistrationsRequest.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithTransitGatewayArns
GetTransitGatewayRegistrationsRequest & WithTransitGatewayArns(const Aws::Vector< Aws::String > &value)
Definition: GetTransitGatewayRegistrationsRequest.h:111
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetGlobalNetworkId
void SetGlobalNetworkId(const Aws::String &value)
Definition: GetTransitGatewayRegistrationsRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::WithMaxResults
GetTransitGatewayRegistrationsRequest & WithMaxResults(int value)
Definition: GetTransitGatewayRegistrationsRequest.h:156
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetTransitGatewayRegistrationsRequest.h:172
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTransitGatewayRegistrationsRequest.h:35
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetTransitGatewayRegistrationsRequest.h:151
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetTransitGatewayRegistrationsRequest.h:182
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest::SetTransitGatewayArns
void SetTransitGatewayArns(Aws::Vector< Aws::String > &&value)
Definition: GetTransitGatewayRegistrationsRequest.h:105
Aws::NetworkManager::Model::GetTransitGatewayRegistrationsRequest
Definition: GetTransitGatewayRegistrationsRequest.h:27