AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
46 inline AwsProductInsightsCurrencyCodeEnum GetCurrencyCode() const { return m_currencyCode; }
47 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
49 m_currencyCodeHasBeenSet = true;
50 m_currencyCode = value;
51 }
53 SetCurrencyCode(value);
54 return *this;
55 }
57
59
63 inline PaymentFrequency GetFrequency() const { return m_frequency; }
64 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
65 inline void SetFrequency(PaymentFrequency value) {
66 m_frequencyHasBeenSet = true;
67 m_frequency = value;
68 }
70 SetFrequency(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
80 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
81 template <typename TotalAmountT = Aws::String>
82 void SetTotalAmount(TotalAmountT&& value) {
83 m_totalAmountHasBeenSet = true;
84 m_totalAmount = std::forward<TotalAmountT>(value);
85 }
86 template <typename TotalAmountT = Aws::String>
87 AwsProductInsights& WithTotalAmount(TotalAmountT&& value) {
88 SetTotalAmount(std::forward<TotalAmountT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetTotalOptimizedAmount() const { return m_totalOptimizedAmount; }
98 inline bool TotalOptimizedAmountHasBeenSet() const { return m_totalOptimizedAmountHasBeenSet; }
99 template <typename TotalOptimizedAmountT = Aws::String>
100 void SetTotalOptimizedAmount(TotalOptimizedAmountT&& value) {
101 m_totalOptimizedAmountHasBeenSet = true;
102 m_totalOptimizedAmount = std::forward<TotalOptimizedAmountT>(value);
103 }
104 template <typename TotalOptimizedAmountT = Aws::String>
105 AwsProductInsights& WithTotalOptimizedAmount(TotalOptimizedAmountT&& value) {
106 SetTotalOptimizedAmount(std::forward<TotalOptimizedAmountT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTotalPotentialSavingsAmount() const { return m_totalPotentialSavingsAmount; }
116 inline bool TotalPotentialSavingsAmountHasBeenSet() const { return m_totalPotentialSavingsAmountHasBeenSet; }
117 template <typename TotalPotentialSavingsAmountT = Aws::String>
118 void SetTotalPotentialSavingsAmount(TotalPotentialSavingsAmountT&& value) {
119 m_totalPotentialSavingsAmountHasBeenSet = true;
120 m_totalPotentialSavingsAmount = std::forward<TotalPotentialSavingsAmountT>(value);
121 }
122 template <typename TotalPotentialSavingsAmountT = Aws::String>
123 AwsProductInsights& WithTotalPotentialSavingsAmount(TotalPotentialSavingsAmountT&& value) {
124 SetTotalPotentialSavingsAmount(std::forward<TotalPotentialSavingsAmountT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Map<Aws::String, Aws::String>& GetTotalAmountByCategory() const { return m_totalAmountByCategory; }
134 inline bool TotalAmountByCategoryHasBeenSet() const { return m_totalAmountByCategoryHasBeenSet; }
135 template <typename TotalAmountByCategoryT = Aws::Map<Aws::String, Aws::String>>
136 void SetTotalAmountByCategory(TotalAmountByCategoryT&& value) {
137 m_totalAmountByCategoryHasBeenSet = true;
138 m_totalAmountByCategory = std::forward<TotalAmountByCategoryT>(value);
139 }
140 template <typename TotalAmountByCategoryT = Aws::Map<Aws::String, Aws::String>>
141 AwsProductInsights& WithTotalAmountByCategory(TotalAmountByCategoryT&& value) {
142 SetTotalAmountByCategory(std::forward<TotalAmountByCategoryT>(value));
143 return *this;
144 }
145 template <typename TotalAmountByCategoryKeyT = Aws::String, typename TotalAmountByCategoryValueT = Aws::String>
146 AwsProductInsights& AddTotalAmountByCategory(TotalAmountByCategoryKeyT&& key, TotalAmountByCategoryValueT&& value) {
147 m_totalAmountByCategoryHasBeenSet = true;
148 m_totalAmountByCategory.emplace(std::forward<TotalAmountByCategoryKeyT>(key), std::forward<TotalAmountByCategoryValueT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Vector<AwsProductDetails>& GetAwsProducts() const { return m_awsProducts; }
158 inline bool AwsProductsHasBeenSet() const { return m_awsProductsHasBeenSet; }
159 template <typename AwsProductsT = Aws::Vector<AwsProductDetails>>
160 void SetAwsProducts(AwsProductsT&& value) {
161 m_awsProductsHasBeenSet = true;
162 m_awsProducts = std::forward<AwsProductsT>(value);
163 }
164 template <typename AwsProductsT = Aws::Vector<AwsProductDetails>>
165 AwsProductInsights& WithAwsProducts(AwsProductsT&& value) {
166 SetAwsProducts(std::forward<AwsProductsT>(value));
167 return *this;
168 }
169 template <typename AwsProductsT = AwsProductDetails>
170 AwsProductInsights& AddAwsProducts(AwsProductsT&& value) {
171 m_awsProductsHasBeenSet = true;
172 m_awsProducts.emplace_back(std::forward<AwsProductsT>(value));
173 return *this;
174 }
176 private:
178
180
181 Aws::String m_totalAmount;
182
183 Aws::String m_totalOptimizedAmount;
184
185 Aws::String m_totalPotentialSavingsAmount;
186
187 Aws::Map<Aws::String, Aws::String> m_totalAmountByCategory;
188
189 Aws::Vector<AwsProductDetails> m_awsProducts;
190 bool m_currencyCodeHasBeenSet = false;
191 bool m_frequencyHasBeenSet = false;
192 bool m_totalAmountHasBeenSet = false;
193 bool m_totalOptimizedAmountHasBeenSet = false;
194 bool m_totalPotentialSavingsAmountHasBeenSet = false;
195 bool m_totalAmountByCategoryHasBeenSet = false;
196 bool m_awsProductsHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace PartnerCentralSelling
201} // 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