AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AsnMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/model/ForwardedIPConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_WAFV2_API AsnMatchStatement() = default;
44 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline const Aws::Vector<long long>& GetAsnList() const { return m_asnList; }
55 inline bool AsnListHasBeenSet() const { return m_asnListHasBeenSet; }
56 template<typename AsnListT = Aws::Vector<long long>>
57 void SetAsnList(AsnListT&& value) { m_asnListHasBeenSet = true; m_asnList = std::forward<AsnListT>(value); }
58 template<typename AsnListT = Aws::Vector<long long>>
59 AsnMatchStatement& WithAsnList(AsnListT&& value) { SetAsnList(std::forward<AsnListT>(value)); return *this;}
60 inline AsnMatchStatement& AddAsnList(long long value) { m_asnListHasBeenSet = true; m_asnList.push_back(value); return *this; }
62
64
70 inline const ForwardedIPConfig& GetForwardedIPConfig() const { return m_forwardedIPConfig; }
71 inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; }
72 template<typename ForwardedIPConfigT = ForwardedIPConfig>
73 void SetForwardedIPConfig(ForwardedIPConfigT&& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = std::forward<ForwardedIPConfigT>(value); }
74 template<typename ForwardedIPConfigT = ForwardedIPConfig>
75 AsnMatchStatement& WithForwardedIPConfig(ForwardedIPConfigT&& value) { SetForwardedIPConfig(std::forward<ForwardedIPConfigT>(value)); return *this;}
77 private:
78
79 Aws::Vector<long long> m_asnList;
80 bool m_asnListHasBeenSet = false;
81
82 ForwardedIPConfig m_forwardedIPConfig;
83 bool m_forwardedIPConfigHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WAFV2
88} // 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