AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AppQuotaConfig.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/AppQuota.h>
9#include <aws/appmonetization/model/AppTieredQuota.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMonetization {
21namespace Model {
22
32 public:
33 AWS_APPMONETIZATION_API AppQuotaConfig() = default;
34 AWS_APPMONETIZATION_API AppQuotaConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API AppQuotaConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const AppQuota& GetFlat() const { return m_flat; }
43 inline bool FlatHasBeenSet() const { return m_flatHasBeenSet; }
44 template <typename FlatT = AppQuota>
45 void SetFlat(FlatT&& value) {
46 m_flatHasBeenSet = true;
47 m_flat = std::forward<FlatT>(value);
48 }
49 template <typename FlatT = AppQuota>
50 AppQuotaConfig& WithFlat(FlatT&& value) {
51 SetFlat(std::forward<FlatT>(value));
52 return *this;
53 }
55
57
60 inline const AppTieredQuota& GetTiered() const { return m_tiered; }
61 inline bool TieredHasBeenSet() const { return m_tieredHasBeenSet; }
62 template <typename TieredT = AppTieredQuota>
63 void SetTiered(TieredT&& value) {
64 m_tieredHasBeenSet = true;
65 m_tiered = std::forward<TieredT>(value);
66 }
67 template <typename TieredT = AppTieredQuota>
68 AppQuotaConfig& WithTiered(TieredT&& value) {
69 SetTiered(std::forward<TieredT>(value));
70 return *this;
71 }
73 private:
74 AppQuota m_flat;
75
76 AppTieredQuota m_tiered;
77 bool m_flatHasBeenSet = false;
78 bool m_tieredHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace AppMonetization
83} // namespace Aws
AppQuotaConfig & WithTiered(TieredT &&value)
AppQuotaConfig & WithFlat(FlatT &&value)
AWS_APPMONETIZATION_API AppQuotaConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API AppQuotaConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API AppQuotaConfig()=default
const AppTieredQuota & GetTiered() const
Aws::Utils::Json::JsonValue JsonValue