AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PricingTerm.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/DimensionalPriceRate.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
29 public:
30 AWS_BEDROCK_API PricingTerm() = default;
33 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<DimensionalPriceRate>& GetRateCard() const { return m_rateCard; }
40 inline bool RateCardHasBeenSet() const { return m_rateCardHasBeenSet; }
41 template <typename RateCardT = Aws::Vector<DimensionalPriceRate>>
42 void SetRateCard(RateCardT&& value) {
43 m_rateCardHasBeenSet = true;
44 m_rateCard = std::forward<RateCardT>(value);
45 }
46 template <typename RateCardT = Aws::Vector<DimensionalPriceRate>>
48 SetRateCard(std::forward<RateCardT>(value));
49 return *this;
50 }
51 template <typename RateCardT = DimensionalPriceRate>
53 m_rateCardHasBeenSet = true;
54 m_rateCard.emplace_back(std::forward<RateCardT>(value));
55 return *this;
56 }
58 private:
60 bool m_rateCardHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace Bedrock
65} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API PricingTerm()=default
PricingTerm & WithRateCard(RateCardT &&value)
Definition PricingTerm.h:47
const Aws::Vector< DimensionalPriceRate > & GetRateCard() const
Definition PricingTerm.h:39
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:42
AWS_BEDROCK_API PricingTerm(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue