AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UnitPrice.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
28class UnitPrice {
29 public:
30 AWS_APPMONETIZATION_API UnitPrice() = default;
31 AWS_APPMONETIZATION_API UnitPrice(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API UnitPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetActionName() const { return m_actionName; }
38 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
39 template <typename ActionNameT = Aws::String>
40 void SetActionName(ActionNameT&& value) {
41 m_actionNameHasBeenSet = true;
42 m_actionName = std::forward<ActionNameT>(value);
43 }
44 template <typename ActionNameT = Aws::String>
45 UnitPrice& WithActionName(ActionNameT&& value) {
46 SetActionName(std::forward<ActionNameT>(value));
47 return *this;
48 }
50
52
55 inline const Price& GetPrice() const { return m_price; }
56 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
57 template <typename PriceT = Price>
58 void SetPrice(PriceT&& value) {
59 m_priceHasBeenSet = true;
60 m_price = std::forward<PriceT>(value);
61 }
62 template <typename PriceT = Price>
63 UnitPrice& WithPrice(PriceT&& value) {
64 SetPrice(std::forward<PriceT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_actionName;
70
71 Price m_price;
72 bool m_actionNameHasBeenSet = false;
73 bool m_priceHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AppMonetization
78} // namespace Aws
AWS_APPMONETIZATION_API UnitPrice(Aws::Utils::Json::JsonView jsonValue)
UnitPrice & WithActionName(ActionNameT &&value)
Definition UnitPrice.h:45
AWS_APPMONETIZATION_API UnitPrice()=default
void SetActionName(ActionNameT &&value)
Definition UnitPrice.h:40
UnitPrice & WithPrice(PriceT &&value)
Definition UnitPrice.h:63
const Aws::String & GetActionName() const
Definition UnitPrice.h:37
AWS_APPMONETIZATION_API UnitPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue