AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
LabelMatchStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/LabelMatchScope.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
38 public:
39 AWS_WAFV2_API LabelMatchStatement() = default;
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline LabelMatchScope GetScope() const { return m_scope; }
50 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
51 inline void SetScope(LabelMatchScope value) {
52 m_scopeHasBeenSet = true;
53 m_scope = value;
54 }
56 SetScope(value);
57 return *this;
58 }
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) {
79 m_keyHasBeenSet = true;
80 m_key = std::forward<KeyT>(value);
81 }
82 template <typename KeyT = Aws::String>
84 SetKey(std::forward<KeyT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::String m_key;
92 bool m_scopeHasBeenSet = false;
93 bool m_keyHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace WAFV2
98} // 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