AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AlternativeInputs.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Comparable.h>
9#include <aws/appmonetization/model/ComparablesOptIn.h>
10#include <aws/appmonetization/model/OutsideOption.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
33 public:
34 AWS_APPMONETIZATION_API AlternativeInputs() = default;
35 AWS_APPMONETIZATION_API AlternativeInputs(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API AlternativeInputs& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline ComparablesOptIn GetComparablesOptIn() const { return m_comparablesOptIn; }
46 inline bool ComparablesOptInHasBeenSet() const { return m_comparablesOptInHasBeenSet; }
48 m_comparablesOptInHasBeenSet = true;
49 m_comparablesOptIn = value;
50 }
53 return *this;
54 }
56
58
67 inline const Aws::Vector<Comparable>& GetComparables() const { return m_comparables; }
68 inline bool ComparablesHasBeenSet() const { return m_comparablesHasBeenSet; }
69 template <typename ComparablesT = Aws::Vector<Comparable>>
70 void SetComparables(ComparablesT&& value) {
71 m_comparablesHasBeenSet = true;
72 m_comparables = std::forward<ComparablesT>(value);
73 }
74 template <typename ComparablesT = Aws::Vector<Comparable>>
75 AlternativeInputs& WithComparables(ComparablesT&& value) {
76 SetComparables(std::forward<ComparablesT>(value));
77 return *this;
78 }
79 template <typename ComparablesT = Comparable>
80 AlternativeInputs& AddComparables(ComparablesT&& value) {
81 m_comparablesHasBeenSet = true;
82 m_comparables.emplace_back(std::forward<ComparablesT>(value));
83 return *this;
84 }
86
88
94 inline const Aws::Vector<OutsideOption>& GetOutsideOptions() const { return m_outsideOptions; }
95 inline bool OutsideOptionsHasBeenSet() const { return m_outsideOptionsHasBeenSet; }
96 template <typename OutsideOptionsT = Aws::Vector<OutsideOption>>
97 void SetOutsideOptions(OutsideOptionsT&& value) {
98 m_outsideOptionsHasBeenSet = true;
99 m_outsideOptions = std::forward<OutsideOptionsT>(value);
100 }
101 template <typename OutsideOptionsT = Aws::Vector<OutsideOption>>
102 AlternativeInputs& WithOutsideOptions(OutsideOptionsT&& value) {
103 SetOutsideOptions(std::forward<OutsideOptionsT>(value));
104 return *this;
105 }
106 template <typename OutsideOptionsT = OutsideOption>
107 AlternativeInputs& AddOutsideOptions(OutsideOptionsT&& value) {
108 m_outsideOptionsHasBeenSet = true;
109 m_outsideOptions.emplace_back(std::forward<OutsideOptionsT>(value));
110 return *this;
111 }
113 private:
115
116 Aws::Vector<Comparable> m_comparables;
117
118 Aws::Vector<OutsideOption> m_outsideOptions;
119 bool m_comparablesOptInHasBeenSet = false;
120 bool m_comparablesHasBeenSet = false;
121 bool m_outsideOptionsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace AppMonetization
126} // namespace Aws
void SetOutsideOptions(OutsideOptionsT &&value)
AWS_APPMONETIZATION_API AlternativeInputs(Aws::Utils::Json::JsonView jsonValue)
AlternativeInputs & WithComparables(ComparablesT &&value)
AlternativeInputs & WithComparablesOptIn(ComparablesOptIn value)
AWS_APPMONETIZATION_API AlternativeInputs & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API AlternativeInputs()=default
const Aws::Vector< OutsideOption > & GetOutsideOptions() const
AlternativeInputs & AddOutsideOptions(OutsideOptionsT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AlternativeInputs & WithOutsideOptions(OutsideOptionsT &&value)
AlternativeInputs & AddComparables(ComparablesT &&value)
const Aws::Vector< Comparable > & GetComparables() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue