AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
MilestoneBasedInvestment.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/Amount.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Billing {
22namespace Model {
23
32 public:
33 AWS_BILLING_API MilestoneBasedInvestment() = default;
36 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetInvestmentId() const { return m_investmentId; }
44 inline bool InvestmentIdHasBeenSet() const { return m_investmentIdHasBeenSet; }
45 template <typename InvestmentIdT = Aws::String>
46 void SetInvestmentId(InvestmentIdT&& value) {
47 m_investmentIdHasBeenSet = true;
48 m_investmentId = std::forward<InvestmentIdT>(value);
49 }
50 template <typename InvestmentIdT = Aws::String>
52 SetInvestmentId(std::forward<InvestmentIdT>(value));
53 return *this;
54 }
56
58
61 inline const Amount& GetInvestmentValue() const { return m_investmentValue; }
62 inline bool InvestmentValueHasBeenSet() const { return m_investmentValueHasBeenSet; }
63 template <typename InvestmentValueT = Amount>
64 void SetInvestmentValue(InvestmentValueT&& value) {
65 m_investmentValueHasBeenSet = true;
66 m_investmentValue = std::forward<InvestmentValueT>(value);
67 }
68 template <typename InvestmentValueT = Amount>
69 MilestoneBasedInvestment& WithInvestmentValue(InvestmentValueT&& value) {
70 SetInvestmentValue(std::forward<InvestmentValueT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetInvestmentDisbursedAt() const { return m_investmentDisbursedAt; }
80 inline bool InvestmentDisbursedAtHasBeenSet() const { return m_investmentDisbursedAtHasBeenSet; }
81 template <typename InvestmentDisbursedAtT = Aws::Utils::DateTime>
82 void SetInvestmentDisbursedAt(InvestmentDisbursedAtT&& value) {
83 m_investmentDisbursedAtHasBeenSet = true;
84 m_investmentDisbursedAt = std::forward<InvestmentDisbursedAtT>(value);
85 }
86 template <typename InvestmentDisbursedAtT = Aws::Utils::DateTime>
87 MilestoneBasedInvestment& WithInvestmentDisbursedAt(InvestmentDisbursedAtT&& value) {
88 SetInvestmentDisbursedAt(std::forward<InvestmentDisbursedAtT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_investmentId;
94
95 Amount m_investmentValue;
96
97 Aws::Utils::DateTime m_investmentDisbursedAt{};
98 bool m_investmentIdHasBeenSet = false;
99 bool m_investmentValueHasBeenSet = false;
100 bool m_investmentDisbursedAtHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Billing
105} // namespace Aws
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BILLING_API MilestoneBasedInvestment()=default
const Aws::Utils::DateTime & GetInvestmentDisbursedAt() const
MilestoneBasedInvestment & WithInvestmentId(InvestmentIdT &&value)
MilestoneBasedInvestment & WithInvestmentDisbursedAt(InvestmentDisbursedAtT &&value)
AWS_BILLING_API MilestoneBasedInvestment(Aws::Utils::Json::JsonView jsonValue)
void SetInvestmentDisbursedAt(InvestmentDisbursedAtT &&value)
AWS_BILLING_API MilestoneBasedInvestment & operator=(Aws::Utils::Json::JsonView jsonValue)
MilestoneBasedInvestment & WithInvestmentValue(InvestmentValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue