AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/Statement.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 class Statement;
27
36 {
37 public:
38 AWS_WAFV2_API OrStatement();
39 AWS_WAFV2_API OrStatement(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Statement>& GetStatements() const{ return m_statements; }
50 inline bool StatementsHasBeenSet() const { return m_statementsHasBeenSet; }
51 inline void SetStatements(const Aws::Vector<Statement>& value) { m_statementsHasBeenSet = true; m_statements = value; }
52 inline void SetStatements(Aws::Vector<Statement>&& value) { m_statementsHasBeenSet = true; m_statements = std::move(value); }
53 inline OrStatement& WithStatements(const Aws::Vector<Statement>& value) { SetStatements(value); return *this;}
54 inline OrStatement& WithStatements(Aws::Vector<Statement>&& value) { SetStatements(std::move(value)); return *this;}
55 inline OrStatement& AddStatements(const Statement& value) { m_statementsHasBeenSet = true; m_statements.push_back(value); return *this; }
56 inline OrStatement& AddStatements(Statement&& value) { m_statementsHasBeenSet = true; m_statements.push_back(std::move(value)); return *this; }
58 private:
59
60 Aws::Vector<Statement> m_statements;
61 bool m_statementsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace WAFV2
66} // namespace Aws
const Aws::Vector< Statement > & GetStatements() const
Definition OrStatement.h:49
OrStatement & AddStatements(Statement &&value)
Definition OrStatement.h:56
void SetStatements(const Aws::Vector< Statement > &value)
Definition OrStatement.h:51
OrStatement & WithStatements(const Aws::Vector< Statement > &value)
Definition OrStatement.h:53
OrStatement & AddStatements(const Statement &value)
Definition OrStatement.h:55
OrStatement & WithStatements(Aws::Vector< Statement > &&value)
Definition OrStatement.h:54
AWS_WAFV2_API OrStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API OrStatement(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatements(Aws::Vector< Statement > &&value)
Definition OrStatement.h:52
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue