AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
BusinessSupportDiscount.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Billing {
20namespace Model {
21
29 public:
30 AWS_BILLING_API BusinessSupportDiscount() = default;
33 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetDiscountAmount() const { return m_discountAmount; }
41 inline bool DiscountAmountHasBeenSet() const { return m_discountAmountHasBeenSet; }
42 template <typename DiscountAmountT = Aws::String>
43 void SetDiscountAmount(DiscountAmountT&& value) {
44 m_discountAmountHasBeenSet = true;
45 m_discountAmount = std::forward<DiscountAmountT>(value);
46 }
47 template <typename DiscountAmountT = Aws::String>
48 BusinessSupportDiscount& WithDiscountAmount(DiscountAmountT&& value) {
49 SetDiscountAmount(std::forward<DiscountAmountT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDiscountPercentage() const { return m_discountPercentage; }
60 inline bool DiscountPercentageHasBeenSet() const { return m_discountPercentageHasBeenSet; }
61 template <typename DiscountPercentageT = Aws::String>
62 void SetDiscountPercentage(DiscountPercentageT&& value) {
63 m_discountPercentageHasBeenSet = true;
64 m_discountPercentage = std::forward<DiscountPercentageT>(value);
65 }
66 template <typename DiscountPercentageT = Aws::String>
67 BusinessSupportDiscount& WithDiscountPercentage(DiscountPercentageT&& value) {
68 SetDiscountPercentage(std::forward<DiscountPercentageT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetDiscountType() const { return m_discountType; }
81 inline bool DiscountTypeHasBeenSet() const { return m_discountTypeHasBeenSet; }
82 template <typename DiscountTypeT = Aws::String>
83 void SetDiscountType(DiscountTypeT&& value) {
84 m_discountTypeHasBeenSet = true;
85 m_discountType = std::forward<DiscountTypeT>(value);
86 }
87 template <typename DiscountTypeT = Aws::String>
88 BusinessSupportDiscount& WithDiscountType(DiscountTypeT&& value) {
89 SetDiscountType(std::forward<DiscountTypeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDiscountSource() const { return m_discountSource; }
99 inline bool DiscountSourceHasBeenSet() const { return m_discountSourceHasBeenSet; }
100 template <typename DiscountSourceT = Aws::String>
101 void SetDiscountSource(DiscountSourceT&& value) {
102 m_discountSourceHasBeenSet = true;
103 m_discountSource = std::forward<DiscountSourceT>(value);
104 }
105 template <typename DiscountSourceT = Aws::String>
106 BusinessSupportDiscount& WithDiscountSource(DiscountSourceT&& value) {
107 SetDiscountSource(std::forward<DiscountSourceT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_discountAmount;
113
114 Aws::String m_discountPercentage;
115
116 Aws::String m_discountType;
117
118 Aws::String m_discountSource;
119 bool m_discountAmountHasBeenSet = false;
120 bool m_discountPercentageHasBeenSet = false;
121 bool m_discountTypeHasBeenSet = false;
122 bool m_discountSourceHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Billing
127} // namespace Aws
BusinessSupportDiscount & WithDiscountSource(DiscountSourceT &&value)
void SetDiscountPercentage(DiscountPercentageT &&value)
BusinessSupportDiscount & WithDiscountAmount(DiscountAmountT &&value)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BILLING_API BusinessSupportDiscount()=default
AWS_BILLING_API BusinessSupportDiscount & operator=(Aws::Utils::Json::JsonView jsonValue)
BusinessSupportDiscount & WithDiscountType(DiscountTypeT &&value)
BusinessSupportDiscount & WithDiscountPercentage(DiscountPercentageT &&value)
AWS_BILLING_API BusinessSupportDiscount(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue