AWS SDK for C++

AWS SDK for C++ Version 1.11.715

Loading...
Searching...
No Matches
ListConnectionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-account/PartnerCentralAccountRequest.h>
10#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PartnerCentralAccount {
16namespace Model {
17
21 public:
22 AWS_PARTNERCENTRALACCOUNT_API ListConnectionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListConnections"; }
29
30 AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override;
31
32 AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetCatalog() const { return m_catalog; }
39 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
40 template <typename CatalogT = Aws::String>
41 void SetCatalog(CatalogT&& value) {
42 m_catalogHasBeenSet = true;
43 m_catalog = std::forward<CatalogT>(value);
44 }
45 template <typename CatalogT = Aws::String>
47 SetCatalog(std::forward<CatalogT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
76 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
77 template <typename ConnectionTypeT = Aws::String>
78 void SetConnectionType(ConnectionTypeT&& value) {
79 m_connectionTypeHasBeenSet = true;
80 m_connectionType = std::forward<ConnectionTypeT>(value);
81 }
82 template <typename ConnectionTypeT = Aws::String>
83 ListConnectionsRequest& WithConnectionType(ConnectionTypeT&& value) {
84 SetConnectionType(std::forward<ConnectionTypeT>(value));
85 return *this;
86 }
88
90
93 inline int GetMaxResults() const { return m_maxResults; }
94 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 inline void SetMaxResults(int value) {
96 m_maxResultsHasBeenSet = true;
97 m_maxResults = value;
98 }
100 SetMaxResults(value);
101 return *this;
102 }
104
106
109 inline const Aws::Vector<Aws::String>& GetOtherParticipantIdentifiers() const { return m_otherParticipantIdentifiers; }
110 inline bool OtherParticipantIdentifiersHasBeenSet() const { return m_otherParticipantIdentifiersHasBeenSet; }
111 template <typename OtherParticipantIdentifiersT = Aws::Vector<Aws::String>>
112 void SetOtherParticipantIdentifiers(OtherParticipantIdentifiersT&& value) {
113 m_otherParticipantIdentifiersHasBeenSet = true;
114 m_otherParticipantIdentifiers = std::forward<OtherParticipantIdentifiersT>(value);
115 }
116 template <typename OtherParticipantIdentifiersT = Aws::Vector<Aws::String>>
117 ListConnectionsRequest& WithOtherParticipantIdentifiers(OtherParticipantIdentifiersT&& value) {
118 SetOtherParticipantIdentifiers(std::forward<OtherParticipantIdentifiersT>(value));
119 return *this;
120 }
121 template <typename OtherParticipantIdentifiersT = Aws::String>
122 ListConnectionsRequest& AddOtherParticipantIdentifiers(OtherParticipantIdentifiersT&& value) {
123 m_otherParticipantIdentifiersHasBeenSet = true;
124 m_otherParticipantIdentifiers.emplace_back(std::forward<OtherParticipantIdentifiersT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_catalog;
130
131 Aws::String m_nextToken;
132
133 Aws::String m_connectionType;
134
135 int m_maxResults{0};
136
137 Aws::Vector<Aws::String> m_otherParticipantIdentifiers;
138 bool m_catalogHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140 bool m_connectionTypeHasBeenSet = false;
141 bool m_maxResultsHasBeenSet = false;
142 bool m_otherParticipantIdentifiersHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace PartnerCentralAccount
147} // namespace Aws
ListConnectionsRequest & WithNextToken(NextTokenT &&value)
ListConnectionsRequest & AddOtherParticipantIdentifiers(OtherParticipantIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetOtherParticipantIdentifiers() const
ListConnectionsRequest & WithConnectionType(ConnectionTypeT &&value)
AWS_PARTNERCENTRALACCOUNT_API ListConnectionsRequest()=default
ListConnectionsRequest & WithOtherParticipantIdentifiers(OtherParticipantIdentifiersT &&value)
AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override
ListConnectionsRequest & WithCatalog(CatalogT &&value)
void SetOtherParticipantIdentifiers(OtherParticipantIdentifiersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector