AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
GetPartnerResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
11#include <aws/partnercentral-account/model/PartnerDomain.h>
12#include <aws/partnercentral-account/model/PartnerProfile.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace PartnerCentralAccount {
26namespace Model {
28 public:
29 AWS_PARTNERCENTRALACCOUNT_API GetPartnerResult() = default;
32
34
37 inline const Aws::String& GetCatalog() const { return m_catalog; }
38 template <typename CatalogT = Aws::String>
39 void SetCatalog(CatalogT&& value) {
40 m_catalogHasBeenSet = true;
41 m_catalog = std::forward<CatalogT>(value);
42 }
43 template <typename CatalogT = Aws::String>
44 GetPartnerResult& WithCatalog(CatalogT&& value) {
45 SetCatalog(std::forward<CatalogT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
61 GetPartnerResult& WithArn(ArnT&& value) {
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetId() const { return m_id; }
72 template <typename IdT = Aws::String>
73 void SetId(IdT&& value) {
74 m_idHasBeenSet = true;
75 m_id = std::forward<IdT>(value);
76 }
77 template <typename IdT = Aws::String>
78 GetPartnerResult& WithId(IdT&& value) {
79 SetId(std::forward<IdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetLegalName() const { return m_legalName; }
89 template <typename LegalNameT = Aws::String>
90 void SetLegalName(LegalNameT&& value) {
91 m_legalNameHasBeenSet = true;
92 m_legalName = std::forward<LegalNameT>(value);
93 }
94 template <typename LegalNameT = Aws::String>
95 GetPartnerResult& WithLegalName(LegalNameT&& value) {
96 SetLegalName(std::forward<LegalNameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
106 template <typename CreatedAtT = Aws::Utils::DateTime>
107 void SetCreatedAt(CreatedAtT&& value) {
108 m_createdAtHasBeenSet = true;
109 m_createdAt = std::forward<CreatedAtT>(value);
110 }
111 template <typename CreatedAtT = Aws::Utils::DateTime>
112 GetPartnerResult& WithCreatedAt(CreatedAtT&& value) {
113 SetCreatedAt(std::forward<CreatedAtT>(value));
114 return *this;
115 }
117
119
123 inline const PartnerProfile& GetProfile() const { return m_profile; }
124 template <typename ProfileT = PartnerProfile>
125 void SetProfile(ProfileT&& value) {
126 m_profileHasBeenSet = true;
127 m_profile = std::forward<ProfileT>(value);
128 }
129 template <typename ProfileT = PartnerProfile>
130 GetPartnerResult& WithProfile(ProfileT&& value) {
131 SetProfile(std::forward<ProfileT>(value));
132 return *this;
133 }
135
137
142 return m_awsTrainingCertificationEmailDomains;
143 }
144 template <typename AwsTrainingCertificationEmailDomainsT = Aws::Vector<PartnerDomain>>
145 void SetAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
146 m_awsTrainingCertificationEmailDomainsHasBeenSet = true;
147 m_awsTrainingCertificationEmailDomains = std::forward<AwsTrainingCertificationEmailDomainsT>(value);
148 }
149 template <typename AwsTrainingCertificationEmailDomainsT = Aws::Vector<PartnerDomain>>
150 GetPartnerResult& WithAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
151 SetAwsTrainingCertificationEmailDomains(std::forward<AwsTrainingCertificationEmailDomainsT>(value));
152 return *this;
153 }
154 template <typename AwsTrainingCertificationEmailDomainsT = PartnerDomain>
155 GetPartnerResult& AddAwsTrainingCertificationEmailDomains(AwsTrainingCertificationEmailDomainsT&& value) {
156 m_awsTrainingCertificationEmailDomainsHasBeenSet = true;
157 m_awsTrainingCertificationEmailDomains.emplace_back(std::forward<AwsTrainingCertificationEmailDomainsT>(value));
158 return *this;
159 }
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template <typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) {
167 m_requestIdHasBeenSet = true;
168 m_requestId = std::forward<RequestIdT>(value);
169 }
170 template <typename RequestIdT = Aws::String>
171 GetPartnerResult& WithRequestId(RequestIdT&& value) {
172 SetRequestId(std::forward<RequestIdT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_catalog;
178
179 Aws::String m_arn;
180
181 Aws::String m_id;
182
183 Aws::String m_legalName;
184
185 Aws::Utils::DateTime m_createdAt{};
186
187 PartnerProfile m_profile;
188
189 Aws::Vector<PartnerDomain> m_awsTrainingCertificationEmailDomains;
190
191 Aws::String m_requestId;
192 bool m_catalogHasBeenSet = false;
193 bool m_arnHasBeenSet = false;
194 bool m_idHasBeenSet = false;
195 bool m_legalNameHasBeenSet = false;
196 bool m_createdAtHasBeenSet = false;
197 bool m_profileHasBeenSet = false;
198 bool m_awsTrainingCertificationEmailDomainsHasBeenSet = false;
199 bool m_requestIdHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace PartnerCentralAccount
204} // 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)
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