AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CheckoutItem.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMonetization {
20namespace Model {
21
29 public:
30 AWS_APPMONETIZATION_API CheckoutItem() = default;
31 AWS_APPMONETIZATION_API CheckoutItem(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API CheckoutItem& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetOneTimePriceId() const { return m_oneTimePriceId; }
40 inline bool OneTimePriceIdHasBeenSet() const { return m_oneTimePriceIdHasBeenSet; }
41 template <typename OneTimePriceIdT = Aws::String>
42 void SetOneTimePriceId(OneTimePriceIdT&& value) {
43 m_oneTimePriceIdHasBeenSet = true;
44 m_oneTimePriceId = std::forward<OneTimePriceIdT>(value);
45 }
46 template <typename OneTimePriceIdT = Aws::String>
47 CheckoutItem& WithOneTimePriceId(OneTimePriceIdT&& value) {
48 SetOneTimePriceId(std::forward<OneTimePriceIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetQuantity() const { return m_quantity; }
58 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
59 inline void SetQuantity(int value) {
60 m_quantityHasBeenSet = true;
61 m_quantity = value;
62 }
63 inline CheckoutItem& WithQuantity(int value) {
64 SetQuantity(value);
65 return *this;
66 }
68 private:
69 Aws::String m_oneTimePriceId;
70
71 int m_quantity{0};
72 bool m_oneTimePriceIdHasBeenSet = false;
73 bool m_quantityHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AppMonetization
78} // namespace Aws
AWS_APPMONETIZATION_API CheckoutItem(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API CheckoutItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOneTimePriceId() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOneTimePriceId(OneTimePriceIdT &&value)
CheckoutItem & WithQuantity(int value)
CheckoutItem & WithOneTimePriceId(OneTimePriceIdT &&value)
AWS_APPMONETIZATION_API CheckoutItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue