AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RecommendedCreditPack.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMonetization {
21namespace Model {
22
29 public:
30 AWS_APPMONETIZATION_API RecommendedCreditPack() = default;
31 AWS_APPMONETIZATION_API RecommendedCreditPack(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API RecommendedCreditPack& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetActionName() const { return m_actionName; }
56 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
57 template <typename ActionNameT = Aws::String>
58 void SetActionName(ActionNameT&& value) {
59 m_actionNameHasBeenSet = true;
60 m_actionName = std::forward<ActionNameT>(value);
61 }
62 template <typename ActionNameT = Aws::String>
63 RecommendedCreditPack& WithActionName(ActionNameT&& value) {
64 SetActionName(std::forward<ActionNameT>(value));
65 return *this;
66 }
68
70
73 inline long long GetQuantity() const { return m_quantity; }
74 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
75 inline void SetQuantity(long long value) {
76 m_quantityHasBeenSet = true;
77 m_quantity = value;
78 }
79 inline RecommendedCreditPack& WithQuantity(long long value) {
80 SetQuantity(value);
81 return *this;
82 }
84
86
89 inline const Price& GetPrice() const { return m_price; }
90 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
91 template <typename PriceT = Price>
92 void SetPrice(PriceT&& value) {
93 m_priceHasBeenSet = true;
94 m_price = std::forward<PriceT>(value);
95 }
96 template <typename PriceT = Price>
98 SetPrice(std::forward<PriceT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_name;
104
105 Aws::String m_actionName;
106
107 long long m_quantity{0};
108
109 Price m_price;
110 bool m_nameHasBeenSet = false;
111 bool m_actionNameHasBeenSet = false;
112 bool m_quantityHasBeenSet = false;
113 bool m_priceHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace AppMonetization
118} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue