AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LabelMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/LabelMatchScope.h>
9#include <aws/core/utils/memory/stl/AWSString.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
42 {
43 public:
44 AWS_WAFV2_API LabelMatchStatement() = default;
47 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline LabelMatchScope GetScope() const { return m_scope; }
56 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
57 inline void SetScope(LabelMatchScope value) { m_scopeHasBeenSet = true; m_scope = value; }
58 inline LabelMatchStatement& WithScope(LabelMatchScope value) { SetScope(value); return *this;}
60
62
75 inline const Aws::String& GetKey() const { return m_key; }
76 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
77 template<typename KeyT = Aws::String>
78 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
79 template<typename KeyT = Aws::String>
80 LabelMatchStatement& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
82 private:
83
85 bool m_scopeHasBeenSet = false;
86
87 Aws::String m_key;
88 bool m_keyHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace WAFV2
93} // namespace Aws
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API LabelMatchStatement(Aws::Utils::Json::JsonView jsonValue)
LabelMatchStatement & WithKey(KeyT &&value)
LabelMatchStatement & WithScope(LabelMatchScope value)
AWS_WAFV2_API LabelMatchStatement()=default
AWS_WAFV2_API LabelMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue