AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
NotStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSAllocator.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAFV2 {
20namespace Model {
21class Statement;
22
31 public:
32 AWS_WAFV2_API NotStatement() = default;
33 AWS_WAFV2_API NotStatement(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Statement& GetStatement() const { return *m_statement; }
42 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
43 template <typename StatementT = Statement>
44 void SetStatement(StatementT&& value) {
45 m_statementHasBeenSet = true;
46 m_statement = Aws::MakeShared<Statement>("NotStatement", std::forward<StatementT>(value));
47 }
48 template <typename StatementT = Statement>
49 NotStatement& WithStatement(StatementT&& value) {
50 SetStatement(std::forward<StatementT>(value));
51 return *this;
52 }
54 private:
55 std::shared_ptr<Statement> m_statement;
56 bool m_statementHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace WAFV2
61} // namespace Aws
NotStatement & WithStatement(StatementT &&value)
void SetStatement(StatementT &&value)
AWS_WAFV2_API NotStatement()=default
AWS_WAFV2_API NotStatement(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API NotStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Statement & GetStatement() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue