AWS SDK for C++

AWS SDK for C++ Version 1.11.888

Loading...
Searching...
No Matches
AwsSoftwareRevenue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/MonetaryValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
30 public:
31 AWS_PARTNERCENTRALSELLING_API AwsSoftwareRevenue() = default;
32 AWS_PARTNERCENTRALSELLING_API AwsSoftwareRevenue(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API AwsSoftwareRevenue& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const MonetaryValue& GetValue() const { return m_value; }
39 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
40 template <typename ValueT = MonetaryValue>
41 void SetValue(ValueT&& value) {
42 m_valueHasBeenSet = true;
43 m_value = std::forward<ValueT>(value);
44 }
45 template <typename ValueT = MonetaryValue>
46 AwsSoftwareRevenue& WithValue(ValueT&& value) {
47 SetValue(std::forward<ValueT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDiscount() const { return m_discount; }
58 inline bool DiscountHasBeenSet() const { return m_discountHasBeenSet; }
59 template <typename DiscountT = Aws::String>
60 void SetDiscount(DiscountT&& value) {
61 m_discountHasBeenSet = true;
62 m_discount = std::forward<DiscountT>(value);
63 }
64 template <typename DiscountT = Aws::String>
65 AwsSoftwareRevenue& WithDiscount(DiscountT&& value) {
66 SetDiscount(std::forward<DiscountT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
76 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
77 template <typename EffectiveDateT = Aws::String>
78 void SetEffectiveDate(EffectiveDateT&& value) {
79 m_effectiveDateHasBeenSet = true;
80 m_effectiveDate = std::forward<EffectiveDateT>(value);
81 }
82 template <typename EffectiveDateT = Aws::String>
83 AwsSoftwareRevenue& WithEffectiveDate(EffectiveDateT&& value) {
84 SetEffectiveDate(std::forward<EffectiveDateT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetExpirationDate() const { return m_expirationDate; }
94 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
95 template <typename ExpirationDateT = Aws::String>
96 void SetExpirationDate(ExpirationDateT&& value) {
97 m_expirationDateHasBeenSet = true;
98 m_expirationDate = std::forward<ExpirationDateT>(value);
99 }
100 template <typename ExpirationDateT = Aws::String>
101 AwsSoftwareRevenue& WithExpirationDate(ExpirationDateT&& value) {
102 SetExpirationDate(std::forward<ExpirationDateT>(value));
103 return *this;
104 }
106 private:
107 MonetaryValue m_value;
108
109 Aws::String m_discount;
110
111 Aws::String m_effectiveDate;
112
113 Aws::String m_expirationDate;
114 bool m_valueHasBeenSet = false;
115 bool m_discountHasBeenSet = false;
116 bool m_effectiveDateHasBeenSet = false;
117 bool m_expirationDateHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace PartnerCentralSelling
122} // namespace Aws
AWS_PARTNERCENTRALSELLING_API AwsSoftwareRevenue(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API AwsSoftwareRevenue()=default
AwsSoftwareRevenue & WithDiscount(DiscountT &&value)
AwsSoftwareRevenue & WithEffectiveDate(EffectiveDateT &&value)
AwsSoftwareRevenue & WithExpirationDate(ExpirationDateT &&value)
AWS_PARTNERCENTRALSELLING_API AwsSoftwareRevenue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue