AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
TieredOverage.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
31 public:
32 AWS_APPMONETIZATION_API TieredOverage() = default;
33 AWS_APPMONETIZATION_API TieredOverage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API TieredOverage& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline TierSemantics GetSemantics() const { return m_semantics; }
43 inline bool SemanticsHasBeenSet() const { return m_semanticsHasBeenSet; }
44 inline void SetSemantics(TierSemantics value) {
45 m_semanticsHasBeenSet = true;
46 m_semantics = value;
47 }
49 SetSemantics(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<TierBand>& GetTiers() const { return m_tiers; }
59 inline bool TiersHasBeenSet() const { return m_tiersHasBeenSet; }
60 template <typename TiersT = Aws::Vector<TierBand>>
61 void SetTiers(TiersT&& value) {
62 m_tiersHasBeenSet = true;
63 m_tiers = std::forward<TiersT>(value);
64 }
65 template <typename TiersT = Aws::Vector<TierBand>>
66 TieredOverage& WithTiers(TiersT&& value) {
67 SetTiers(std::forward<TiersT>(value));
68 return *this;
69 }
70 template <typename TiersT = TierBand>
71 TieredOverage& AddTiers(TiersT&& value) {
72 m_tiersHasBeenSet = true;
73 m_tiers.emplace_back(std::forward<TiersT>(value));
74 return *this;
75 }
77 private:
79
81 bool m_semanticsHasBeenSet = false;
82 bool m_tiersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace AppMonetization
87} // namespace Aws
const Aws::Vector< TierBand > & GetTiers() const
TieredOverage & AddTiers(TiersT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API TieredOverage()=default
AWS_APPMONETIZATION_API TieredOverage(Aws::Utils::Json::JsonView jsonValue)
TieredOverage & WithSemantics(TierSemantics value)
TieredOverage & WithTiers(TiersT &&value)
AWS_APPMONETIZATION_API TieredOverage & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue