AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetPartnerResult.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/PartnerDomain.h>
13#include <aws/partnercentral-account/model/PartnerProfile.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace PartnerCentralAccount {
27namespace Model {
29 public:
30 AWS_PARTNERCENTRALACCOUNT_API GetPartnerResult() = default;
33
35
38 inline const Aws::String& GetCatalog() const { return m_catalog; }
39 template <typename CatalogT = Aws::String>
40 void SetCatalog(CatalogT&& value) {
41 m_catalogHasBeenSet = true;
42 m_catalog = std::forward<CatalogT>(value);
43 }
44 template <typename CatalogT = Aws::String>
45 GetPartnerResult& WithCatalog(CatalogT&& value) {
46 SetCatalog(std::forward<CatalogT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
62 GetPartnerResult& WithArn(ArnT&& value) {
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetId() const { return m_id; }
73 template <typename IdT = Aws::String>
74 void SetId(IdT&& value) {
75 m_idHasBeenSet = true;
76 m_id = std::forward<IdT>(value);
77 }
78 template <typename IdT = Aws::String>
79 GetPartnerResult& WithId(IdT&& value) {
80 SetId(std::forward<IdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetLegalName() const { return m_legalName; }
90 template <typename LegalNameT = Aws::String>
91 void SetLegalName(LegalNameT&& value) {
92 m_legalNameHasBeenSet = true;
93 m_legalName = std::forward<LegalNameT>(value);
94 }
95 template <typename LegalNameT = Aws::String>
96 GetPartnerResult& WithLegalName(LegalNameT&& value) {
97 SetLegalName(std::forward<LegalNameT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
107 template <typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) {
109 m_createdAtHasBeenSet = true;
110 m_createdAt = std::forward<CreatedAtT>(value);
111 }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 GetPartnerResult& WithCreatedAt(CreatedAtT&& value) {
114 SetCreatedAt(std::forward<CreatedAtT>(value));
115 return *this;
116 }
118
120
124 inline const PartnerProfile& GetProfile() const { return m_profile; }
125 template <typename ProfileT = PartnerProfile>
126 void SetProfile(ProfileT&& value) {
127 m_profileHasBeenSet = true;
128 m_profile = std::forward<ProfileT>(value);
129 }
130 template <typename ProfileT = PartnerProfile>
131 GetPartnerResult& WithProfile(ProfileT&& value) {
132 SetProfile(std::forward<ProfileT>(value));
133 return *this;
134 }
136
138
143 return m_awsTrainingCertificationEmailDomains;
144 }
145 template <typename AwsTrainingCertificationEmailDomainsT = Aws::Vector<PartnerDomain>>
146 void SetAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
147 m_awsTrainingCertificationEmailDomainsHasBeenSet = true;
148 m_awsTrainingCertificationEmailDomains = std::forward<AwsTrainingCertificationEmailDomainsT>(value);
149 }
150 template <typename AwsTrainingCertificationEmailDomainsT = Aws::Vector<PartnerDomain>>
151 GetPartnerResult& WithAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
152 SetAwsTrainingCertificationEmailDomains(std::forward<AwsTrainingCertificationEmailDomainsT>(value));
153 return *this;
154 }
155 template <typename AwsTrainingCertificationEmailDomainsT = PartnerDomain>
156 GetPartnerResult& AddAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
157 m_awsTrainingCertificationEmailDomainsHasBeenSet = true;
158 m_awsTrainingCertificationEmailDomains.emplace_back(std::forward<AwsTrainingCertificationEmailDomainsT>(value));
159 return *this;
160 }
162
164
165 inline const Aws::String& GetRequestId() const { return m_requestId; }
166 template <typename RequestIdT = Aws::String>
167 void SetRequestId(RequestIdT&& value) {
168 m_requestIdHasBeenSet = true;
169 m_requestId = std::forward<RequestIdT>(value);
170 }
171 template <typename RequestIdT = Aws::String>
172 GetPartnerResult& WithRequestId(RequestIdT&& value) {
173 SetRequestId(std::forward<RequestIdT>(value));
174 return *this;
175 }
177 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
178
179 private:
180 Aws::String m_catalog;
181
182 Aws::String m_arn;
183
184 Aws::String m_id;
185
186 Aws::String m_legalName;
187
188 Aws::Utils::DateTime m_createdAt{};
189
190 PartnerProfile m_profile;
191
192 Aws::Vector<PartnerDomain> m_awsTrainingCertificationEmailDomains;
193
194 Aws::String m_requestId;
195 Aws::Http::HttpResponseCode m_HttpResponseCode;
196 bool m_catalogHasBeenSet = false;
197 bool m_arnHasBeenSet = false;
198 bool m_idHasBeenSet = false;
199 bool m_legalNameHasBeenSet = false;
200 bool m_createdAtHasBeenSet = false;
201 bool m_profileHasBeenSet = false;
202 bool m_awsTrainingCertificationEmailDomainsHasBeenSet = false;
203 bool m_requestIdHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace PartnerCentralAccount
208} // namespace Aws
void SetAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT &&value)
GetPartnerResult & WithCreatedAt(CreatedAtT &&value)
GetPartnerResult & WithProfile(ProfileT &&value)
GetPartnerResult & WithLegalName(LegalNameT &&value)
AWS_PARTNERCENTRALACCOUNT_API GetPartnerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPartnerResult & WithAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetPartnerResult & AddAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT &&value)
AWS_PARTNERCENTRALACCOUNT_API GetPartnerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PARTNERCENTRALACCOUNT_API GetPartnerResult()=default
const Aws::Vector< PartnerDomain > & GetAwsTrainingCertificationEmailDomains() const
GetPartnerResult & WithRequestId(RequestIdT &&value)
GetPartnerResult & WithCatalog(CatalogT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue