AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
UpdateOpportunityRequest.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/NationalSecurity.h>
12#include <aws/partnercentral-selling/model/Customer.h>
13#include <aws/partnercentral-selling/model/Project.h>
14#include <aws/partnercentral-selling/model/OpportunityType.h>
15#include <aws/partnercentral-selling/model/Marketing.h>
16#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/partnercentral-selling/model/LifeCycle.h>
19#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
20#include <utility>
21
22namespace Aws
23{
24namespace PartnerCentralSelling
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_PARTNERCENTRALSELLING_API UpdateOpportunityRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateOpportunity"; }
41
42 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
43
44 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
46
48
58 inline const Aws::String& GetCatalog() const { return m_catalog; }
59 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
60 template<typename CatalogT = Aws::String>
61 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
62 template<typename CatalogT = Aws::String>
63 UpdateOpportunityRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
65
67
90 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
91 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
92 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
93 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value); }
94 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
95 UpdateOpportunityRequest& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value)); return *this;}
96 inline UpdateOpportunityRequest& AddPrimaryNeedsFromAws(PrimaryNeedFromAws value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws.push_back(value); return *this; }
98
100
106 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
107 inline bool NationalSecurityHasBeenSet() const { return m_nationalSecurityHasBeenSet; }
108 inline void SetNationalSecurity(NationalSecurity value) { m_nationalSecurityHasBeenSet = true; m_nationalSecurity = value; }
111
113
118 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
119 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
120 template<typename PartnerOpportunityIdentifierT = Aws::String>
121 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { m_partnerOpportunityIdentifierHasBeenSet = true; m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value); }
122 template<typename PartnerOpportunityIdentifierT = Aws::String>
123 UpdateOpportunityRequest& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value)); return *this;}
125
127
131 inline const Customer& GetCustomer() const { return m_customer; }
132 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
133 template<typename CustomerT = Customer>
134 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
135 template<typename CustomerT = Customer>
136 UpdateOpportunityRequest& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
138
140
144 inline const Project& GetProject() const { return m_project; }
145 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
146 template<typename ProjectT = Project>
147 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
148 template<typename ProjectT = Project>
149 UpdateOpportunityRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
151
153
164 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
165 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
166 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
169
171
175 inline const Marketing& GetMarketing() const { return m_marketing; }
176 inline bool MarketingHasBeenSet() const { return m_marketingHasBeenSet; }
177 template<typename MarketingT = Marketing>
178 void SetMarketing(MarketingT&& value) { m_marketingHasBeenSet = true; m_marketing = std::forward<MarketingT>(value); }
179 template<typename MarketingT = Marketing>
180 UpdateOpportunityRequest& WithMarketing(MarketingT&& value) { SetMarketing(std::forward<MarketingT>(value)); return *this;}
182
184
188 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
189 inline bool SoftwareRevenueHasBeenSet() const { return m_softwareRevenueHasBeenSet; }
190 template<typename SoftwareRevenueT = SoftwareRevenue>
191 void SetSoftwareRevenue(SoftwareRevenueT&& value) { m_softwareRevenueHasBeenSet = true; m_softwareRevenue = std::forward<SoftwareRevenueT>(value); }
192 template<typename SoftwareRevenueT = SoftwareRevenue>
193 UpdateOpportunityRequest& WithSoftwareRevenue(SoftwareRevenueT&& value) { SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value)); return *this;}
195
197
200 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
201 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
202 template<typename LastModifiedDateT = Aws::Utils::DateTime>
203 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
204 template<typename LastModifiedDateT = Aws::Utils::DateTime>
205 UpdateOpportunityRequest& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
207
209
212 inline const Aws::String& GetIdentifier() const { return m_identifier; }
213 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
214 template<typename IdentifierT = Aws::String>
215 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
216 template<typename IdentifierT = Aws::String>
217 UpdateOpportunityRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
219
221
225 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
226 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
227 template<typename LifeCycleT = LifeCycle>
228 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
229 template<typename LifeCycleT = LifeCycle>
230 UpdateOpportunityRequest& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
232 private:
233
234 Aws::String m_catalog;
235 bool m_catalogHasBeenSet = false;
236
237 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
238 bool m_primaryNeedsFromAwsHasBeenSet = false;
239
241 bool m_nationalSecurityHasBeenSet = false;
242
243 Aws::String m_partnerOpportunityIdentifier;
244 bool m_partnerOpportunityIdentifierHasBeenSet = false;
245
246 Customer m_customer;
247 bool m_customerHasBeenSet = false;
248
249 Project m_project;
250 bool m_projectHasBeenSet = false;
251
252 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
253 bool m_opportunityTypeHasBeenSet = false;
254
255 Marketing m_marketing;
256 bool m_marketingHasBeenSet = false;
257
258 SoftwareRevenue m_softwareRevenue;
259 bool m_softwareRevenueHasBeenSet = false;
260
261 Aws::Utils::DateTime m_lastModifiedDate{};
262 bool m_lastModifiedDateHasBeenSet = false;
263
264 Aws::String m_identifier;
265 bool m_identifierHasBeenSet = false;
266
267 LifeCycle m_lifeCycle;
268 bool m_lifeCycleHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace PartnerCentralSelling
273} // namespace Aws
UpdateOpportunityRequest & WithOpportunityType(OpportunityType value)
UpdateOpportunityRequest & WithCustomer(CustomerT &&value)
AWS_PARTNERCENTRALSELLING_API UpdateOpportunityRequest()=default
UpdateOpportunityRequest & WithMarketing(MarketingT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
const Aws::Vector< PrimaryNeedFromAws > & GetPrimaryNeedsFromAws() const
UpdateOpportunityRequest & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateOpportunityRequest & WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT &&value)
UpdateOpportunityRequest & WithSoftwareRevenue(SoftwareRevenueT &&value)
UpdateOpportunityRequest & WithNationalSecurity(NationalSecurity value)
UpdateOpportunityRequest & WithLifeCycle(LifeCycleT &&value)
UpdateOpportunityRequest & WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
UpdateOpportunityRequest & AddPrimaryNeedsFromAws(PrimaryNeedFromAws value)
UpdateOpportunityRequest & WithIdentifier(IdentifierT &&value)
void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
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