AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
InvestmentSummary.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/Amount.h>
9#include <aws/billing/model/InvestmentType.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
31 public:
32 AWS_BILLING_API InvestmentSummary() = default;
35 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetInvestmentSummaryId() const { return m_investmentSummaryId; }
45 inline bool InvestmentSummaryIdHasBeenSet() const { return m_investmentSummaryIdHasBeenSet; }
46 template <typename InvestmentSummaryIdT = Aws::String>
47 void SetInvestmentSummaryId(InvestmentSummaryIdT&& value) {
48 m_investmentSummaryIdHasBeenSet = true;
49 m_investmentSummaryId = std::forward<InvestmentSummaryIdT>(value);
50 }
51 template <typename InvestmentSummaryIdT = Aws::String>
52 InvestmentSummary& WithInvestmentSummaryId(InvestmentSummaryIdT&& value) {
53 SetInvestmentSummaryId(std::forward<InvestmentSummaryIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetInvestmentName() const { return m_investmentName; }
64 inline bool InvestmentNameHasBeenSet() const { return m_investmentNameHasBeenSet; }
65 template <typename InvestmentNameT = Aws::String>
66 void SetInvestmentName(InvestmentNameT&& value) {
67 m_investmentNameHasBeenSet = true;
68 m_investmentName = std::forward<InvestmentNameT>(value);
69 }
70 template <typename InvestmentNameT = Aws::String>
71 InvestmentSummary& WithInvestmentName(InvestmentNameT&& value) {
72 SetInvestmentName(std::forward<InvestmentNameT>(value));
73 return *this;
74 }
76
78
85 inline InvestmentType GetInvestmentType() const { return m_investmentType; }
86 inline bool InvestmentTypeHasBeenSet() const { return m_investmentTypeHasBeenSet; }
87 inline void SetInvestmentType(InvestmentType value) {
88 m_investmentTypeHasBeenSet = true;
89 m_investmentType = value;
90 }
92 SetInvestmentType(value);
93 return *this;
94 }
96
98
102 inline const Amount& GetMaxAllowedInvestmentDisbursementValue() const { return m_maxAllowedInvestmentDisbursementValue; }
103 inline bool MaxAllowedInvestmentDisbursementValueHasBeenSet() const { return m_maxAllowedInvestmentDisbursementValueHasBeenSet; }
104 template <typename MaxAllowedInvestmentDisbursementValueT = Amount>
105 void SetMaxAllowedInvestmentDisbursementValue(MaxAllowedInvestmentDisbursementValueT&& value) {
106 m_maxAllowedInvestmentDisbursementValueHasBeenSet = true;
107 m_maxAllowedInvestmentDisbursementValue = std::forward<MaxAllowedInvestmentDisbursementValueT>(value);
108 }
109 template <typename MaxAllowedInvestmentDisbursementValueT = Amount>
110 InvestmentSummary& WithMaxAllowedInvestmentDisbursementValue(MaxAllowedInvestmentDisbursementValueT&& value) {
111 SetMaxAllowedInvestmentDisbursementValue(std::forward<MaxAllowedInvestmentDisbursementValueT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_investmentSummaryId;
117
118 Aws::String m_investmentName;
119
120 InvestmentType m_investmentType{InvestmentType::NOT_SET};
121
122 Amount m_maxAllowedInvestmentDisbursementValue;
123 bool m_investmentSummaryIdHasBeenSet = false;
124 bool m_investmentNameHasBeenSet = false;
125 bool m_investmentTypeHasBeenSet = false;
126 bool m_maxAllowedInvestmentDisbursementValueHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Billing
131} // namespace Aws
InvestmentSummary & WithInvestmentSummaryId(InvestmentSummaryIdT &&value)
InvestmentSummary & WithMaxAllowedInvestmentDisbursementValue(MaxAllowedInvestmentDisbursementValueT &&value)
AWS_BILLING_API InvestmentSummary()=default
void SetInvestmentName(InvestmentNameT &&value)
void SetInvestmentType(InvestmentType value)
AWS_BILLING_API InvestmentSummary(Aws::Utils::Json::JsonView jsonValue)
InvestmentSummary & WithInvestmentType(InvestmentType value)
const Amount & GetMaxAllowedInvestmentDisbursementValue() const
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaxAllowedInvestmentDisbursementValue(MaxAllowedInvestmentDisbursementValueT &&value)
InvestmentSummary & WithInvestmentName(InvestmentNameT &&value)
void SetInvestmentSummaryId(InvestmentSummaryIdT &&value)
const Aws::String & GetInvestmentName() const
AWS_BILLING_API InvestmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInvestmentSummaryId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue