AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsProductDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/AwsProductOptimization.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralSelling {
22namespace Model {
23
32 public:
33 AWS_PARTNERCENTRALSELLING_API AwsProductDetails() = default;
34 AWS_PARTNERCENTRALSELLING_API AwsProductDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API AwsProductDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetProductCode() const { return m_productCode; }
43 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
44 template <typename ProductCodeT = Aws::String>
45 void SetProductCode(ProductCodeT&& value) {
46 m_productCodeHasBeenSet = true;
47 m_productCode = std::forward<ProductCodeT>(value);
48 }
49 template <typename ProductCodeT = Aws::String>
50 AwsProductDetails& WithProductCode(ProductCodeT&& value) {
51 SetProductCode(std::forward<ProductCodeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
61 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
62 template <typename ServiceCodeT = Aws::String>
63 void SetServiceCode(ServiceCodeT&& value) {
64 m_serviceCodeHasBeenSet = true;
65 m_serviceCode = std::forward<ServiceCodeT>(value);
66 }
67 template <typename ServiceCodeT = Aws::String>
68 AwsProductDetails& WithServiceCode(ServiceCodeT&& value) {
69 SetServiceCode(std::forward<ServiceCodeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
79 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
80 template <typename CategoriesT = Aws::Vector<Aws::String>>
81 void SetCategories(CategoriesT&& value) {
82 m_categoriesHasBeenSet = true;
83 m_categories = std::forward<CategoriesT>(value);
84 }
85 template <typename CategoriesT = Aws::Vector<Aws::String>>
86 AwsProductDetails& WithCategories(CategoriesT&& value) {
87 SetCategories(std::forward<CategoriesT>(value));
88 return *this;
89 }
90 template <typename CategoriesT = Aws::String>
91 AwsProductDetails& AddCategories(CategoriesT&& value) {
92 m_categoriesHasBeenSet = true;
93 m_categories.emplace_back(std::forward<CategoriesT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetAmount() const { return m_amount; }
104 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
105 template <typename AmountT = Aws::String>
106 void SetAmount(AmountT&& value) {
107 m_amountHasBeenSet = true;
108 m_amount = std::forward<AmountT>(value);
109 }
110 template <typename AmountT = Aws::String>
111 AwsProductDetails& WithAmount(AmountT&& value) {
112 SetAmount(std::forward<AmountT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetOptimizedAmount() const { return m_optimizedAmount; }
123 inline bool OptimizedAmountHasBeenSet() const { return m_optimizedAmountHasBeenSet; }
124 template <typename OptimizedAmountT = Aws::String>
125 void SetOptimizedAmount(OptimizedAmountT&& value) {
126 m_optimizedAmountHasBeenSet = true;
127 m_optimizedAmount = std::forward<OptimizedAmountT>(value);
128 }
129 template <typename OptimizedAmountT = Aws::String>
130 AwsProductDetails& WithOptimizedAmount(OptimizedAmountT&& value) {
131 SetOptimizedAmount(std::forward<OptimizedAmountT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetPotentialSavingsAmount() const { return m_potentialSavingsAmount; }
142 inline bool PotentialSavingsAmountHasBeenSet() const { return m_potentialSavingsAmountHasBeenSet; }
143 template <typename PotentialSavingsAmountT = Aws::String>
144 void SetPotentialSavingsAmount(PotentialSavingsAmountT&& value) {
145 m_potentialSavingsAmountHasBeenSet = true;
146 m_potentialSavingsAmount = std::forward<PotentialSavingsAmountT>(value);
147 }
148 template <typename PotentialSavingsAmountT = Aws::String>
149 AwsProductDetails& WithPotentialSavingsAmount(PotentialSavingsAmountT&& value) {
150 SetPotentialSavingsAmount(std::forward<PotentialSavingsAmountT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Vector<AwsProductOptimization>& GetOptimizations() const { return m_optimizations; }
160 inline bool OptimizationsHasBeenSet() const { return m_optimizationsHasBeenSet; }
161 template <typename OptimizationsT = Aws::Vector<AwsProductOptimization>>
162 void SetOptimizations(OptimizationsT&& value) {
163 m_optimizationsHasBeenSet = true;
164 m_optimizations = std::forward<OptimizationsT>(value);
165 }
166 template <typename OptimizationsT = Aws::Vector<AwsProductOptimization>>
167 AwsProductDetails& WithOptimizations(OptimizationsT&& value) {
168 SetOptimizations(std::forward<OptimizationsT>(value));
169 return *this;
170 }
171 template <typename OptimizationsT = AwsProductOptimization>
172 AwsProductDetails& AddOptimizations(OptimizationsT&& value) {
173 m_optimizationsHasBeenSet = true;
174 m_optimizations.emplace_back(std::forward<OptimizationsT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_productCode;
180
181 Aws::String m_serviceCode;
182
183 Aws::Vector<Aws::String> m_categories;
184
185 Aws::String m_amount;
186
187 Aws::String m_optimizedAmount;
188
189 Aws::String m_potentialSavingsAmount;
190
192 bool m_productCodeHasBeenSet = false;
193 bool m_serviceCodeHasBeenSet = false;
194 bool m_categoriesHasBeenSet = false;
195 bool m_amountHasBeenSet = false;
196 bool m_optimizedAmountHasBeenSet = false;
197 bool m_potentialSavingsAmountHasBeenSet = false;
198 bool m_optimizationsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace PartnerCentralSelling
203} // namespace Aws
AWS_PARTNERCENTRALSELLING_API AwsProductDetails()=default
AwsProductDetails & WithProductCode(ProductCodeT &&value)
AwsProductDetails & AddOptimizations(OptimizationsT &&value)
AwsProductDetails & WithServiceCode(ServiceCodeT &&value)
const Aws::Vector< Aws::String > & GetCategories() const
AwsProductDetails & WithOptimizedAmount(OptimizedAmountT &&value)
AwsProductDetails & WithOptimizations(OptimizationsT &&value)
AWS_PARTNERCENTRALSELLING_API AwsProductDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsProductDetails & WithCategories(CategoriesT &&value)
AwsProductDetails & WithAmount(AmountT &&value)
AwsProductDetails & WithPotentialSavingsAmount(PotentialSavingsAmountT &&value)
AwsProductDetails & AddCategories(CategoriesT &&value)
const Aws::Vector< AwsProductOptimization > & GetOptimizations() const
AWS_PARTNERCENTRALSELLING_API AwsProductDetails(Aws::Utils::Json::JsonView jsonValue)
void SetPotentialSavingsAmount(PotentialSavingsAmountT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() 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