AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
50 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
51 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
52 inline UsageBasedPricingTerm& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
53 inline UsageBasedPricingTerm& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
54 inline UsageBasedPricingTerm& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
56
58
61 inline const Aws::Vector<UsageBasedRateCardItem>& GetRateCards() const{ return m_rateCards; }
62 inline bool RateCardsHasBeenSet() const { return m_rateCardsHasBeenSet; }
63 inline void SetRateCards(const Aws::Vector<UsageBasedRateCardItem>& value) { m_rateCardsHasBeenSet = true; m_rateCards = value; }
64 inline void SetRateCards(Aws::Vector<UsageBasedRateCardItem>&& value) { m_rateCardsHasBeenSet = true; m_rateCards = std::move(value); }
66 inline UsageBasedPricingTerm& WithRateCards(Aws::Vector<UsageBasedRateCardItem>&& value) { SetRateCards(std::move(value)); return *this;}
67 inline UsageBasedPricingTerm& AddRateCards(const UsageBasedRateCardItem& value) { m_rateCardsHasBeenSet = true; m_rateCards.push_back(value); return *this; }
68 inline UsageBasedPricingTerm& AddRateCards(UsageBasedRateCardItem&& value) { m_rateCardsHasBeenSet = true; m_rateCards.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::String& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
80 inline UsageBasedPricingTerm& WithType(const Aws::String& value) { SetType(value); return *this;}
81 inline UsageBasedPricingTerm& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
82 inline UsageBasedPricingTerm& WithType(const char* value) { SetType(value); return *this;}
84 private:
85
86 Aws::String m_currencyCode;
87 bool m_currencyCodeHasBeenSet = false;
88
90 bool m_rateCardsHasBeenSet = false;
91
92 Aws::String m_type;
93 bool m_typeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace AgreementService
98} // namespace Aws
UsageBasedPricingTerm & WithCurrencyCode(const Aws::String &value)
UsageBasedPricingTerm & WithRateCards(Aws::Vector< UsageBasedRateCardItem > &&value)
UsageBasedPricingTerm & AddRateCards(UsageBasedRateCardItem &&value)
AWS_AGREEMENTSERVICE_API UsageBasedPricingTerm(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< UsageBasedRateCardItem > & GetRateCards() const
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRateCards(Aws::Vector< UsageBasedRateCardItem > &&value)
UsageBasedPricingTerm & WithCurrencyCode(Aws::String &&value)
UsageBasedPricingTerm & AddRateCards(const UsageBasedRateCardItem &value)
void SetRateCards(const Aws::Vector< UsageBasedRateCardItem > &value)
UsageBasedPricingTerm & WithType(Aws::String &&value)
UsageBasedPricingTerm & WithType(const char *value)
UsageBasedPricingTerm & WithType(const Aws::String &value)
UsageBasedPricingTerm & WithCurrencyCode(const char *value)
UsageBasedPricingTerm & WithRateCards(const Aws::Vector< UsageBasedRateCardItem > &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