AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConfiguration(const ConfigurableUpfrontPricingTermConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
52 inline void SetConfiguration(ConfigurableUpfrontPricingTermConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
56
58
61 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
62 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
63 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
64 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
65 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
66 inline ConfigurableUpfrontPricingTerm& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
67 inline ConfigurableUpfrontPricingTerm& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
68 inline ConfigurableUpfrontPricingTerm& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
70
72
75 inline const Aws::Vector<ConfigurableUpfrontRateCardItem>& GetRateCards() const{ return m_rateCards; }
76 inline bool RateCardsHasBeenSet() const { return m_rateCardsHasBeenSet; }
77 inline void SetRateCards(const Aws::Vector<ConfigurableUpfrontRateCardItem>& value) { m_rateCardsHasBeenSet = true; m_rateCards = value; }
78 inline void SetRateCards(Aws::Vector<ConfigurableUpfrontRateCardItem>&& value) { m_rateCardsHasBeenSet = true; m_rateCards = std::move(value); }
81 inline ConfigurableUpfrontPricingTerm& AddRateCards(const ConfigurableUpfrontRateCardItem& value) { m_rateCardsHasBeenSet = true; m_rateCards.push_back(value); return *this; }
82 inline ConfigurableUpfrontPricingTerm& AddRateCards(ConfigurableUpfrontRateCardItem&& value) { m_rateCardsHasBeenSet = true; m_rateCards.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::String& GetType() const{ return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
92 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
94 inline ConfigurableUpfrontPricingTerm& WithType(const Aws::String& value) { SetType(value); return *this;}
95 inline ConfigurableUpfrontPricingTerm& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
96 inline ConfigurableUpfrontPricingTerm& WithType(const char* value) { SetType(value); return *this;}
98 private:
99
101 bool m_configurationHasBeenSet = false;
102
103 Aws::String m_currencyCode;
104 bool m_currencyCodeHasBeenSet = false;
105
107 bool m_rateCardsHasBeenSet = false;
108
109 Aws::String m_type;
110 bool m_typeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AgreementService
115} // namespace Aws
ConfigurableUpfrontPricingTerm & WithConfiguration(const ConfigurableUpfrontPricingTermConfiguration &value)
ConfigurableUpfrontPricingTerm & WithRateCards(const Aws::Vector< ConfigurableUpfrontRateCardItem > &value)
ConfigurableUpfrontPricingTerm & AddRateCards(ConfigurableUpfrontRateCardItem &&value)
AWS_AGREEMENTSERVICE_API ConfigurableUpfrontPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConfigurableUpfrontPricingTermConfiguration & GetConfiguration() const
ConfigurableUpfrontPricingTerm & WithConfiguration(ConfigurableUpfrontPricingTermConfiguration &&value)
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRateCards(Aws::Vector< ConfigurableUpfrontRateCardItem > &&value)
void SetRateCards(const Aws::Vector< ConfigurableUpfrontRateCardItem > &value)
void SetConfiguration(const ConfigurableUpfrontPricingTermConfiguration &value)
const Aws::Vector< ConfigurableUpfrontRateCardItem > & GetRateCards() const
AWS_AGREEMENTSERVICE_API ConfigurableUpfrontPricingTerm(Aws::Utils::Json::JsonView jsonValue)
ConfigurableUpfrontPricingTerm & WithType(const char *value)
ConfigurableUpfrontPricingTerm & WithRateCards(Aws::Vector< ConfigurableUpfrontRateCardItem > &&value)
ConfigurableUpfrontPricingTerm & WithCurrencyCode(Aws::String &&value)
ConfigurableUpfrontPricingTerm & WithCurrencyCode(const char *value)
ConfigurableUpfrontPricingTerm & WithType(Aws::String &&value)
ConfigurableUpfrontPricingTerm & AddRateCards(const ConfigurableUpfrontRateCardItem &value)
ConfigurableUpfrontPricingTerm & WithCurrencyCode(const Aws::String &value)
ConfigurableUpfrontPricingTerm & WithType(const Aws::String &value)
void SetConfiguration(ConfigurableUpfrontPricingTermConfiguration &&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