AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
MaxTierOutcome.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/MaxTierStatus.h>
9#include <aws/appmonetization/model/Price.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
38 public:
39 AWS_APPMONETIZATION_API MaxTierOutcome() = default;
40 AWS_APPMONETIZATION_API MaxTierOutcome(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPMONETIZATION_API MaxTierOutcome& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline MaxTierStatus GetStatus() const { return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(MaxTierStatus value) {
51 m_statusHasBeenSet = true;
52 m_status = value;
53 }
55 SetStatus(value);
56 return *this;
57 }
59
61
64 inline const Price& GetPrice() const { return m_price; }
65 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
66 template <typename PriceT = Price>
67 void SetPrice(PriceT&& value) {
68 m_priceHasBeenSet = true;
69 m_price = std::forward<PriceT>(value);
70 }
71 template <typename PriceT = Price>
72 MaxTierOutcome& WithPrice(PriceT&& value) {
73 SetPrice(std::forward<PriceT>(value));
74 return *this;
75 }
77 private:
79
80 Price m_price;
81 bool m_statusHasBeenSet = false;
82 bool m_priceHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace AppMonetization
87} // namespace Aws
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
MaxTierOutcome & WithStatus(MaxTierStatus value)
AWS_APPMONETIZATION_API MaxTierOutcome()=default
MaxTierOutcome & WithPrice(PriceT &&value)
AWS_APPMONETIZATION_API MaxTierOutcome(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API MaxTierOutcome & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue