AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
TieredPrice.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/TierBand.h>
9#include <aws/appmonetization/model/TierSemantics.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
37 public:
38 AWS_APPMONETIZATION_API TieredPrice() = default;
39 AWS_APPMONETIZATION_API TieredPrice(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMONETIZATION_API TieredPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline TierSemantics GetSemantics() const { return m_semantics; }
49 inline bool SemanticsHasBeenSet() const { return m_semanticsHasBeenSet; }
50 inline void SetSemantics(TierSemantics value) {
51 m_semanticsHasBeenSet = true;
52 m_semantics = value;
53 }
55 SetSemantics(value);
56 return *this;
57 }
59
61
65 inline const Aws::Vector<TierBand>& GetTiers() const { return m_tiers; }
66 inline bool TiersHasBeenSet() const { return m_tiersHasBeenSet; }
67 template <typename TiersT = Aws::Vector<TierBand>>
68 void SetTiers(TiersT&& value) {
69 m_tiersHasBeenSet = true;
70 m_tiers = std::forward<TiersT>(value);
71 }
72 template <typename TiersT = Aws::Vector<TierBand>>
73 TieredPrice& WithTiers(TiersT&& value) {
74 SetTiers(std::forward<TiersT>(value));
75 return *this;
76 }
77 template <typename TiersT = TierBand>
78 TieredPrice& AddTiers(TiersT&& value) {
79 m_tiersHasBeenSet = true;
80 m_tiers.emplace_back(std::forward<TiersT>(value));
81 return *this;
82 }
84 private:
86
88 bool m_semanticsHasBeenSet = false;
89 bool m_tiersHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace AppMonetization
94} // namespace Aws
AWS_APPMONETIZATION_API TieredPrice(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TierBand > & GetTiers() const
Definition TieredPrice.h:65
void SetSemantics(TierSemantics value)
Definition TieredPrice.h:50
TieredPrice & WithTiers(TiersT &&value)
Definition TieredPrice.h:73
AWS_APPMONETIZATION_API TieredPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
TieredPrice & WithSemantics(TierSemantics value)
Definition TieredPrice.h:54
AWS_APPMONETIZATION_API TieredPrice()=default
TieredPrice & AddTiers(TiersT &&value)
Definition TieredPrice.h:78
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue