AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
CryptoConfig.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/PaymentNetwork.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
31 public:
32 AWS_WAFV2_API CryptoConfig() = default;
33 AWS_WAFV2_API CryptoConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::Vector<PaymentNetwork>& GetPaymentNetworks() const { return m_paymentNetworks; }
45 inline bool PaymentNetworksHasBeenSet() const { return m_paymentNetworksHasBeenSet; }
46 template <typename PaymentNetworksT = Aws::Vector<PaymentNetwork>>
47 void SetPaymentNetworks(PaymentNetworksT&& value) {
48 m_paymentNetworksHasBeenSet = true;
49 m_paymentNetworks = std::forward<PaymentNetworksT>(value);
50 }
51 template <typename PaymentNetworksT = Aws::Vector<PaymentNetwork>>
52 CryptoConfig& WithPaymentNetworks(PaymentNetworksT&& value) {
53 SetPaymentNetworks(std::forward<PaymentNetworksT>(value));
54 return *this;
55 }
56 template <typename PaymentNetworksT = PaymentNetwork>
57 CryptoConfig& AddPaymentNetworks(PaymentNetworksT&& value) {
58 m_paymentNetworksHasBeenSet = true;
59 m_paymentNetworks.emplace_back(std::forward<PaymentNetworksT>(value));
60 return *this;
61 }
63 private:
64 Aws::Vector<PaymentNetwork> m_paymentNetworks;
65 bool m_paymentNetworksHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace WAFV2
70} // namespace Aws
CryptoConfig & AddPaymentNetworks(PaymentNetworksT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
CryptoConfig & WithPaymentNetworks(PaymentNetworksT &&value)
const Aws::Vector< PaymentNetwork > & GetPaymentNetworks() const
void SetPaymentNetworks(PaymentNetworksT &&value)
AWS_WAFV2_API CryptoConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API CryptoConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API CryptoConfig()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue