AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AlternativesOutcome.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/DroppedComparable.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMonetization {
22namespace Model {
23
31 public:
32 AWS_APPMONETIZATION_API AlternativesOutcome() = default;
33 AWS_APPMONETIZATION_API AlternativesOutcome(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API AlternativesOutcome& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetComparablesUsed() const { return m_comparablesUsed; }
42 inline bool ComparablesUsedHasBeenSet() const { return m_comparablesUsedHasBeenSet; }
43 template <typename ComparablesUsedT = Aws::Vector<Aws::String>>
44 void SetComparablesUsed(ComparablesUsedT&& value) {
45 m_comparablesUsedHasBeenSet = true;
46 m_comparablesUsed = std::forward<ComparablesUsedT>(value);
47 }
48 template <typename ComparablesUsedT = Aws::Vector<Aws::String>>
49 AlternativesOutcome& WithComparablesUsed(ComparablesUsedT&& value) {
50 SetComparablesUsed(std::forward<ComparablesUsedT>(value));
51 return *this;
52 }
53 template <typename ComparablesUsedT = Aws::String>
54 AlternativesOutcome& AddComparablesUsed(ComparablesUsedT&& value) {
55 m_comparablesUsedHasBeenSet = true;
56 m_comparablesUsed.emplace_back(std::forward<ComparablesUsedT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<DroppedComparable>& GetComparablesDropped() const { return m_comparablesDropped; }
66 inline bool ComparablesDroppedHasBeenSet() const { return m_comparablesDroppedHasBeenSet; }
67 template <typename ComparablesDroppedT = Aws::Vector<DroppedComparable>>
68 void SetComparablesDropped(ComparablesDroppedT&& value) {
69 m_comparablesDroppedHasBeenSet = true;
70 m_comparablesDropped = std::forward<ComparablesDroppedT>(value);
71 }
72 template <typename ComparablesDroppedT = Aws::Vector<DroppedComparable>>
73 AlternativesOutcome& WithComparablesDropped(ComparablesDroppedT&& value) {
74 SetComparablesDropped(std::forward<ComparablesDroppedT>(value));
75 return *this;
76 }
77 template <typename ComparablesDroppedT = DroppedComparable>
78 AlternativesOutcome& AddComparablesDropped(ComparablesDroppedT&& value) {
79 m_comparablesDroppedHasBeenSet = true;
80 m_comparablesDropped.emplace_back(std::forward<ComparablesDroppedT>(value));
81 return *this;
82 }
84 private:
85 Aws::Vector<Aws::String> m_comparablesUsed;
86
87 Aws::Vector<DroppedComparable> m_comparablesDropped;
88 bool m_comparablesUsedHasBeenSet = false;
89 bool m_comparablesDroppedHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace AppMonetization
94} // namespace Aws
void SetComparablesDropped(ComparablesDroppedT &&value)
AlternativesOutcome & AddComparablesDropped(ComparablesDroppedT &&value)
const Aws::Vector< Aws::String > & GetComparablesUsed() const
AWS_APPMONETIZATION_API AlternativesOutcome()=default
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AlternativesOutcome & AddComparablesUsed(ComparablesUsedT &&value)
AlternativesOutcome & WithComparablesUsed(ComparablesUsedT &&value)
const Aws::Vector< DroppedComparable > & GetComparablesDropped() const
AlternativesOutcome & WithComparablesDropped(ComparablesDroppedT &&value)
AWS_APPMONETIZATION_API AlternativesOutcome(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API AlternativesOutcome & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue