AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PlanPrice.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.h>
9#include <aws/core/utils/memory/stl/AWSString.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
29class PlanPrice {
30 public:
31 AWS_APPMONETIZATION_API PlanPrice() = default;
32 AWS_APPMONETIZATION_API PlanPrice(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API PlanPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetPlanCode() const { return m_planCode; }
42 inline bool PlanCodeHasBeenSet() const { return m_planCodeHasBeenSet; }
43 template <typename PlanCodeT = Aws::String>
44 void SetPlanCode(PlanCodeT&& value) {
45 m_planCodeHasBeenSet = true;
46 m_planCode = std::forward<PlanCodeT>(value);
47 }
48 template <typename PlanCodeT = Aws::String>
49 PlanPrice& WithPlanCode(PlanCodeT&& value) {
50 SetPlanCode(std::forward<PlanCodeT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetActionName() const { return m_actionName; }
63 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
64 template <typename ActionNameT = Aws::String>
65 void SetActionName(ActionNameT&& value) {
66 m_actionNameHasBeenSet = true;
67 m_actionName = std::forward<ActionNameT>(value);
68 }
69 template <typename ActionNameT = Aws::String>
70 PlanPrice& WithActionName(ActionNameT&& value) {
71 SetActionName(std::forward<ActionNameT>(value));
72 return *this;
73 }
75
77
81 inline const Price& GetPrice() const { return m_price; }
82 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
83 template <typename PriceT = Price>
84 void SetPrice(PriceT&& value) {
85 m_priceHasBeenSet = true;
86 m_price = std::forward<PriceT>(value);
87 }
88 template <typename PriceT = Price>
89 PlanPrice& WithPrice(PriceT&& value) {
90 SetPrice(std::forward<PriceT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_planCode;
96
97 Aws::String m_actionName;
98
99 Price m_price;
100 bool m_planCodeHasBeenSet = false;
101 bool m_actionNameHasBeenSet = false;
102 bool m_priceHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace AppMonetization
107} // namespace Aws
void SetActionName(ActionNameT &&value)
Definition PlanPrice.h:65
AWS_APPMONETIZATION_API PlanPrice()=default
PlanPrice & WithPlanCode(PlanCodeT &&value)
Definition PlanPrice.h:49
const Aws::String & GetActionName() const
Definition PlanPrice.h:62
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
PlanPrice & WithPrice(PriceT &&value)
Definition PlanPrice.h:89
void SetPlanCode(PlanCodeT &&value)
Definition PlanPrice.h:44
const Aws::String & GetPlanCode() const
Definition PlanPrice.h:41
AWS_APPMONETIZATION_API PlanPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API PlanPrice(Aws::Utils::Json::JsonView jsonValue)
PlanPrice & WithActionName(ActionNameT &&value)
Definition PlanPrice.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue