AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
ConnectedAccountConfig.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/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/ConnectedAccountChainConfig.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
46 public:
47 AWS_WAFV2_API ConnectedAccountConfig() = default;
50 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
51
53
64 inline const Aws::String& GetConnectedAccountArn() const { return m_connectedAccountArn; }
65 inline bool ConnectedAccountArnHasBeenSet() const { return m_connectedAccountArnHasBeenSet; }
66 template <typename ConnectedAccountArnT = Aws::String>
67 void SetConnectedAccountArn(ConnectedAccountArnT&& value) {
68 m_connectedAccountArnHasBeenSet = true;
69 m_connectedAccountArn = std::forward<ConnectedAccountArnT>(value);
70 }
71 template <typename ConnectedAccountArnT = Aws::String>
72 ConnectedAccountConfig& WithConnectedAccountArn(ConnectedAccountArnT&& value) {
73 SetConnectedAccountArn(std::forward<ConnectedAccountArnT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<ConnectedAccountChainConfig>& GetPaymentNetworks() const { return m_paymentNetworks; }
85 inline bool PaymentNetworksHasBeenSet() const { return m_paymentNetworksHasBeenSet; }
86 template <typename PaymentNetworksT = Aws::Vector<ConnectedAccountChainConfig>>
87 void SetPaymentNetworks(PaymentNetworksT&& value) {
88 m_paymentNetworksHasBeenSet = true;
89 m_paymentNetworks = std::forward<PaymentNetworksT>(value);
90 }
91 template <typename PaymentNetworksT = Aws::Vector<ConnectedAccountChainConfig>>
92 ConnectedAccountConfig& WithPaymentNetworks(PaymentNetworksT&& value) {
93 SetPaymentNetworks(std::forward<PaymentNetworksT>(value));
94 return *this;
95 }
96 template <typename PaymentNetworksT = ConnectedAccountChainConfig>
97 ConnectedAccountConfig& AddPaymentNetworks(PaymentNetworksT&& value) {
98 m_paymentNetworksHasBeenSet = true;
99 m_paymentNetworks.emplace_back(std::forward<PaymentNetworksT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_connectedAccountArn;
105
107 bool m_connectedAccountArnHasBeenSet = false;
108 bool m_paymentNetworksHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace WAFV2
113} // namespace Aws
ConnectedAccountConfig & WithConnectedAccountArn(ConnectedAccountArnT &&value)
ConnectedAccountConfig & WithPaymentNetworks(PaymentNetworksT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ConnectedAccountConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ConnectedAccountChainConfig > & GetPaymentNetworks() const
void SetPaymentNetworks(PaymentNetworksT &&value)
void SetConnectedAccountArn(ConnectedAccountArnT &&value)
AWS_WAFV2_API ConnectedAccountConfig()=default
AWS_WAFV2_API ConnectedAccountConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectedAccountConfig & AddPaymentNetworks(PaymentNetworksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue