AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
ConsumableDetails.h
1
6#pragma once
7#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
8#include <aws/partnercentral-benefits/model/IssuanceDetail.h>
9#include <aws/partnercentral-benefits/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 PartnerCentralBenefits {
21namespace Model {
22
30 public:
31 AWS_PARTNERCENTRALBENEFITS_API ConsumableDetails() = default;
32 AWS_PARTNERCENTRALBENEFITS_API ConsumableDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALBENEFITS_API ConsumableDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const MonetaryValue& GetAllocatedAmount() const { return m_allocatedAmount; }
41 inline bool AllocatedAmountHasBeenSet() const { return m_allocatedAmountHasBeenSet; }
42 template <typename AllocatedAmountT = MonetaryValue>
43 void SetAllocatedAmount(AllocatedAmountT&& value) {
44 m_allocatedAmountHasBeenSet = true;
45 m_allocatedAmount = std::forward<AllocatedAmountT>(value);
46 }
47 template <typename AllocatedAmountT = MonetaryValue>
48 ConsumableDetails& WithAllocatedAmount(AllocatedAmountT&& value) {
49 SetAllocatedAmount(std::forward<AllocatedAmountT>(value));
50 return *this;
51 }
53
55
59 inline const MonetaryValue& GetRemainingAmount() const { return m_remainingAmount; }
60 inline bool RemainingAmountHasBeenSet() const { return m_remainingAmountHasBeenSet; }
61 template <typename RemainingAmountT = MonetaryValue>
62 void SetRemainingAmount(RemainingAmountT&& value) {
63 m_remainingAmountHasBeenSet = true;
64 m_remainingAmount = std::forward<RemainingAmountT>(value);
65 }
66 template <typename RemainingAmountT = MonetaryValue>
67 ConsumableDetails& WithRemainingAmount(RemainingAmountT&& value) {
68 SetRemainingAmount(std::forward<RemainingAmountT>(value));
69 return *this;
70 }
72
74
77 inline const MonetaryValue& GetUtilizedAmount() const { return m_utilizedAmount; }
78 inline bool UtilizedAmountHasBeenSet() const { return m_utilizedAmountHasBeenSet; }
79 template <typename UtilizedAmountT = MonetaryValue>
80 void SetUtilizedAmount(UtilizedAmountT&& value) {
81 m_utilizedAmountHasBeenSet = true;
82 m_utilizedAmount = std::forward<UtilizedAmountT>(value);
83 }
84 template <typename UtilizedAmountT = MonetaryValue>
85 ConsumableDetails& WithUtilizedAmount(UtilizedAmountT&& value) {
86 SetUtilizedAmount(std::forward<UtilizedAmountT>(value));
87 return *this;
88 }
90
92
96 inline const IssuanceDetail& GetIssuanceDetails() const { return m_issuanceDetails; }
97 inline bool IssuanceDetailsHasBeenSet() const { return m_issuanceDetailsHasBeenSet; }
98 template <typename IssuanceDetailsT = IssuanceDetail>
99 void SetIssuanceDetails(IssuanceDetailsT&& value) {
100 m_issuanceDetailsHasBeenSet = true;
101 m_issuanceDetails = std::forward<IssuanceDetailsT>(value);
102 }
103 template <typename IssuanceDetailsT = IssuanceDetail>
104 ConsumableDetails& WithIssuanceDetails(IssuanceDetailsT&& value) {
105 SetIssuanceDetails(std::forward<IssuanceDetailsT>(value));
106 return *this;
107 }
109 private:
110 MonetaryValue m_allocatedAmount;
111
112 MonetaryValue m_remainingAmount;
113
114 MonetaryValue m_utilizedAmount;
115
116 IssuanceDetail m_issuanceDetails;
117 bool m_allocatedAmountHasBeenSet = false;
118 bool m_remainingAmountHasBeenSet = false;
119 bool m_utilizedAmountHasBeenSet = false;
120 bool m_issuanceDetailsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace PartnerCentralBenefits
125} // namespace Aws
ConsumableDetails & WithIssuanceDetails(IssuanceDetailsT &&value)
ConsumableDetails & WithUtilizedAmount(UtilizedAmountT &&value)
ConsumableDetails & WithRemainingAmount(RemainingAmountT &&value)
AWS_PARTNERCENTRALBENEFITS_API ConsumableDetails()=default
AWS_PARTNERCENTRALBENEFITS_API ConsumableDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALBENEFITS_API ConsumableDetails(Aws::Utils::Json::JsonView jsonValue)
ConsumableDetails & WithAllocatedAmount(AllocatedAmountT &&value)
Aws::Utils::Json::JsonValue JsonValue