AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
47 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const LabelMatchScope& GetScope() const{ return m_scope; }
56 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
57 inline void SetScope(const LabelMatchScope& value) { m_scopeHasBeenSet = true; m_scope = value; }
58 inline void SetScope(LabelMatchScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
59 inline LabelMatchStatement& WithScope(const LabelMatchScope& value) { SetScope(value); return *this;}
60 inline LabelMatchStatement& WithScope(LabelMatchScope&& value) { SetScope(std::move(value)); return *this;}
62
64
77 inline const Aws::String& GetKey() const{ return m_key; }
78 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
79 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
80 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
81 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
82 inline LabelMatchStatement& WithKey(const Aws::String& value) { SetKey(value); return *this;}
83 inline LabelMatchStatement& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
84 inline LabelMatchStatement& WithKey(const char* value) { SetKey(value); return *this;}
86 private:
87
88 LabelMatchScope m_scope;
89 bool m_scopeHasBeenSet = false;
90
91 Aws::String m_key;
92 bool m_keyHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace WAFV2
97} // namespace Aws
LabelMatchStatement & WithKey(const Aws::String &value)
LabelMatchStatement & WithScope(const LabelMatchScope &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScope(LabelMatchScope &&value)
AWS_WAFV2_API LabelMatchStatement(Aws::Utils::Json::JsonView jsonValue)
void SetScope(const LabelMatchScope &value)
LabelMatchStatement & WithScope(LabelMatchScope &&value)
LabelMatchStatement & WithKey(Aws::String &&value)
LabelMatchStatement & WithKey(const char *value)
AWS_WAFV2_API LabelMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
const LabelMatchScope & GetScope() const
void SetKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue