AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
AwsProductInsights.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
11#include <aws/partnercentral-selling/model/AwsProductDetails.h>
12#include <aws/partnercentral-selling/model/AwsProductInsightsCurrencyCodeEnum.h>
13#include <aws/partnercentral-selling/model/PaymentFrequency.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PartnerCentralSelling {
25namespace Model {
26
35 public:
36 AWS_PARTNERCENTRALSELLING_API AwsProductInsights() = default;
37 AWS_PARTNERCENTRALSELLING_API AwsProductInsights(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API AwsProductInsights& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline AwsProductInsightsCurrencyCodeEnum GetCurrencyCode() const { return m_currencyCode; }
46 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
48 m_currencyCodeHasBeenSet = true;
49 m_currencyCode = value;
50 }
52 SetCurrencyCode(value);
53 return *this;
54 }
56
58
61 inline PaymentFrequency GetFrequency() const { return m_frequency; }
62 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
63 inline void SetFrequency(PaymentFrequency value) {
64 m_frequencyHasBeenSet = true;
65 m_frequency = value;
66 }
68 SetFrequency(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
78 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
79 template <typename TotalAmountT = Aws::String>
80 void SetTotalAmount(TotalAmountT&& value) {
81 m_totalAmountHasBeenSet = true;
82 m_totalAmount = std::forward<TotalAmountT>(value);
83 }
84 template <typename TotalAmountT = Aws::String>
85 AwsProductInsights& WithTotalAmount(TotalAmountT&& value) {
86 SetTotalAmount(std::forward<TotalAmountT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTotalOptimizedAmount() const { return m_totalOptimizedAmount; }
96 inline bool TotalOptimizedAmountHasBeenSet() const { return m_totalOptimizedAmountHasBeenSet; }
97 template <typename TotalOptimizedAmountT = Aws::String>
98 void SetTotalOptimizedAmount(TotalOptimizedAmountT&& value) {
99 m_totalOptimizedAmountHasBeenSet = true;
100 m_totalOptimizedAmount = std::forward<TotalOptimizedAmountT>(value);
101 }
102 template <typename TotalOptimizedAmountT = Aws::String>
103 AwsProductInsights& WithTotalOptimizedAmount(TotalOptimizedAmountT&& value) {
104 SetTotalOptimizedAmount(std::forward<TotalOptimizedAmountT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTotalPotentialSavingsAmount() const { return m_totalPotentialSavingsAmount; }
114 inline bool TotalPotentialSavingsAmountHasBeenSet() const { return m_totalPotentialSavingsAmountHasBeenSet; }
115 template <typename TotalPotentialSavingsAmountT = Aws::String>
116 void SetTotalPotentialSavingsAmount(TotalPotentialSavingsAmountT&& value) {
117 m_totalPotentialSavingsAmountHasBeenSet = true;
118 m_totalPotentialSavingsAmount = std::forward<TotalPotentialSavingsAmountT>(value);
119 }
120 template <typename TotalPotentialSavingsAmountT = Aws::String>
121 AwsProductInsights& WithTotalPotentialSavingsAmount(TotalPotentialSavingsAmountT&& value) {
122 SetTotalPotentialSavingsAmount(std::forward<TotalPotentialSavingsAmountT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetTotalAmountByCategory() const { return m_totalAmountByCategory; }
132 inline bool TotalAmountByCategoryHasBeenSet() const { return m_totalAmountByCategoryHasBeenSet; }
133 template <typename TotalAmountByCategoryT = Aws::Map<Aws::String, Aws::String>>
134 void SetTotalAmountByCategory(TotalAmountByCategoryT&& value) {
135 m_totalAmountByCategoryHasBeenSet = true;
136 m_totalAmountByCategory = std::forward<TotalAmountByCategoryT>(value);
137 }
138 template <typename TotalAmountByCategoryT = Aws::Map<Aws::String, Aws::String>>
139 AwsProductInsights& WithTotalAmountByCategory(TotalAmountByCategoryT&& value) {
140 SetTotalAmountByCategory(std::forward<TotalAmountByCategoryT>(value));
141 return *this;
142 }
143 template <typename TotalAmountByCategoryKeyT = Aws::String, typename TotalAmountByCategoryValueT = Aws::String>
144 AwsProductInsights& AddTotalAmountByCategory(TotalAmountByCategoryKeyT&& key, TotalAmountByCategoryValueT&& value) {
145 m_totalAmountByCategoryHasBeenSet = true;
146 m_totalAmountByCategory.emplace(std::forward<TotalAmountByCategoryKeyT>(key), std::forward<TotalAmountByCategoryValueT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<AwsProductDetails>& GetAwsProducts() const { return m_awsProducts; }
156 inline bool AwsProductsHasBeenSet() const { return m_awsProductsHasBeenSet; }
157 template <typename AwsProductsT = Aws::Vector<AwsProductDetails>>
158 void SetAwsProducts(AwsProductsT&& value) {
159 m_awsProductsHasBeenSet = true;
160 m_awsProducts = std::forward<AwsProductsT>(value);
161 }
162 template <typename AwsProductsT = Aws::Vector<AwsProductDetails>>
163 AwsProductInsights& WithAwsProducts(AwsProductsT&& value) {
164 SetAwsProducts(std::forward<AwsProductsT>(value));
165 return *this;
166 }
167 template <typename AwsProductsT = AwsProductDetails>
168 AwsProductInsights& AddAwsProducts(AwsProductsT&& value) {
169 m_awsProductsHasBeenSet = true;
170 m_awsProducts.emplace_back(std::forward<AwsProductsT>(value));
171 return *this;
172 }
174 private:
176
178
179 Aws::String m_totalAmount;
180
181 Aws::String m_totalOptimizedAmount;
182
183 Aws::String m_totalPotentialSavingsAmount;
184
185 Aws::Map<Aws::String, Aws::String> m_totalAmountByCategory;
186
187 Aws::Vector<AwsProductDetails> m_awsProducts;
188 bool m_currencyCodeHasBeenSet = false;
189 bool m_frequencyHasBeenSet = false;
190 bool m_totalAmountHasBeenSet = false;
191 bool m_totalOptimizedAmountHasBeenSet = false;
192 bool m_totalPotentialSavingsAmountHasBeenSet = false;
193 bool m_totalAmountByCategoryHasBeenSet = false;
194 bool m_awsProductsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace PartnerCentralSelling
199} // namespace Aws
void SetTotalAmountByCategory(TotalAmountByCategoryT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AwsProductInsightsCurrencyCodeEnum GetCurrencyCode() const
AwsProductInsights & WithTotalAmountByCategory(TotalAmountByCategoryT &&value)
AwsProductInsights & WithTotalOptimizedAmount(TotalOptimizedAmountT &&value)
AwsProductInsights & WithTotalPotentialSavingsAmount(TotalPotentialSavingsAmountT &&value)
const Aws::Vector< AwsProductDetails > & GetAwsProducts() const
AwsProductInsights & WithFrequency(PaymentFrequency value)
AWS_PARTNERCENTRALSELLING_API AwsProductInsights()=default
AWS_PARTNERCENTRALSELLING_API AwsProductInsights & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsProductInsights & AddAwsProducts(AwsProductsT &&value)
AwsProductInsights & AddTotalAmountByCategory(TotalAmountByCategoryKeyT &&key, TotalAmountByCategoryValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTotalAmountByCategory() const
AwsProductInsights & WithTotalAmount(TotalAmountT &&value)
void SetTotalOptimizedAmount(TotalOptimizedAmountT &&value)
AWS_PARTNERCENTRALSELLING_API AwsProductInsights(Aws::Utils::Json::JsonView jsonValue)
AwsProductInsights & WithCurrencyCode(AwsProductInsightsCurrencyCodeEnum value)
void SetCurrencyCode(AwsProductInsightsCurrencyCodeEnum value)
void SetTotalPotentialSavingsAmount(TotalPotentialSavingsAmountT &&value)
AwsProductInsights & WithAwsProducts(AwsProductsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue