AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AndStatement.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 AndStatement();
39 AWS_WAFV2_API AndStatement(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 AndStatement& WithStatements(const Aws::Vector<Statement>& value) { SetStatements(value); return *this;}
54 inline AndStatement& WithStatements(Aws::Vector<Statement>&& value) { SetStatements(std::move(value)); return *this;}
55 inline AndStatement& AddStatements(const Statement& value) { m_statementsHasBeenSet = true; m_statements.push_back(value); return *this; }
56 inline AndStatement& 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
AndStatement & AddStatements(const Statement &value)
AWS_WAFV2_API AndStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AndStatement & WithStatements(const Aws::Vector< Statement > &value)
AndStatement & AddStatements(Statement &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatements(const Aws::Vector< Statement > &value)
void SetStatements(Aws::Vector< Statement > &&value)
const Aws::Vector< Statement > & GetStatements() const
AndStatement & WithStatements(Aws::Vector< Statement > &&value)
AWS_WAFV2_API AndStatement(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue