AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ConnectedAccountChainConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/ConnectedAccountChain.h>
10#include <aws/wafv2/model/ConnectedAccountPrice.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
33 public:
34 AWS_WAFV2_API ConnectedAccountChainConfig() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline ConnectedAccountChain GetChain() const { return m_chain; }
47 inline bool ChainHasBeenSet() const { return m_chainHasBeenSet; }
48 inline void SetChain(ConnectedAccountChain value) {
49 m_chainHasBeenSet = true;
50 m_chain = value;
51 }
53 SetChain(value);
54 return *this;
55 }
57
59
63 inline const Aws::Vector<ConnectedAccountPrice>& GetPrices() const { return m_prices; }
64 inline bool PricesHasBeenSet() const { return m_pricesHasBeenSet; }
65 template <typename PricesT = Aws::Vector<ConnectedAccountPrice>>
66 void SetPrices(PricesT&& value) {
67 m_pricesHasBeenSet = true;
68 m_prices = std::forward<PricesT>(value);
69 }
70 template <typename PricesT = Aws::Vector<ConnectedAccountPrice>>
72 SetPrices(std::forward<PricesT>(value));
73 return *this;
74 }
75 template <typename PricesT = ConnectedAccountPrice>
77 m_pricesHasBeenSet = true;
78 m_prices.emplace_back(std::forward<PricesT>(value));
79 return *this;
80 }
82 private:
84
86 bool m_chainHasBeenSet = false;
87 bool m_pricesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace WAFV2
92} // namespace Aws
ConnectedAccountChainConfig & WithChain(ConnectedAccountChain value)
const Aws::Vector< ConnectedAccountPrice > & GetPrices() const
AWS_WAFV2_API ConnectedAccountChainConfig()=default
AWS_WAFV2_API ConnectedAccountChainConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectedAccountChainConfig & WithPrices(PricesT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ConnectedAccountChainConfig(Aws::Utils::Json::JsonView jsonValue)
ConnectedAccountChainConfig & AddPrices(PricesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue