AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
MarketInputs.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/CheckoutDropOff.h>
9#include <aws/appmonetization/model/CustomerType.h>
10#include <aws/appmonetization/model/MeasuredConversion.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMonetization {
23namespace Model {
24
36 public:
37 AWS_APPMONETIZATION_API MarketInputs() = default;
38 AWS_APPMONETIZATION_API MarketInputs(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMONETIZATION_API MarketInputs& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
51 inline long long GetExpectedUsers() const { return m_expectedUsers; }
52 inline bool ExpectedUsersHasBeenSet() const { return m_expectedUsersHasBeenSet; }
53 inline void SetExpectedUsers(long long value) {
54 m_expectedUsersHasBeenSet = true;
55 m_expectedUsers = value;
56 }
57 inline MarketInputs& WithExpectedUsers(long long value) {
58 SetExpectedUsers(value);
59 return *this;
60 }
62
64
80 inline const MeasuredConversion& GetMeasuredConversion() const { return m_measuredConversion; }
81 inline bool MeasuredConversionHasBeenSet() const { return m_measuredConversionHasBeenSet; }
82 template <typename MeasuredConversionT = MeasuredConversion>
83 void SetMeasuredConversion(MeasuredConversionT&& value) {
84 m_measuredConversionHasBeenSet = true;
85 m_measuredConversion = std::forward<MeasuredConversionT>(value);
86 }
87 template <typename MeasuredConversionT = MeasuredConversion>
88 MarketInputs& WithMeasuredConversion(MeasuredConversionT&& value) {
89 SetMeasuredConversion(std::forward<MeasuredConversionT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::Vector<CustomerType>& GetCustomerTypes() const { return m_customerTypes; }
101 inline bool CustomerTypesHasBeenSet() const { return m_customerTypesHasBeenSet; }
102 template <typename CustomerTypesT = Aws::Vector<CustomerType>>
103 void SetCustomerTypes(CustomerTypesT&& value) {
104 m_customerTypesHasBeenSet = true;
105 m_customerTypes = std::forward<CustomerTypesT>(value);
106 }
107 template <typename CustomerTypesT = Aws::Vector<CustomerType>>
108 MarketInputs& WithCustomerTypes(CustomerTypesT&& value) {
109 SetCustomerTypes(std::forward<CustomerTypesT>(value));
110 return *this;
111 }
112 template <typename CustomerTypesT = CustomerType>
113 MarketInputs& AddCustomerTypes(CustomerTypesT&& value) {
114 m_customerTypesHasBeenSet = true;
115 m_customerTypes.emplace_back(std::forward<CustomerTypesT>(value));
116 return *this;
117 }
119
121
127 inline const CheckoutDropOff& GetCheckoutDropOff() const { return m_checkoutDropOff; }
128 inline bool CheckoutDropOffHasBeenSet() const { return m_checkoutDropOffHasBeenSet; }
129 template <typename CheckoutDropOffT = CheckoutDropOff>
130 void SetCheckoutDropOff(CheckoutDropOffT&& value) {
131 m_checkoutDropOffHasBeenSet = true;
132 m_checkoutDropOff = std::forward<CheckoutDropOffT>(value);
133 }
134 template <typename CheckoutDropOffT = CheckoutDropOff>
135 MarketInputs& WithCheckoutDropOff(CheckoutDropOffT&& value) {
136 SetCheckoutDropOff(std::forward<CheckoutDropOffT>(value));
137 return *this;
138 }
140 private:
141 long long m_expectedUsers{0};
142
143 MeasuredConversion m_measuredConversion;
144
145 Aws::Vector<CustomerType> m_customerTypes;
146
147 CheckoutDropOff m_checkoutDropOff;
148 bool m_expectedUsersHasBeenSet = false;
149 bool m_measuredConversionHasBeenSet = false;
150 bool m_customerTypesHasBeenSet = false;
151 bool m_checkoutDropOffHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace AppMonetization
156} // namespace Aws
const MeasuredConversion & GetMeasuredConversion() const
AWS_APPMONETIZATION_API MarketInputs()=default
const CheckoutDropOff & GetCheckoutDropOff() const
void SetCheckoutDropOff(CheckoutDropOffT &&value)
MarketInputs & WithCheckoutDropOff(CheckoutDropOffT &&value)
MarketInputs & WithMeasuredConversion(MeasuredConversionT &&value)
AWS_APPMONETIZATION_API MarketInputs(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMeasuredConversion(MeasuredConversionT &&value)
AWS_APPMONETIZATION_API MarketInputs & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CustomerType > & GetCustomerTypes() const
MarketInputs & AddCustomerTypes(CustomerTypesT &&value)
MarketInputs & WithExpectedUsers(long long value)
MarketInputs & WithCustomerTypes(CustomerTypesT &&value)
void SetCustomerTypes(CustomerTypesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue