AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
AsnMatchStatement.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/ForwardedIPConfig.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
35 public:
36 AWS_WAFV2_API AsnMatchStatement() = default;
39 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
48 inline const Aws::Vector<long long>& GetAsnList() const { return m_asnList; }
49 inline bool AsnListHasBeenSet() const { return m_asnListHasBeenSet; }
50 template <typename AsnListT = Aws::Vector<long long>>
51 void SetAsnList(AsnListT&& value) {
52 m_asnListHasBeenSet = true;
53 m_asnList = std::forward<AsnListT>(value);
54 }
55 template <typename AsnListT = Aws::Vector<long long>>
56 AsnMatchStatement& WithAsnList(AsnListT&& value) {
57 SetAsnList(std::forward<AsnListT>(value));
58 return *this;
59 }
60 inline AsnMatchStatement& AddAsnList(long long value) {
61 m_asnListHasBeenSet = true;
62 m_asnList.push_back(value);
63 return *this;
64 }
66
68
74 inline const ForwardedIPConfig& GetForwardedIPConfig() const { return m_forwardedIPConfig; }
75 inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; }
76 template <typename ForwardedIPConfigT = ForwardedIPConfig>
77 void SetForwardedIPConfig(ForwardedIPConfigT&& value) {
78 m_forwardedIPConfigHasBeenSet = true;
79 m_forwardedIPConfig = std::forward<ForwardedIPConfigT>(value);
80 }
81 template <typename ForwardedIPConfigT = ForwardedIPConfig>
82 AsnMatchStatement& WithForwardedIPConfig(ForwardedIPConfigT&& value) {
83 SetForwardedIPConfig(std::forward<ForwardedIPConfigT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<long long> m_asnList;
89
90 ForwardedIPConfig m_forwardedIPConfig;
91 bool m_asnListHasBeenSet = false;
92 bool m_forwardedIPConfigHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace WAFV2
97} // namespace Aws
AWS_WAFV2_API AsnMatchStatement(Aws::Utils::Json::JsonView jsonValue)
void SetForwardedIPConfig(ForwardedIPConfigT &&value)
const ForwardedIPConfig & GetForwardedIPConfig() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AsnMatchStatement & AddAsnList(long long value)
AsnMatchStatement & WithForwardedIPConfig(ForwardedIPConfigT &&value)
AWS_WAFV2_API AsnMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AsnMatchStatement & WithAsnList(AsnListT &&value)
const Aws::Vector< long long > & GetAsnList() const
AWS_WAFV2_API AsnMatchStatement()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue