AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/core/utils/memory/stl/AWSString.h>
10#include <aws/partnercentral-selling/model/MonetaryValue.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
60 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
61 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
62 template<typename EffectiveDateT = Aws::String>
63 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
64 template<typename EffectiveDateT = Aws::String>
65 SoftwareRevenue& WithEffectiveDate(EffectiveDateT&& value) { SetEffectiveDate(std::forward<EffectiveDateT>(value)); return *this;}
67
69
74 inline const Aws::String& GetExpirationDate() const { return m_expirationDate; }
75 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
76 template<typename ExpirationDateT = Aws::String>
77 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
78 template<typename ExpirationDateT = Aws::String>
79 SoftwareRevenue& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
81
83
86 inline const MonetaryValue& GetValue() const { return m_value; }
87 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
88 template<typename ValueT = MonetaryValue>
89 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
90 template<typename ValueT = MonetaryValue>
91 SoftwareRevenue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
93 private:
94
95 RevenueModel m_deliveryModel{RevenueModel::NOT_SET};
96 bool m_deliveryModelHasBeenSet = false;
97
98 Aws::String m_effectiveDate;
99 bool m_effectiveDateHasBeenSet = false;
100
101 Aws::String m_expirationDate;
102 bool m_expirationDateHasBeenSet = false;
103
104 MonetaryValue m_value;
105 bool m_valueHasBeenSet = 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