AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListRelationshipsRequest.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-channel/PartnerCentralChannelRequest.h>
10#include <aws/partnercentral-channel/PartnerCentralChannel_EXPORTS.h>
11#include <aws/partnercentral-channel/model/AssociationType.h>
12#include <aws/partnercentral-channel/model/ListRelationshipsSortBase.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PartnerCentralChannel {
18namespace Model {
19
23 public:
24 AWS_PARTNERCENTRALCHANNEL_API ListRelationshipsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListRelationships"; }
31
32 AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override;
33
34 AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetCatalog() const { return m_catalog; }
41 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
42 template <typename CatalogT = Aws::String>
43 void SetCatalog(CatalogT&& value) {
44 m_catalogHasBeenSet = true;
45 m_catalog = std::forward<CatalogT>(value);
46 }
47 template <typename CatalogT = Aws::String>
49 SetCatalog(std::forward<CatalogT>(value));
50 return *this;
51 }
53
55
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) {
61 m_maxResultsHasBeenSet = true;
62 m_maxResults = value;
63 }
65 SetMaxResults(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetAssociatedAccountIds() const { return m_associatedAccountIds; }
75 inline bool AssociatedAccountIdsHasBeenSet() const { return m_associatedAccountIdsHasBeenSet; }
76 template <typename AssociatedAccountIdsT = Aws::Vector<Aws::String>>
77 void SetAssociatedAccountIds(AssociatedAccountIdsT&& value) {
78 m_associatedAccountIdsHasBeenSet = true;
79 m_associatedAccountIds = std::forward<AssociatedAccountIdsT>(value);
80 }
81 template <typename AssociatedAccountIdsT = Aws::Vector<Aws::String>>
82 ListRelationshipsRequest& WithAssociatedAccountIds(AssociatedAccountIdsT&& value) {
83 SetAssociatedAccountIds(std::forward<AssociatedAccountIdsT>(value));
84 return *this;
85 }
86 template <typename AssociatedAccountIdsT = Aws::String>
87 ListRelationshipsRequest& AddAssociatedAccountIds(AssociatedAccountIdsT&& value) {
88 m_associatedAccountIdsHasBeenSet = true;
89 m_associatedAccountIds.emplace_back(std::forward<AssociatedAccountIdsT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<AssociationType>& GetAssociationTypes() const { return m_associationTypes; }
99 inline bool AssociationTypesHasBeenSet() const { return m_associationTypesHasBeenSet; }
100 template <typename AssociationTypesT = Aws::Vector<AssociationType>>
101 void SetAssociationTypes(AssociationTypesT&& value) {
102 m_associationTypesHasBeenSet = true;
103 m_associationTypes = std::forward<AssociationTypesT>(value);
104 }
105 template <typename AssociationTypesT = Aws::Vector<AssociationType>>
106 ListRelationshipsRequest& WithAssociationTypes(AssociationTypesT&& value) {
107 SetAssociationTypes(std::forward<AssociationTypesT>(value));
108 return *this;
109 }
111 m_associationTypesHasBeenSet = true;
112 m_associationTypes.push_back(value);
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Aws::String>& GetDisplayNames() const { return m_displayNames; }
122 inline bool DisplayNamesHasBeenSet() const { return m_displayNamesHasBeenSet; }
123 template <typename DisplayNamesT = Aws::Vector<Aws::String>>
124 void SetDisplayNames(DisplayNamesT&& value) {
125 m_displayNamesHasBeenSet = true;
126 m_displayNames = std::forward<DisplayNamesT>(value);
127 }
128 template <typename DisplayNamesT = Aws::Vector<Aws::String>>
130 SetDisplayNames(std::forward<DisplayNamesT>(value));
131 return *this;
132 }
133 template <typename DisplayNamesT = Aws::String>
135 m_displayNamesHasBeenSet = true;
136 m_displayNames.emplace_back(std::forward<DisplayNamesT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Aws::String>& GetProgramManagementAccountIdentifiers() const { return m_programManagementAccountIdentifiers; }
146 inline bool ProgramManagementAccountIdentifiersHasBeenSet() const { return m_programManagementAccountIdentifiersHasBeenSet; }
147 template <typename ProgramManagementAccountIdentifiersT = Aws::Vector<Aws::String>>
148 void SetProgramManagementAccountIdentifiers(ProgramManagementAccountIdentifiersT&& value) {
149 m_programManagementAccountIdentifiersHasBeenSet = true;
150 m_programManagementAccountIdentifiers = std::forward<ProgramManagementAccountIdentifiersT>(value);
151 }
152 template <typename ProgramManagementAccountIdentifiersT = Aws::Vector<Aws::String>>
153 ListRelationshipsRequest& WithProgramManagementAccountIdentifiers(ProgramManagementAccountIdentifiersT&& value) {
154 SetProgramManagementAccountIdentifiers(std::forward<ProgramManagementAccountIdentifiersT>(value));
155 return *this;
156 }
157 template <typename ProgramManagementAccountIdentifiersT = Aws::String>
158 ListRelationshipsRequest& AddProgramManagementAccountIdentifiers(ProgramManagementAccountIdentifiersT&& value) {
159 m_programManagementAccountIdentifiersHasBeenSet = true;
160 m_programManagementAccountIdentifiers.emplace_back(std::forward<ProgramManagementAccountIdentifiersT>(value));
161 return *this;
162 }
164
166
169 inline const ListRelationshipsSortBase& GetSort() const { return m_sort; }
170 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
171 template <typename SortT = ListRelationshipsSortBase>
172 void SetSort(SortT&& value) {
173 m_sortHasBeenSet = true;
174 m_sort = std::forward<SortT>(value);
175 }
176 template <typename SortT = ListRelationshipsSortBase>
178 SetSort(std::forward<SortT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetNextToken() const { return m_nextToken; }
188 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
189 template <typename NextTokenT = Aws::String>
190 void SetNextToken(NextTokenT&& value) {
191 m_nextTokenHasBeenSet = true;
192 m_nextToken = std::forward<NextTokenT>(value);
193 }
194 template <typename NextTokenT = Aws::String>
196 SetNextToken(std::forward<NextTokenT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_catalog;
202
203 int m_maxResults{0};
204
205 Aws::Vector<Aws::String> m_associatedAccountIds;
206
207 Aws::Vector<AssociationType> m_associationTypes;
208
209 Aws::Vector<Aws::String> m_displayNames;
210
211 Aws::Vector<Aws::String> m_programManagementAccountIdentifiers;
212
213 ListRelationshipsSortBase m_sort;
214
215 Aws::String m_nextToken;
216 bool m_catalogHasBeenSet = false;
217 bool m_maxResultsHasBeenSet = false;
218 bool m_associatedAccountIdsHasBeenSet = false;
219 bool m_associationTypesHasBeenSet = false;
220 bool m_displayNamesHasBeenSet = false;
221 bool m_programManagementAccountIdentifiersHasBeenSet = false;
222 bool m_sortHasBeenSet = false;
223 bool m_nextTokenHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace PartnerCentralChannel
228} // namespace Aws
ListRelationshipsRequest & WithAssociationTypes(AssociationTypesT &&value)
const Aws::Vector< Aws::String > & GetProgramManagementAccountIdentifiers() const
ListRelationshipsRequest & WithNextToken(NextTokenT &&value)
ListRelationshipsRequest & WithAssociatedAccountIds(AssociatedAccountIdsT &&value)
AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override
ListRelationshipsRequest & WithProgramManagementAccountIdentifiers(ProgramManagementAccountIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetAssociatedAccountIds() const
ListRelationshipsRequest & AddDisplayNames(DisplayNamesT &&value)
void SetProgramManagementAccountIdentifiers(ProgramManagementAccountIdentifiersT &&value)
AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListRelationshipsRequest & AddAssociationTypes(AssociationType value)
ListRelationshipsRequest & AddAssociatedAccountIds(AssociatedAccountIdsT &&value)
ListRelationshipsRequest & WithDisplayNames(DisplayNamesT &&value)
AWS_PARTNERCENTRALCHANNEL_API ListRelationshipsRequest()=default
ListRelationshipsRequest & AddProgramManagementAccountIdentifiers(ProgramManagementAccountIdentifiersT &&value)
const Aws::Vector< AssociationType > & GetAssociationTypes() const
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