AWS SDK for C++

AWS SDK for C++ Version 1.11.767

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
102 inline const Aws::String& GetAmount() const { return m_amount; }
103 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
104 template <typename AmountT = Aws::String>
105 void SetAmount(AmountT&& value) {
106 m_amountHasBeenSet = true;
107 m_amount = std::forward<AmountT>(value);
108 }
109 template <typename AmountT = Aws::String>
110 AwsProductDetails& WithAmount(AmountT&& value) {
111 SetAmount(std::forward<AmountT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetOptimizedAmount() const { return m_optimizedAmount; }
121 inline bool OptimizedAmountHasBeenSet() const { return m_optimizedAmountHasBeenSet; }
122 template <typename OptimizedAmountT = Aws::String>
123 void SetOptimizedAmount(OptimizedAmountT&& value) {
124 m_optimizedAmountHasBeenSet = true;
125 m_optimizedAmount = std::forward<OptimizedAmountT>(value);
126 }
127 template <typename OptimizedAmountT = Aws::String>
128 AwsProductDetails& WithOptimizedAmount(OptimizedAmountT&& value) {
129 SetOptimizedAmount(std::forward<OptimizedAmountT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetPotentialSavingsAmount() const { return m_potentialSavingsAmount; }
139 inline bool PotentialSavingsAmountHasBeenSet() const { return m_potentialSavingsAmountHasBeenSet; }
140 template <typename PotentialSavingsAmountT = Aws::String>
141 void SetPotentialSavingsAmount(PotentialSavingsAmountT&& value) {
142 m_potentialSavingsAmountHasBeenSet = true;
143 m_potentialSavingsAmount = std::forward<PotentialSavingsAmountT>(value);
144 }
145 template <typename PotentialSavingsAmountT = Aws::String>
146 AwsProductDetails& WithPotentialSavingsAmount(PotentialSavingsAmountT&& value) {
147 SetPotentialSavingsAmount(std::forward<PotentialSavingsAmountT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<AwsProductOptimization>& GetOptimizations() const { return m_optimizations; }
157 inline bool OptimizationsHasBeenSet() const { return m_optimizationsHasBeenSet; }
158 template <typename OptimizationsT = Aws::Vector<AwsProductOptimization>>
159 void SetOptimizations(OptimizationsT&& value) {
160 m_optimizationsHasBeenSet = true;
161 m_optimizations = std::forward<OptimizationsT>(value);
162 }
163 template <typename OptimizationsT = Aws::Vector<AwsProductOptimization>>
164 AwsProductDetails& WithOptimizations(OptimizationsT&& value) {
165 SetOptimizations(std::forward<OptimizationsT>(value));
166 return *this;
167 }
168 template <typename OptimizationsT = AwsProductOptimization>
169 AwsProductDetails& AddOptimizations(OptimizationsT&& value) {
170 m_optimizationsHasBeenSet = true;
171 m_optimizations.emplace_back(std::forward<OptimizationsT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_productCode;
177
178 Aws::String m_serviceCode;
179
180 Aws::Vector<Aws::String> m_categories;
181
182 Aws::String m_amount;
183
184 Aws::String m_optimizedAmount;
185
186 Aws::String m_potentialSavingsAmount;
187
189 bool m_productCodeHasBeenSet = false;
190 bool m_serviceCodeHasBeenSet = false;
191 bool m_categoriesHasBeenSet = false;
192 bool m_amountHasBeenSet = false;
193 bool m_optimizedAmountHasBeenSet = false;
194 bool m_potentialSavingsAmountHasBeenSet = false;
195 bool m_optimizationsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace PartnerCentralSelling
200} // 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