AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreatePartnerResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
12#include <aws/partnercentral-account/model/AllianceLeadContact.h>
13#include <aws/partnercentral-account/model/PartnerDomain.h>
14#include <aws/partnercentral-account/model/PartnerProfile.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace PartnerCentralAccount {
28namespace Model {
30 public:
31 AWS_PARTNERCENTRALACCOUNT_API CreatePartnerResult() = default;
34
36
39 inline const Aws::String& GetCatalog() const { return m_catalog; }
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>
46 CreatePartnerResult& WithCatalog(CatalogT&& value) {
47 SetCatalog(std::forward<CatalogT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetArn() const { return m_arn; }
57 template <typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) {
59 m_arnHasBeenSet = true;
60 m_arn = std::forward<ArnT>(value);
61 }
62 template <typename ArnT = Aws::String>
64 SetArn(std::forward<ArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetId() const { return m_id; }
74 template <typename IdT = Aws::String>
75 void SetId(IdT&& value) {
76 m_idHasBeenSet = true;
77 m_id = std::forward<IdT>(value);
78 }
79 template <typename IdT = Aws::String>
81 SetId(std::forward<IdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetLegalName() const { return m_legalName; }
91 template <typename LegalNameT = Aws::String>
92 void SetLegalName(LegalNameT&& value) {
93 m_legalNameHasBeenSet = true;
94 m_legalName = std::forward<LegalNameT>(value);
95 }
96 template <typename LegalNameT = Aws::String>
97 CreatePartnerResult& WithLegalName(LegalNameT&& value) {
98 SetLegalName(std::forward<LegalNameT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
108 template <typename CreatedAtT = Aws::Utils::DateTime>
109 void SetCreatedAt(CreatedAtT&& value) {
110 m_createdAtHasBeenSet = true;
111 m_createdAt = std::forward<CreatedAtT>(value);
112 }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 CreatePartnerResult& WithCreatedAt(CreatedAtT&& value) {
115 SetCreatedAt(std::forward<CreatedAtT>(value));
116 return *this;
117 }
119
121
125 inline const PartnerProfile& GetProfile() const { return m_profile; }
126 template <typename ProfileT = PartnerProfile>
127 void SetProfile(ProfileT&& value) {
128 m_profileHasBeenSet = true;
129 m_profile = std::forward<ProfileT>(value);
130 }
131 template <typename ProfileT = PartnerProfile>
132 CreatePartnerResult& WithProfile(ProfileT&& value) {
133 SetProfile(std::forward<ProfileT>(value));
134 return *this;
135 }
137
139
144 return m_awsTrainingCertificationEmailDomains;
145 }
146 template <typename AwsTrainingCertificationEmailDomainsT = Aws::Vector<PartnerDomain>>
147 void SetAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
148 m_awsTrainingCertificationEmailDomainsHasBeenSet = true;
149 m_awsTrainingCertificationEmailDomains = std::forward<AwsTrainingCertificationEmailDomainsT>(value);
150 }
151 template <typename AwsTrainingCertificationEmailDomainsT = Aws::Vector<PartnerDomain>>
152 CreatePartnerResult& WithAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
153 SetAwsTrainingCertificationEmailDomains(std::forward<AwsTrainingCertificationEmailDomainsT>(value));
154 return *this;
155 }
156 template <typename AwsTrainingCertificationEmailDomainsT = PartnerDomain>
157 CreatePartnerResult& AddAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
158 m_awsTrainingCertificationEmailDomainsHasBeenSet = true;
159 m_awsTrainingCertificationEmailDomains.emplace_back(std::forward<AwsTrainingCertificationEmailDomainsT>(value));
160 return *this;
161 }
163
165
168 inline const AllianceLeadContact& GetAllianceLeadContact() const { return m_allianceLeadContact; }
169 template <typename AllianceLeadContactT = AllianceLeadContact>
170 void SetAllianceLeadContact(AllianceLeadContactT&& value) {
171 m_allianceLeadContactHasBeenSet = true;
172 m_allianceLeadContact = std::forward<AllianceLeadContactT>(value);
173 }
174 template <typename AllianceLeadContactT = AllianceLeadContact>
175 CreatePartnerResult& WithAllianceLeadContact(AllianceLeadContactT&& value) {
176 SetAllianceLeadContact(std::forward<AllianceLeadContactT>(value));
177 return *this;
178 }
180
182
183 inline const Aws::String& GetRequestId() const { return m_requestId; }
184 template <typename RequestIdT = Aws::String>
185 void SetRequestId(RequestIdT&& value) {
186 m_requestIdHasBeenSet = true;
187 m_requestId = std::forward<RequestIdT>(value);
188 }
189 template <typename RequestIdT = Aws::String>
190 CreatePartnerResult& WithRequestId(RequestIdT&& value) {
191 SetRequestId(std::forward<RequestIdT>(value));
192 return *this;
193 }
195 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
196
197 private:
198 Aws::String m_catalog;
199
200 Aws::String m_arn;
201
202 Aws::String m_id;
203
204 Aws::String m_legalName;
205
206 Aws::Utils::DateTime m_createdAt{};
207
208 PartnerProfile m_profile;
209
210 Aws::Vector<PartnerDomain> m_awsTrainingCertificationEmailDomains;
211
212 AllianceLeadContact m_allianceLeadContact;
213
214 Aws::String m_requestId;
215 Aws::Http::HttpResponseCode m_HttpResponseCode;
216 bool m_catalogHasBeenSet = false;
217 bool m_arnHasBeenSet = false;
218 bool m_idHasBeenSet = false;
219 bool m_legalNameHasBeenSet = false;
220 bool m_createdAtHasBeenSet = false;
221 bool m_profileHasBeenSet = false;
222 bool m_awsTrainingCertificationEmailDomainsHasBeenSet = false;
223 bool m_allianceLeadContactHasBeenSet = false;
224 bool m_requestIdHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace PartnerCentralAccount
229} // namespace Aws
CreatePartnerResult & AddAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT &&value)
void SetAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT &&value)
const Aws::Vector< PartnerDomain > & GetAwsTrainingCertificationEmailDomains() const
CreatePartnerResult & WithAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT &&value)
AWS_PARTNERCENTRALACCOUNT_API CreatePartnerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePartnerResult & WithProfile(ProfileT &&value)
CreatePartnerResult & WithCreatedAt(CreatedAtT &&value)
CreatePartnerResult & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALACCOUNT_API CreatePartnerResult()=default
CreatePartnerResult & WithRequestId(RequestIdT &&value)
const AllianceLeadContact & GetAllianceLeadContact() const
CreatePartnerResult & WithLegalName(LegalNameT &&value)
AWS_PARTNERCENTRALACCOUNT_API CreatePartnerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePartnerResult & WithAllianceLeadContact(AllianceLeadContactT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue