AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
50 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
51 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
52 inline ListPeeringsRequest& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
53 inline ListPeeringsRequest& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
54 inline ListPeeringsRequest& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
56
58
61 inline const PeeringType& GetPeeringType() const{ return m_peeringType; }
62 inline bool PeeringTypeHasBeenSet() const { return m_peeringTypeHasBeenSet; }
63 inline void SetPeeringType(const PeeringType& value) { m_peeringTypeHasBeenSet = true; m_peeringType = value; }
64 inline void SetPeeringType(PeeringType&& value) { m_peeringTypeHasBeenSet = true; m_peeringType = std::move(value); }
65 inline ListPeeringsRequest& WithPeeringType(const PeeringType& value) { SetPeeringType(value); return *this;}
66 inline ListPeeringsRequest& WithPeeringType(PeeringType&& value) { SetPeeringType(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; }
74 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
75 inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; }
76 inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); }
77 inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); }
78 inline ListPeeringsRequest& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;}
79 inline ListPeeringsRequest& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;}
80 inline ListPeeringsRequest& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;}
82
84
87 inline const PeeringState& GetState() const{ return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
89 inline void SetState(const PeeringState& value) { m_stateHasBeenSet = true; m_state = value; }
90 inline void SetState(PeeringState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
91 inline ListPeeringsRequest& WithState(const PeeringState& value) { SetState(value); return *this;}
92 inline ListPeeringsRequest& WithState(PeeringState&& value) { SetState(std::move(value)); return *this;}
94
96
99 inline int GetMaxResults() const{ return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
102 inline ListPeeringsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
104
106
109 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
112 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
113 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
114 inline ListPeeringsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
115 inline ListPeeringsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 inline ListPeeringsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118 private:
119
120 Aws::String m_coreNetworkId;
121 bool m_coreNetworkIdHasBeenSet = false;
122
123 PeeringType m_peeringType;
124 bool m_peeringTypeHasBeenSet = false;
125
126 Aws::String m_edgeLocation;
127 bool m_edgeLocationHasBeenSet = false;
128
129 PeeringState m_state;
130 bool m_stateHasBeenSet = false;
131
132 int m_maxResults;
133 bool m_maxResultsHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace NetworkManager
141} // namespace Aws
ListPeeringsRequest & WithNextToken(const Aws::String &value)
ListPeeringsRequest & WithState(const PeeringState &value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
ListPeeringsRequest & WithCoreNetworkId(const char *value)
ListPeeringsRequest & WithState(PeeringState &&value)
ListPeeringsRequest & WithEdgeLocation(Aws::String &&value)
ListPeeringsRequest & WithEdgeLocation(const Aws::String &value)
ListPeeringsRequest & WithPeeringType(PeeringType &&value)
ListPeeringsRequest & WithCoreNetworkId(Aws::String &&value)
ListPeeringsRequest & WithNextToken(const char *value)
ListPeeringsRequest & WithNextToken(Aws::String &&value)
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPeeringsRequest & WithEdgeLocation(const char *value)
ListPeeringsRequest & WithPeeringType(const PeeringType &value)
virtual const char * GetServiceRequestName() const override
ListPeeringsRequest & WithCoreNetworkId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String