AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PaymentScheduleTerm.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/marketplace-agreement/model/ScheduleItem.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 AgreementService
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_AGREEMENTSERVICE_API PaymentScheduleTerm() = default;
40 AWS_AGREEMENTSERVICE_API PaymentScheduleTerm(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AGREEMENTSERVICE_API PaymentScheduleTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
50 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
51 template<typename CurrencyCodeT = Aws::String>
52 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
53 template<typename CurrencyCodeT = Aws::String>
54 PaymentScheduleTerm& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
56
58
62 inline const Aws::Vector<ScheduleItem>& GetSchedule() const { return m_schedule; }
63 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
64 template<typename ScheduleT = Aws::Vector<ScheduleItem>>
65 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
66 template<typename ScheduleT = Aws::Vector<ScheduleItem>>
67 PaymentScheduleTerm& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
68 template<typename ScheduleT = ScheduleItem>
69 PaymentScheduleTerm& AddSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule.emplace_back(std::forward<ScheduleT>(value)); return *this; }
71
73
76 inline const Aws::String& GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 template<typename TypeT = Aws::String>
79 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
80 template<typename TypeT = Aws::String>
81 PaymentScheduleTerm& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
83 private:
84
85 Aws::String m_currencyCode;
86 bool m_currencyCodeHasBeenSet = false;
87
89 bool m_scheduleHasBeenSet = false;
90
91 Aws::String m_type;
92 bool m_typeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace AgreementService
97} // namespace Aws
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGREEMENTSERVICE_API PaymentScheduleTerm()=default
PaymentScheduleTerm & WithSchedule(ScheduleT &&value)
const Aws::Vector< ScheduleItem > & GetSchedule() const
PaymentScheduleTerm & WithCurrencyCode(CurrencyCodeT &&value)
AWS_AGREEMENTSERVICE_API PaymentScheduleTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
PaymentScheduleTerm & AddSchedule(ScheduleT &&value)
AWS_AGREEMENTSERVICE_API PaymentScheduleTerm(Aws::Utils::Json::JsonView jsonValue)
PaymentScheduleTerm & WithType(TypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue