AWS SDK for C++  1.9.108
AWS SDK for C++
AndStatement.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
47  inline const Aws::Vector<Statement>& GetStatements() const{ return m_statements; }
48 
53  inline bool StatementsHasBeenSet() const { return m_statementsHasBeenSet; }
54 
59  inline void SetStatements(const Aws::Vector<Statement>& value) { m_statementsHasBeenSet = true; m_statements = value; }
60 
65  inline void SetStatements(Aws::Vector<Statement>&& value) { m_statementsHasBeenSet = true; m_statements = std::move(value); }
66 
71  inline AndStatement& WithStatements(const Aws::Vector<Statement>& value) { SetStatements(value); return *this;}
72 
77  inline AndStatement& WithStatements(Aws::Vector<Statement>&& value) { SetStatements(std::move(value)); return *this;}
78 
83  inline AndStatement& AddStatements(const Statement& value) { m_statementsHasBeenSet = true; m_statements.push_back(value); return *this; }
84 
89  inline AndStatement& AddStatements(Statement&& value) { m_statementsHasBeenSet = true; m_statements.push_back(std::move(value)); return *this; }
90 
91  private:
92 
93  Aws::Vector<Statement> m_statements;
94  bool m_statementsHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace WAFV2
99 } // namespace Aws
Statement.h
Aws::WAFV2::Model::AndStatement::GetStatements
const Aws::Vector< Statement > & GetStatements() const
Definition: AndStatement.h:47
Aws::WAFV2::Model::AndStatement::AndStatement
AndStatement()
Aws::WAFV2::Model::AndStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::AndStatement::StatementsHasBeenSet
bool StatementsHasBeenSet() const
Definition: AndStatement.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::AndStatement::WithStatements
AndStatement & WithStatements(Aws::Vector< Statement > &&value)
Definition: AndStatement.h:77
Aws::WAFV2::Model::AndStatement::AddStatements
AndStatement & AddStatements(const Statement &value)
Definition: AndStatement.h:83
AWSVector.h
Aws::WAFV2::Model::AndStatement::SetStatements
void SetStatements(const Aws::Vector< Statement > &value)
Definition: AndStatement.h:59
WAFV2_EXPORTS.h
Aws::WAFV2::Model::AndStatement::AddStatements
AndStatement & AddStatements(Statement &&value)
Definition: AndStatement.h:89
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::Statement
Definition: Statement.h:48
Aws::WAFV2::Model::AndStatement::AndStatement
AndStatement(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::AndStatement
Definition: AndStatement.h:35
Aws::WAFV2::Model::AndStatement::operator=
AndStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::AndStatement::WithStatements
AndStatement & WithStatements(const Aws::Vector< Statement > &value)
Definition: AndStatement.h:71
Aws::WAFV2::Model::AndStatement::SetStatements
void SetStatements(Aws::Vector< Statement > &&value)
Definition: AndStatement.h:65