AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UsageBasedPricingTerm.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/UsageBasedRateCardItem.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 UsageBasedPricingTerm() = default;
38 AWS_AGREEMENTSERVICE_API UsageBasedPricingTerm(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API UsageBasedPricingTerm& 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 UsageBasedPricingTerm& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
54
56
59 inline const Aws::Vector<UsageBasedRateCardItem>& GetRateCards() const { return m_rateCards; }
60 inline bool RateCardsHasBeenSet() const { return m_rateCardsHasBeenSet; }
61 template<typename RateCardsT = Aws::Vector<UsageBasedRateCardItem>>
62 void SetRateCards(RateCardsT&& value) { m_rateCardsHasBeenSet = true; m_rateCards = std::forward<RateCardsT>(value); }
63 template<typename RateCardsT = Aws::Vector<UsageBasedRateCardItem>>
64 UsageBasedPricingTerm& WithRateCards(RateCardsT&& value) { SetRateCards(std::forward<RateCardsT>(value)); return *this;}
65 template<typename RateCardsT = UsageBasedRateCardItem>
66 UsageBasedPricingTerm& AddRateCards(RateCardsT&& value) { m_rateCardsHasBeenSet = true; m_rateCards.emplace_back(std::forward<RateCardsT>(value)); return *this; }
68
70
73 inline const Aws::String& GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 template<typename TypeT = Aws::String>
76 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
77 template<typename TypeT = Aws::String>
78 UsageBasedPricingTerm& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
80 private:
81
82 Aws::String m_currencyCode;
83 bool m_currencyCodeHasBeenSet = false;
84
86 bool m_rateCardsHasBeenSet = false;
87
88 Aws::String m_type;
89 bool m_typeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AgreementService
94} // namespace Aws
AWS_AGREEMENTSERVICE_API UsageBasedPricingTerm()=default
UsageBasedPricingTerm & WithRateCards(RateCardsT &&value)
AWS_AGREEMENTSERVICE_API UsageBasedPricingTerm(Aws::Utils::Json::JsonView jsonValue)
UsageBasedPricingTerm & WithType(TypeT &&value)
const Aws::Vector< UsageBasedRateCardItem > & GetRateCards() const
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UsageBasedPricingTerm & AddRateCards(RateCardsT &&value)
UsageBasedPricingTerm & WithCurrencyCode(CurrencyCodeT &&value)
AWS_AGREEMENTSERVICE_API UsageBasedPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue