AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateRelationshipRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-channel/PartnerCentralChannelRequest.h>
11#include <aws/partnercentral-channel/PartnerCentralChannel_EXPORTS.h>
12#include <aws/partnercentral-channel/model/AssociationType.h>
13#include <aws/partnercentral-channel/model/ResaleAccountModel.h>
14#include <aws/partnercentral-channel/model/Sector.h>
15#include <aws/partnercentral-channel/model/SupportPlan.h>
16#include <aws/partnercentral-channel/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace PartnerCentralChannel {
22namespace Model {
23
27 public:
28 AWS_PARTNERCENTRALCHANNEL_API CreateRelationshipRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateRelationship"; }
35
36 AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override;
37
38 AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
44 inline const Aws::String& GetCatalog() const { return m_catalog; }
45 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
46 template <typename CatalogT = Aws::String>
47 void SetCatalog(CatalogT&& value) {
48 m_catalogHasBeenSet = true;
49 m_catalog = std::forward<CatalogT>(value);
50 }
51 template <typename CatalogT = Aws::String>
53 SetCatalog(std::forward<CatalogT>(value));
54 return *this;
55 }
57
59
63 inline AssociationType GetAssociationType() const { return m_associationType; }
64 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
66 m_associationTypeHasBeenSet = true;
67 m_associationType = value;
68 }
70 SetAssociationType(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetProgramManagementAccountIdentifier() const { return m_programManagementAccountIdentifier; }
80 inline bool ProgramManagementAccountIdentifierHasBeenSet() const { return m_programManagementAccountIdentifierHasBeenSet; }
81 template <typename ProgramManagementAccountIdentifierT = Aws::String>
82 void SetProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT&& value) {
83 m_programManagementAccountIdentifierHasBeenSet = true;
84 m_programManagementAccountIdentifier = std::forward<ProgramManagementAccountIdentifierT>(value);
85 }
86 template <typename ProgramManagementAccountIdentifierT = Aws::String>
87 CreateRelationshipRequest& WithProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT&& value) {
88 SetProgramManagementAccountIdentifier(std::forward<ProgramManagementAccountIdentifierT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetAssociatedAccountId() const { return m_associatedAccountId; }
98 inline bool AssociatedAccountIdHasBeenSet() const { return m_associatedAccountIdHasBeenSet; }
99 template <typename AssociatedAccountIdT = Aws::String>
100 void SetAssociatedAccountId(AssociatedAccountIdT&& value) {
101 m_associatedAccountIdHasBeenSet = true;
102 m_associatedAccountId = std::forward<AssociatedAccountIdT>(value);
103 }
104 template <typename AssociatedAccountIdT = Aws::String>
105 CreateRelationshipRequest& WithAssociatedAccountId(AssociatedAccountIdT&& value) {
106 SetAssociatedAccountId(std::forward<AssociatedAccountIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDisplayName() const { return m_displayName; }
116 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
117 template <typename DisplayNameT = Aws::String>
118 void SetDisplayName(DisplayNameT&& value) {
119 m_displayNameHasBeenSet = true;
120 m_displayName = std::forward<DisplayNameT>(value);
121 }
122 template <typename DisplayNameT = Aws::String>
124 SetDisplayName(std::forward<DisplayNameT>(value));
125 return *this;
126 }
128
130
133 inline ResaleAccountModel GetResaleAccountModel() const { return m_resaleAccountModel; }
134 inline bool ResaleAccountModelHasBeenSet() const { return m_resaleAccountModelHasBeenSet; }
136 m_resaleAccountModelHasBeenSet = true;
137 m_resaleAccountModel = value;
138 }
141 return *this;
142 }
144
146
149 inline Sector GetSector() const { return m_sector; }
150 inline bool SectorHasBeenSet() const { return m_sectorHasBeenSet; }
151 inline void SetSector(Sector value) {
152 m_sectorHasBeenSet = true;
153 m_sector = value;
154 }
156 SetSector(value);
157 return *this;
158 }
160
162
165 inline const Aws::String& GetClientToken() const { return m_clientToken; }
166 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
167 template <typename ClientTokenT = Aws::String>
168 void SetClientToken(ClientTokenT&& value) {
169 m_clientTokenHasBeenSet = true;
170 m_clientToken = std::forward<ClientTokenT>(value);
171 }
172 template <typename ClientTokenT = Aws::String>
174 SetClientToken(std::forward<ClientTokenT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 template <typename TagsT = Aws::Vector<Tag>>
186 void SetTags(TagsT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags = std::forward<TagsT>(value);
189 }
190 template <typename TagsT = Aws::Vector<Tag>>
192 SetTags(std::forward<TagsT>(value));
193 return *this;
194 }
195 template <typename TagsT = Tag>
197 m_tagsHasBeenSet = true;
198 m_tags.emplace_back(std::forward<TagsT>(value));
199 return *this;
200 }
202
204
207 inline const SupportPlan& GetRequestedSupportPlan() const { return m_requestedSupportPlan; }
208 inline bool RequestedSupportPlanHasBeenSet() const { return m_requestedSupportPlanHasBeenSet; }
209 template <typename RequestedSupportPlanT = SupportPlan>
210 void SetRequestedSupportPlan(RequestedSupportPlanT&& value) {
211 m_requestedSupportPlanHasBeenSet = true;
212 m_requestedSupportPlan = std::forward<RequestedSupportPlanT>(value);
213 }
214 template <typename RequestedSupportPlanT = SupportPlan>
215 CreateRelationshipRequest& WithRequestedSupportPlan(RequestedSupportPlanT&& value) {
216 SetRequestedSupportPlan(std::forward<RequestedSupportPlanT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_catalog;
222
223 AssociationType m_associationType{AssociationType::NOT_SET};
224
225 Aws::String m_programManagementAccountIdentifier;
226
227 Aws::String m_associatedAccountId;
228
229 Aws::String m_displayName;
230
232
233 Sector m_sector{Sector::NOT_SET};
234
236
237 Aws::Vector<Tag> m_tags;
238
239 SupportPlan m_requestedSupportPlan;
240 bool m_catalogHasBeenSet = false;
241 bool m_associationTypeHasBeenSet = false;
242 bool m_programManagementAccountIdentifierHasBeenSet = false;
243 bool m_associatedAccountIdHasBeenSet = false;
244 bool m_displayNameHasBeenSet = false;
245 bool m_resaleAccountModelHasBeenSet = false;
246 bool m_sectorHasBeenSet = false;
247 bool m_clientTokenHasBeenSet = true;
248 bool m_tagsHasBeenSet = false;
249 bool m_requestedSupportPlanHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace PartnerCentralChannel
254} // namespace Aws
CreateRelationshipRequest & WithAssociationType(AssociationType value)
CreateRelationshipRequest & WithProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT &&value)
void SetProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT &&value)
CreateRelationshipRequest & WithClientToken(ClientTokenT &&value)
AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override
AWS_PARTNERCENTRALCHANNEL_API CreateRelationshipRequest()=default
AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRelationshipRequest & WithResaleAccountModel(ResaleAccountModel value)
CreateRelationshipRequest & WithDisplayName(DisplayNameT &&value)
CreateRelationshipRequest & WithRequestedSupportPlan(RequestedSupportPlanT &&value)
CreateRelationshipRequest & WithAssociatedAccountId(AssociatedAccountIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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