AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CreatePartnerRequest.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-account/PartnerCentralAccountRequest.h>
11#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
12#include <aws/partnercentral-account/model/AllianceLeadContact.h>
13#include <aws/partnercentral-account/model/PrimarySolutionType.h>
14#include <aws/partnercentral-account/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace PartnerCentralAccount {
20namespace Model {
21
25 public:
26 AWS_PARTNERCENTRALACCOUNT_API CreatePartnerRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePartner"; }
33
34 AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override;
35
36 AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetCatalog() const { return m_catalog; }
43 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
44 template <typename CatalogT = Aws::String>
45 void SetCatalog(CatalogT&& value) {
46 m_catalogHasBeenSet = true;
47 m_catalog = std::forward<CatalogT>(value);
48 }
49 template <typename CatalogT = Aws::String>
50 CreatePartnerRequest& WithCatalog(CatalogT&& value) {
51 SetCatalog(std::forward<CatalogT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
69 CreatePartnerRequest& WithClientToken(ClientTokenT&& value) {
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetLegalName() const { return m_legalName; }
80 inline bool LegalNameHasBeenSet() const { return m_legalNameHasBeenSet; }
81 template <typename LegalNameT = Aws::String>
82 void SetLegalName(LegalNameT&& value) {
83 m_legalNameHasBeenSet = true;
84 m_legalName = std::forward<LegalNameT>(value);
85 }
86 template <typename LegalNameT = Aws::String>
87 CreatePartnerRequest& WithLegalName(LegalNameT&& value) {
88 SetLegalName(std::forward<LegalNameT>(value));
89 return *this;
90 }
92
94
98 inline PrimarySolutionType GetPrimarySolutionType() const { return m_primarySolutionType; }
99 inline bool PrimarySolutionTypeHasBeenSet() const { return m_primarySolutionTypeHasBeenSet; }
101 m_primarySolutionTypeHasBeenSet = true;
102 m_primarySolutionType = value;
103 }
106 return *this;
107 }
109
111
114 inline const AllianceLeadContact& GetAllianceLeadContact() const { return m_allianceLeadContact; }
115 inline bool AllianceLeadContactHasBeenSet() const { return m_allianceLeadContactHasBeenSet; }
116 template <typename AllianceLeadContactT = AllianceLeadContact>
117 void SetAllianceLeadContact(AllianceLeadContactT&& value) {
118 m_allianceLeadContactHasBeenSet = true;
119 m_allianceLeadContact = std::forward<AllianceLeadContactT>(value);
120 }
121 template <typename AllianceLeadContactT = AllianceLeadContact>
122 CreatePartnerRequest& WithAllianceLeadContact(AllianceLeadContactT&& value) {
123 SetAllianceLeadContact(std::forward<AllianceLeadContactT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetEmailVerificationCode() const { return m_emailVerificationCode; }
134 inline bool EmailVerificationCodeHasBeenSet() const { return m_emailVerificationCodeHasBeenSet; }
135 template <typename EmailVerificationCodeT = Aws::String>
136 void SetEmailVerificationCode(EmailVerificationCodeT&& value) {
137 m_emailVerificationCodeHasBeenSet = true;
138 m_emailVerificationCode = std::forward<EmailVerificationCodeT>(value);
139 }
140 template <typename EmailVerificationCodeT = Aws::String>
141 CreatePartnerRequest& WithEmailVerificationCode(EmailVerificationCodeT&& value) {
142 SetEmailVerificationCode(std::forward<EmailVerificationCodeT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Vector<Tag>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Vector<Tag>>
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsT = Tag>
166 m_tagsHasBeenSet = true;
167 m_tags.emplace_back(std::forward<TagsT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_catalog;
173
175
176 Aws::String m_legalName;
177
179
180 AllianceLeadContact m_allianceLeadContact;
181
182 Aws::String m_emailVerificationCode;
183
184 Aws::Vector<Tag> m_tags;
185 bool m_catalogHasBeenSet = false;
186 bool m_clientTokenHasBeenSet = true;
187 bool m_legalNameHasBeenSet = false;
188 bool m_primarySolutionTypeHasBeenSet = false;
189 bool m_allianceLeadContactHasBeenSet = false;
190 bool m_emailVerificationCodeHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace PartnerCentralAccount
196} // namespace Aws
CreatePartnerRequest & WithPrimarySolutionType(PrimarySolutionType value)
AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override
CreatePartnerRequest & WithAllianceLeadContact(AllianceLeadContactT &&value)
CreatePartnerRequest & WithEmailVerificationCode(EmailVerificationCodeT &&value)
CreatePartnerRequest & WithClientToken(ClientTokenT &&value)
AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreatePartnerRequest & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALACCOUNT_API CreatePartnerRequest()=default
CreatePartnerRequest & WithLegalName(LegalNameT &&value)
void SetEmailVerificationCode(EmailVerificationCodeT &&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