AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
PriceList.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pricing/Pricing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pricing {
21namespace Model {
22
33class PriceList {
34 public:
35 AWS_PRICING_API PriceList() = default;
36 AWS_PRICING_API PriceList(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PRICING_API PriceList& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::String& GetPriceListArn() const { return m_priceListArn; }
48 inline bool PriceListArnHasBeenSet() const { return m_priceListArnHasBeenSet; }
49 template <typename PriceListArnT = Aws::String>
50 void SetPriceListArn(PriceListArnT&& value) {
51 m_priceListArnHasBeenSet = true;
52 m_priceListArn = std::forward<PriceListArnT>(value);
53 }
54 template <typename PriceListArnT = Aws::String>
55 PriceList& WithPriceListArn(PriceListArnT&& value) {
56 SetPriceListArn(std::forward<PriceListArnT>(value));
57 return *this;
58 }
60
62
71 inline const Aws::String& GetRegionCode() const { return m_regionCode; }
72 inline bool RegionCodeHasBeenSet() const { return m_regionCodeHasBeenSet; }
73 template <typename RegionCodeT = Aws::String>
74 void SetRegionCode(RegionCodeT&& value) {
75 m_regionCodeHasBeenSet = true;
76 m_regionCode = std::forward<RegionCodeT>(value);
77 }
78 template <typename RegionCodeT = Aws::String>
79 PriceList& WithRegionCode(RegionCodeT&& value) {
80 SetRegionCode(std::forward<RegionCodeT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
91 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
92 template <typename CurrencyCodeT = Aws::String>
93 void SetCurrencyCode(CurrencyCodeT&& value) {
94 m_currencyCodeHasBeenSet = true;
95 m_currencyCode = std::forward<CurrencyCodeT>(value);
96 }
97 template <typename CurrencyCodeT = Aws::String>
98 PriceList& WithCurrencyCode(CurrencyCodeT&& value) {
99 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
100 return *this;
101 }
103
105
111 inline const Aws::Vector<Aws::String>& GetFileFormats() const { return m_fileFormats; }
112 inline bool FileFormatsHasBeenSet() const { return m_fileFormatsHasBeenSet; }
113 template <typename FileFormatsT = Aws::Vector<Aws::String>>
114 void SetFileFormats(FileFormatsT&& value) {
115 m_fileFormatsHasBeenSet = true;
116 m_fileFormats = std::forward<FileFormatsT>(value);
117 }
118 template <typename FileFormatsT = Aws::Vector<Aws::String>>
119 PriceList& WithFileFormats(FileFormatsT&& value) {
120 SetFileFormats(std::forward<FileFormatsT>(value));
121 return *this;
122 }
123 template <typename FileFormatsT = Aws::String>
124 PriceList& AddFileFormats(FileFormatsT&& value) {
125 m_fileFormatsHasBeenSet = true;
126 m_fileFormats.emplace_back(std::forward<FileFormatsT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_priceListArn;
132
133 Aws::String m_regionCode;
134
135 Aws::String m_currencyCode;
136
137 Aws::Vector<Aws::String> m_fileFormats;
138 bool m_priceListArnHasBeenSet = false;
139 bool m_regionCodeHasBeenSet = false;
140 bool m_currencyCodeHasBeenSet = false;
141 bool m_fileFormatsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Pricing
146} // namespace Aws
const Aws::String & GetCurrencyCode() const
Definition PriceList.h:90
void SetFileFormats(FileFormatsT &&value)
Definition PriceList.h:114
bool RegionCodeHasBeenSet() const
Definition PriceList.h:72
void SetCurrencyCode(CurrencyCodeT &&value)
Definition PriceList.h:93
PriceList & WithFileFormats(FileFormatsT &&value)
Definition PriceList.h:119
AWS_PRICING_API PriceList & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PRICING_API PriceList()=default
const Aws::Vector< Aws::String > & GetFileFormats() const
Definition PriceList.h:111
PriceList & AddFileFormats(FileFormatsT &&value)
Definition PriceList.h:124
PriceList & WithRegionCode(RegionCodeT &&value)
Definition PriceList.h:79
bool PriceListArnHasBeenSet() const
Definition PriceList.h:48
const Aws::String & GetRegionCode() const
Definition PriceList.h:71
PriceList & WithCurrencyCode(CurrencyCodeT &&value)
Definition PriceList.h:98
PriceList & WithPriceListArn(PriceListArnT &&value)
Definition PriceList.h:55
void SetPriceListArn(PriceListArnT &&value)
Definition PriceList.h:50
const Aws::String & GetPriceListArn() const
Definition PriceList.h:47
void SetRegionCode(RegionCodeT &&value)
Definition PriceList.h:74
AWS_PRICING_API PriceList(Aws::Utils::Json::JsonView jsonValue)
bool CurrencyCodeHasBeenSet() const
Definition PriceList.h:91
AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue