AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
SoftwareRevenue.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/RevenueModel.h>
9#include <aws/partnercentral-selling/model/MonetaryValue.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralSelling
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PARTNERCENTRALSELLING_API SoftwareRevenue() = default;
38 AWS_PARTNERCENTRALSELLING_API SoftwareRevenue(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API SoftwareRevenue& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline RevenueModel GetDeliveryModel() const { return m_deliveryModel; }
50 inline bool DeliveryModelHasBeenSet() const { return m_deliveryModelHasBeenSet; }
51 inline void SetDeliveryModel(RevenueModel value) { m_deliveryModelHasBeenSet = true; m_deliveryModel = value; }
52 inline SoftwareRevenue& WithDeliveryModel(RevenueModel value) { SetDeliveryModel(value); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
63 template<typename ValueT = MonetaryValue>
64 SoftwareRevenue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
66
68
72 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
73 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
74 template<typename EffectiveDateT = Aws::String>
75 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
76 template<typename EffectiveDateT = Aws::String>
77 SoftwareRevenue& WithEffectiveDate(EffectiveDateT&& value) { SetEffectiveDate(std::forward<EffectiveDateT>(value)); return *this;}
79
81
86 inline const Aws::String& GetExpirationDate() const { return m_expirationDate; }
87 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
88 template<typename ExpirationDateT = Aws::String>
89 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
90 template<typename ExpirationDateT = Aws::String>
91 SoftwareRevenue& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
93 private:
94
95 RevenueModel m_deliveryModel{RevenueModel::NOT_SET};
96 bool m_deliveryModelHasBeenSet = false;
97
98 MonetaryValue m_value;
99 bool m_valueHasBeenSet = false;
100
101 Aws::String m_effectiveDate;
102 bool m_effectiveDateHasBeenSet = false;
103
104 Aws::String m_expirationDate;
105 bool m_expirationDateHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace PartnerCentralSelling
110} // 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