AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
ProjectSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/DeliveryModel.h>
10#include <aws/partnercentral-selling/model/ExpectedContractDuration.h>
11#include <aws/partnercentral-selling/model/ExpectedCustomerSpend.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling {
23namespace Model {
24
32 public:
33 AWS_PARTNERCENTRALSELLING_API ProjectSummary() = default;
34 AWS_PARTNERCENTRALSELLING_API ProjectSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API ProjectSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
56 inline const Aws::Vector<DeliveryModel>& GetDeliveryModels() const { return m_deliveryModels; }
57 inline bool DeliveryModelsHasBeenSet() const { return m_deliveryModelsHasBeenSet; }
58 template <typename DeliveryModelsT = Aws::Vector<DeliveryModel>>
59 void SetDeliveryModels(DeliveryModelsT&& value) {
60 m_deliveryModelsHasBeenSet = true;
61 m_deliveryModels = std::forward<DeliveryModelsT>(value);
62 }
63 template <typename DeliveryModelsT = Aws::Vector<DeliveryModel>>
64 ProjectSummary& WithDeliveryModels(DeliveryModelsT&& value) {
65 SetDeliveryModels(std::forward<DeliveryModelsT>(value));
66 return *this;
67 }
69 m_deliveryModelsHasBeenSet = true;
70 m_deliveryModels.push_back(value);
71 return *this;
72 }
74
76
80 inline const Aws::Vector<ExpectedCustomerSpend>& GetExpectedCustomerSpend() const { return m_expectedCustomerSpend; }
81 inline bool ExpectedCustomerSpendHasBeenSet() const { return m_expectedCustomerSpendHasBeenSet; }
82 template <typename ExpectedCustomerSpendT = Aws::Vector<ExpectedCustomerSpend>>
83 void SetExpectedCustomerSpend(ExpectedCustomerSpendT&& value) {
84 m_expectedCustomerSpendHasBeenSet = true;
85 m_expectedCustomerSpend = std::forward<ExpectedCustomerSpendT>(value);
86 }
87 template <typename ExpectedCustomerSpendT = Aws::Vector<ExpectedCustomerSpend>>
88 ProjectSummary& WithExpectedCustomerSpend(ExpectedCustomerSpendT&& value) {
89 SetExpectedCustomerSpend(std::forward<ExpectedCustomerSpendT>(value));
90 return *this;
91 }
92 template <typename ExpectedCustomerSpendT = ExpectedCustomerSpend>
93 ProjectSummary& AddExpectedCustomerSpend(ExpectedCustomerSpendT&& value) {
94 m_expectedCustomerSpendHasBeenSet = true;
95 m_expectedCustomerSpend.emplace_back(std::forward<ExpectedCustomerSpendT>(value));
96 return *this;
97 }
99
101
106 inline const ExpectedContractDuration& GetExpectedContractDuration() const { return m_expectedContractDuration; }
107 inline bool ExpectedContractDurationHasBeenSet() const { return m_expectedContractDurationHasBeenSet; }
108 template <typename ExpectedContractDurationT = ExpectedContractDuration>
109 void SetExpectedContractDuration(ExpectedContractDurationT&& value) {
110 m_expectedContractDurationHasBeenSet = true;
111 m_expectedContractDuration = std::forward<ExpectedContractDurationT>(value);
112 }
113 template <typename ExpectedContractDurationT = ExpectedContractDuration>
114 ProjectSummary& WithExpectedContractDuration(ExpectedContractDurationT&& value) {
115 SetExpectedContractDuration(std::forward<ExpectedContractDurationT>(value));
116 return *this;
117 }
119 private:
120 Aws::Vector<DeliveryModel> m_deliveryModels;
121
122 Aws::Vector<ExpectedCustomerSpend> m_expectedCustomerSpend;
123
124 ExpectedContractDuration m_expectedContractDuration;
125 bool m_deliveryModelsHasBeenSet = false;
126 bool m_expectedCustomerSpendHasBeenSet = false;
127 bool m_expectedContractDurationHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace PartnerCentralSelling
132} // namespace Aws
ProjectSummary & WithExpectedContractDuration(ExpectedContractDurationT &&value)
ProjectSummary & AddExpectedCustomerSpend(ExpectedCustomerSpendT &&value)
AWS_PARTNERCENTRALSELLING_API ProjectSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeliveryModels(DeliveryModelsT &&value)
void SetExpectedContractDuration(ExpectedContractDurationT &&value)
void SetExpectedCustomerSpend(ExpectedCustomerSpendT &&value)
const Aws::Vector< DeliveryModel > & GetDeliveryModels() const
ProjectSummary & WithExpectedCustomerSpend(ExpectedCustomerSpendT &&value)
const ExpectedContractDuration & GetExpectedContractDuration() const
AWS_PARTNERCENTRALSELLING_API ProjectSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API ProjectSummary()=default
const Aws::Vector< ExpectedCustomerSpend > & GetExpectedCustomerSpend() const
ProjectSummary & WithDeliveryModels(DeliveryModelsT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectSummary & AddDeliveryModels(DeliveryModel value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue