AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTransitGatewayRegistrationsRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace NetworkManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_NETWORKMANAGER_API GetTransitGatewayRegistrationsRequest();
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_NETWORKMANAGER_API Aws::String SerializePayload() const override;
38
39 AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
47 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
48 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
49 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
50 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
53 inline GetTransitGatewayRegistrationsRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetTransitGatewayArns() const{ return m_transitGatewayArns; }
62 inline bool TransitGatewayArnsHasBeenSet() const { return m_transitGatewayArnsHasBeenSet; }
63 inline void SetTransitGatewayArns(const Aws::Vector<Aws::String>& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns = value; }
64 inline void SetTransitGatewayArns(Aws::Vector<Aws::String>&& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns = std::move(value); }
67 inline GetTransitGatewayRegistrationsRequest& AddTransitGatewayArns(const Aws::String& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns.push_back(value); return *this; }
68 inline GetTransitGatewayRegistrationsRequest& AddTransitGatewayArns(Aws::String&& value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns.push_back(std::move(value)); return *this; }
69 inline GetTransitGatewayRegistrationsRequest& AddTransitGatewayArns(const char* value) { m_transitGatewayArnsHasBeenSet = true; m_transitGatewayArns.push_back(value); return *this; }
71
73
76 inline int GetMaxResults() const{ return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline GetTransitGatewayRegistrationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 inline GetTransitGatewayRegistrationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 inline GetTransitGatewayRegistrationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 inline GetTransitGatewayRegistrationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95 private:
96
97 Aws::String m_globalNetworkId;
98 bool m_globalNetworkIdHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_transitGatewayArns;
101 bool m_transitGatewayArnsHasBeenSet = false;
102
103 int m_maxResults;
104 bool m_maxResultsHasBeenSet = false;
105
106 Aws::String m_nextToken;
107 bool m_nextTokenHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace NetworkManager
112} // namespace Aws
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetTransitGatewayRegistrationsRequest & WithNextToken(const Aws::String &value)
GetTransitGatewayRegistrationsRequest & WithNextToken(Aws::String &&value)
GetTransitGatewayRegistrationsRequest & WithGlobalNetworkId(const Aws::String &value)
GetTransitGatewayRegistrationsRequest & AddTransitGatewayArns(const char *value)
GetTransitGatewayRegistrationsRequest & AddTransitGatewayArns(Aws::String &&value)
GetTransitGatewayRegistrationsRequest & WithNextToken(const char *value)
GetTransitGatewayRegistrationsRequest & WithGlobalNetworkId(const char *value)
GetTransitGatewayRegistrationsRequest & AddTransitGatewayArns(const Aws::String &value)
GetTransitGatewayRegistrationsRequest & WithGlobalNetworkId(Aws::String &&value)
GetTransitGatewayRegistrationsRequest & WithTransitGatewayArns(const Aws::Vector< Aws::String > &value)
GetTransitGatewayRegistrationsRequest & WithTransitGatewayArns(Aws::Vector< Aws::String > &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector