AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
DroppedComparable.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
29 public:
30 AWS_APPMONETIZATION_API DroppedComparable() = default;
31 AWS_APPMONETIZATION_API DroppedComparable(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API DroppedComparable& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 DroppedComparable& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Price& GetPrice() const { return m_price; }
58 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
59 template <typename PriceT = Price>
60 void SetPrice(PriceT&& value) {
61 m_priceHasBeenSet = true;
62 m_price = std::forward<PriceT>(value);
63 }
64 template <typename PriceT = Price>
65 DroppedComparable& WithPrice(PriceT&& value) {
66 SetPrice(std::forward<PriceT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetReason() const { return m_reason; }
76 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
77 template <typename ReasonT = Aws::String>
78 void SetReason(ReasonT&& value) {
79 m_reasonHasBeenSet = true;
80 m_reason = std::forward<ReasonT>(value);
81 }
82 template <typename ReasonT = Aws::String>
83 DroppedComparable& WithReason(ReasonT&& value) {
84 SetReason(std::forward<ReasonT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 Price m_price;
92
93 Aws::String m_reason;
94 bool m_nameHasBeenSet = false;
95 bool m_priceHasBeenSet = false;
96 bool m_reasonHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AppMonetization
101} // namespace Aws
AWS_APPMONETIZATION_API DroppedComparable(Aws::Utils::Json::JsonView jsonValue)
DroppedComparable & WithName(NameT &&value)
DroppedComparable & WithPrice(PriceT &&value)
DroppedComparable & WithReason(ReasonT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API DroppedComparable()=default
AWS_APPMONETIZATION_API DroppedComparable & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue