AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ConfigurableUpfrontPricingTerm.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/marketplace-agreement/model/ConfigurableUpfrontPricingTermConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/marketplace-agreement/model/ConfigurableUpfrontRateCardItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AgreementService
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_AGREEMENTSERVICE_API ConfigurableUpfrontPricingTerm() = default;
42 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const ConfigurableUpfrontPricingTermConfiguration& GetConfiguration() const { return m_configuration; }
50 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
51 template<typename ConfigurationT = ConfigurableUpfrontPricingTermConfiguration>
52 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
53 template<typename ConfigurationT = ConfigurableUpfrontPricingTermConfiguration>
54 ConfigurableUpfrontPricingTerm& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
56
58
61 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
62 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
63 template<typename CurrencyCodeT = Aws::String>
64 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
65 template<typename CurrencyCodeT = Aws::String>
66 ConfigurableUpfrontPricingTerm& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
68
70
73 inline const Aws::Vector<ConfigurableUpfrontRateCardItem>& GetRateCards() const { return m_rateCards; }
74 inline bool RateCardsHasBeenSet() const { return m_rateCardsHasBeenSet; }
75 template<typename RateCardsT = Aws::Vector<ConfigurableUpfrontRateCardItem>>
76 void SetRateCards(RateCardsT&& value) { m_rateCardsHasBeenSet = true; m_rateCards = std::forward<RateCardsT>(value); }
77 template<typename RateCardsT = Aws::Vector<ConfigurableUpfrontRateCardItem>>
78 ConfigurableUpfrontPricingTerm& WithRateCards(RateCardsT&& value) { SetRateCards(std::forward<RateCardsT>(value)); return *this;}
79 template<typename RateCardsT = ConfigurableUpfrontRateCardItem>
80 ConfigurableUpfrontPricingTerm& AddRateCards(RateCardsT&& value) { m_rateCardsHasBeenSet = true; m_rateCards.emplace_back(std::forward<RateCardsT>(value)); return *this; }
82
84
87 inline const Aws::String& GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 template<typename TypeT = Aws::String>
90 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
91 template<typename TypeT = Aws::String>
92 ConfigurableUpfrontPricingTerm& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
94 private:
95
97 bool m_configurationHasBeenSet = false;
98
99 Aws::String m_currencyCode;
100 bool m_currencyCodeHasBeenSet = false;
101
103 bool m_rateCardsHasBeenSet = false;
104
105 Aws::String m_type;
106 bool m_typeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AgreementService
111} // namespace Aws
ConfigurableUpfrontPricingTerm & WithConfiguration(ConfigurationT &&value)
AWS_AGREEMENTSERVICE_API ConfigurableUpfrontPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurableUpfrontPricingTerm & WithRateCards(RateCardsT &&value)
const ConfigurableUpfrontPricingTermConfiguration & GetConfiguration() const
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ConfigurableUpfrontRateCardItem > & GetRateCards() const
ConfigurableUpfrontPricingTerm & WithCurrencyCode(CurrencyCodeT &&value)
AWS_AGREEMENTSERVICE_API ConfigurableUpfrontPricingTerm()=default
AWS_AGREEMENTSERVICE_API ConfigurableUpfrontPricingTerm(Aws::Utils::Json::JsonView jsonValue)
ConfigurableUpfrontPricingTerm & AddRateCards(RateCardsT &&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