AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SoftwareRevenue.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#include <aws/partnercentral-selling/model/RevenueModel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralSelling {
22namespace Model {
23
31 public:
32 AWS_PARTNERCENTRALSELLING_API SoftwareRevenue() = default;
33 AWS_PARTNERCENTRALSELLING_API SoftwareRevenue(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API SoftwareRevenue& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline RevenueModel GetDeliveryModel() const { return m_deliveryModel; }
44 inline bool DeliveryModelHasBeenSet() const { return m_deliveryModelHasBeenSet; }
45 inline void SetDeliveryModel(RevenueModel value) {
46 m_deliveryModelHasBeenSet = true;
47 m_deliveryModel = value;
48 }
50 SetDeliveryModel(value);
51 return *this;
52 }
54
56
59 inline const MonetaryValue& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = MonetaryValue>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = MonetaryValue>
67 SoftwareRevenue& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
79 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
80 template <typename EffectiveDateT = Aws::String>
81 void SetEffectiveDate(EffectiveDateT&& value) {
82 m_effectiveDateHasBeenSet = true;
83 m_effectiveDate = std::forward<EffectiveDateT>(value);
84 }
85 template <typename EffectiveDateT = Aws::String>
86 SoftwareRevenue& WithEffectiveDate(EffectiveDateT&& value) {
87 SetEffectiveDate(std::forward<EffectiveDateT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetExpirationDate() const { return m_expirationDate; }
99 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
100 template <typename ExpirationDateT = Aws::String>
101 void SetExpirationDate(ExpirationDateT&& value) {
102 m_expirationDateHasBeenSet = true;
103 m_expirationDate = std::forward<ExpirationDateT>(value);
104 }
105 template <typename ExpirationDateT = Aws::String>
106 SoftwareRevenue& WithExpirationDate(ExpirationDateT&& value) {
107 SetExpirationDate(std::forward<ExpirationDateT>(value));
108 return *this;
109 }
111 private:
112 RevenueModel m_deliveryModel{RevenueModel::NOT_SET};
113
114 MonetaryValue m_value;
115
116 Aws::String m_effectiveDate;
117
118 Aws::String m_expirationDate;
119 bool m_deliveryModelHasBeenSet = false;
120 bool m_valueHasBeenSet = false;
121 bool m_effectiveDateHasBeenSet = false;
122 bool m_expirationDateHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace PartnerCentralSelling
127} // namespace Aws
SoftwareRevenue & WithDeliveryModel(RevenueModel value)
AWS_PARTNERCENTRALSELLING_API SoftwareRevenue(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
SoftwareRevenue & WithExpirationDate(ExpirationDateT &&value)
SoftwareRevenue & WithEffectiveDate(EffectiveDateT &&value)
AWS_PARTNERCENTRALSELLING_API SoftwareRevenue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API SoftwareRevenue()=default
SoftwareRevenue & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue