AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
Investment.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/MilestoneBasedInvestment.h>
9#include <aws/billing/model/OutcomeBasedInvestment.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Billing {
21namespace Model {
22
34 public:
35 AWS_BILLING_API Investment() = default;
36 AWS_BILLING_API Investment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BILLING_API Investment& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const MilestoneBasedInvestment& GetMilestoneBasedInvestment() const { return m_milestoneBasedInvestment; }
47 inline bool MilestoneBasedInvestmentHasBeenSet() const { return m_milestoneBasedInvestmentHasBeenSet; }
48 template <typename MilestoneBasedInvestmentT = MilestoneBasedInvestment>
49 void SetMilestoneBasedInvestment(MilestoneBasedInvestmentT&& value) {
50 m_milestoneBasedInvestmentHasBeenSet = true;
51 m_milestoneBasedInvestment = std::forward<MilestoneBasedInvestmentT>(value);
52 }
53 template <typename MilestoneBasedInvestmentT = MilestoneBasedInvestment>
54 Investment& WithMilestoneBasedInvestment(MilestoneBasedInvestmentT&& value) {
55 SetMilestoneBasedInvestment(std::forward<MilestoneBasedInvestmentT>(value));
56 return *this;
57 }
59
61
66 inline const OutcomeBasedInvestment& GetOutcomeBasedInvestment() const { return m_outcomeBasedInvestment; }
67 inline bool OutcomeBasedInvestmentHasBeenSet() const { return m_outcomeBasedInvestmentHasBeenSet; }
68 template <typename OutcomeBasedInvestmentT = OutcomeBasedInvestment>
69 void SetOutcomeBasedInvestment(OutcomeBasedInvestmentT&& value) {
70 m_outcomeBasedInvestmentHasBeenSet = true;
71 m_outcomeBasedInvestment = std::forward<OutcomeBasedInvestmentT>(value);
72 }
73 template <typename OutcomeBasedInvestmentT = OutcomeBasedInvestment>
74 Investment& WithOutcomeBasedInvestment(OutcomeBasedInvestmentT&& value) {
75 SetOutcomeBasedInvestment(std::forward<OutcomeBasedInvestmentT>(value));
76 return *this;
77 }
79 private:
80 MilestoneBasedInvestment m_milestoneBasedInvestment;
81
82 OutcomeBasedInvestment m_outcomeBasedInvestment;
83 bool m_milestoneBasedInvestmentHasBeenSet = false;
84 bool m_outcomeBasedInvestmentHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Billing
89} // namespace Aws
AWS_BILLING_API Investment & operator=(Aws::Utils::Json::JsonView jsonValue)
Investment & WithOutcomeBasedInvestment(OutcomeBasedInvestmentT &&value)
Definition Investment.h:74
bool MilestoneBasedInvestmentHasBeenSet() const
Definition Investment.h:47
void SetOutcomeBasedInvestment(OutcomeBasedInvestmentT &&value)
Definition Investment.h:69
const OutcomeBasedInvestment & GetOutcomeBasedInvestment() const
Definition Investment.h:66
AWS_BILLING_API Investment(Aws::Utils::Json::JsonView jsonValue)
const MilestoneBasedInvestment & GetMilestoneBasedInvestment() const
Definition Investment.h:46
AWS_BILLING_API Investment()=default
Investment & WithMilestoneBasedInvestment(MilestoneBasedInvestmentT &&value)
Definition Investment.h:54
bool OutcomeBasedInvestmentHasBeenSet() const
Definition Investment.h:67
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMilestoneBasedInvestment(MilestoneBasedInvestmentT &&value)
Definition Investment.h:49
Aws::Utils::Json::JsonValue JsonValue