AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
FixedUpfrontPricingTerm.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/GrantItem.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
35 {
36 public:
37 AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm() = default;
38 AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
48 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
49 template<typename CurrencyCodeT = Aws::String>
50 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
51 template<typename CurrencyCodeT = Aws::String>
52 FixedUpfrontPricingTerm& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDuration() const { return m_duration; }
60 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
61 template<typename DurationT = Aws::String>
62 void SetDuration(DurationT&& value) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
63 template<typename DurationT = Aws::String>
64 FixedUpfrontPricingTerm& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
66
68
72 inline const Aws::Vector<GrantItem>& GetGrants() const { return m_grants; }
73 inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
74 template<typename GrantsT = Aws::Vector<GrantItem>>
75 void SetGrants(GrantsT&& value) { m_grantsHasBeenSet = true; m_grants = std::forward<GrantsT>(value); }
76 template<typename GrantsT = Aws::Vector<GrantItem>>
77 FixedUpfrontPricingTerm& WithGrants(GrantsT&& value) { SetGrants(std::forward<GrantsT>(value)); return *this;}
78 template<typename GrantsT = GrantItem>
79 FixedUpfrontPricingTerm& AddGrants(GrantsT&& value) { m_grantsHasBeenSet = true; m_grants.emplace_back(std::forward<GrantsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetPrice() const { return m_price; }
87 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
88 template<typename PriceT = Aws::String>
89 void SetPrice(PriceT&& value) { m_priceHasBeenSet = true; m_price = std::forward<PriceT>(value); }
90 template<typename PriceT = Aws::String>
91 FixedUpfrontPricingTerm& WithPrice(PriceT&& value) { SetPrice(std::forward<PriceT>(value)); return *this;}
93
95
98 inline const Aws::String& GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 template<typename TypeT = Aws::String>
101 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
102 template<typename TypeT = Aws::String>
103 FixedUpfrontPricingTerm& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
105 private:
106
107 Aws::String m_currencyCode;
108 bool m_currencyCodeHasBeenSet = false;
109
110 Aws::String m_duration;
111 bool m_durationHasBeenSet = false;
112
113 Aws::Vector<GrantItem> m_grants;
114 bool m_grantsHasBeenSet = false;
115
116 Aws::String m_price;
117 bool m_priceHasBeenSet = false;
118
119 Aws::String m_type;
120 bool m_typeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AgreementService
125} // namespace Aws
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
FixedUpfrontPricingTerm & WithCurrencyCode(CurrencyCodeT &&value)
FixedUpfrontPricingTerm & AddGrants(GrantsT &&value)
FixedUpfrontPricingTerm & WithPrice(PriceT &&value)
FixedUpfrontPricingTerm & WithDuration(DurationT &&value)
AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm()=default
AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm(Aws::Utils::Json::JsonView jsonValue)
FixedUpfrontPricingTerm & WithGrants(GrantsT &&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