AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
PricingTerm.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock/model/DimensionalPriceRate.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCK_API PricingTerm() = default;
36 AWS_BEDROCK_API PricingTerm(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<DimensionalPriceRate>& GetRateCard() const { return m_rateCard; }
46 inline bool RateCardHasBeenSet() const { return m_rateCardHasBeenSet; }
47 template<typename RateCardT = Aws::Vector<DimensionalPriceRate>>
48 void SetRateCard(RateCardT&& value) { m_rateCardHasBeenSet = true; m_rateCard = std::forward<RateCardT>(value); }
49 template<typename RateCardT = Aws::Vector<DimensionalPriceRate>>
50 PricingTerm& WithRateCard(RateCardT&& value) { SetRateCard(std::forward<RateCardT>(value)); return *this;}
51 template<typename RateCardT = DimensionalPriceRate>
52 PricingTerm& AddRateCard(RateCardT&& value) { m_rateCardHasBeenSet = true; m_rateCard.emplace_back(std::forward<RateCardT>(value)); return *this; }
54 private:
55
57 bool m_rateCardHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Bedrock
62} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API PricingTerm()=default
PricingTerm & WithRateCard(RateCardT &&value)
Definition PricingTerm.h:50
const Aws::Vector< DimensionalPriceRate > & GetRateCard() const
Definition PricingTerm.h:45
AWS_BEDROCK_API PricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
PricingTerm & AddRateCard(RateCardT &&value)
Definition PricingTerm.h:52
void SetRateCard(RateCardT &&value)
Definition PricingTerm.h:48
AWS_BEDROCK_API PricingTerm(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue