AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListPeeringsRequest.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/networkmanager/model/PeeringType.h>
11#include <aws/networkmanager/model/PeeringState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace NetworkManager
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_NETWORKMANAGER_API ListPeeringsRequest() = 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 "ListPeerings"; }
37
38 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
39
40 AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
48 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
49 template<typename CoreNetworkIdT = Aws::String>
50 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
51 template<typename CoreNetworkIdT = Aws::String>
52 ListPeeringsRequest& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
54
56
59 inline PeeringType GetPeeringType() const { return m_peeringType; }
60 inline bool PeeringTypeHasBeenSet() const { return m_peeringTypeHasBeenSet; }
61 inline void SetPeeringType(PeeringType value) { m_peeringTypeHasBeenSet = true; m_peeringType = value; }
62 inline ListPeeringsRequest& WithPeeringType(PeeringType value) { SetPeeringType(value); return *this;}
64
66
69 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
70 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
71 template<typename EdgeLocationT = Aws::String>
72 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
73 template<typename EdgeLocationT = Aws::String>
74 ListPeeringsRequest& WithEdgeLocation(EdgeLocationT&& value) { SetEdgeLocation(std::forward<EdgeLocationT>(value)); return *this;}
76
78
81 inline PeeringState GetState() const { return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(PeeringState value) { m_stateHasBeenSet = true; m_state = value; }
84 inline ListPeeringsRequest& WithState(PeeringState value) { SetState(value); return *this;}
86
88
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline ListPeeringsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96
98
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template<typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
105 template<typename NextTokenT = Aws::String>
106 ListPeeringsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
108 private:
109
110 Aws::String m_coreNetworkId;
111 bool m_coreNetworkIdHasBeenSet = false;
112
113 PeeringType m_peeringType{PeeringType::NOT_SET};
114 bool m_peeringTypeHasBeenSet = false;
115
116 Aws::String m_edgeLocation;
117 bool m_edgeLocationHasBeenSet = false;
118
120 bool m_stateHasBeenSet = false;
121
122 int m_maxResults{0};
123 bool m_maxResultsHasBeenSet = false;
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace NetworkManager
131} // namespace Aws
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
ListPeeringsRequest & WithPeeringType(PeeringType value)
ListPeeringsRequest & WithCoreNetworkId(CoreNetworkIdT &&value)
AWS_NETWORKMANAGER_API ListPeeringsRequest()=default
ListPeeringsRequest & WithEdgeLocation(EdgeLocationT &&value)
ListPeeringsRequest & WithMaxResults(int value)
ListPeeringsRequest & WithState(PeeringState value)
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPeeringsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String