AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyStatement.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/AcceptAction.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mailmanager/model/PolicyCondition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MailManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MAILMANAGER_API PolicyStatement();
38 AWS_MAILMANAGER_API PolicyStatement(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API PolicyStatement& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const AcceptAction& GetAction() const{ return m_action; }
49 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 inline void SetAction(const AcceptAction& value) { m_actionHasBeenSet = true; m_action = value; }
51 inline void SetAction(AcceptAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
52 inline PolicyStatement& WithAction(const AcceptAction& value) { SetAction(value); return *this;}
53 inline PolicyStatement& WithAction(AcceptAction&& value) { SetAction(std::move(value)); return *this;}
55
57
61 inline const Aws::Vector<PolicyCondition>& GetConditions() const{ return m_conditions; }
62 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
63 inline void SetConditions(const Aws::Vector<PolicyCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
64 inline void SetConditions(Aws::Vector<PolicyCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
65 inline PolicyStatement& WithConditions(const Aws::Vector<PolicyCondition>& value) { SetConditions(value); return *this;}
66 inline PolicyStatement& WithConditions(Aws::Vector<PolicyCondition>&& value) { SetConditions(std::move(value)); return *this;}
67 inline PolicyStatement& AddConditions(const PolicyCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
68 inline PolicyStatement& AddConditions(PolicyCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
70 private:
71
72 AcceptAction m_action;
73 bool m_actionHasBeenSet = false;
74
76 bool m_conditionsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MailManager
81} // namespace Aws
const Aws::Vector< PolicyCondition > & GetConditions() const
PolicyStatement & AddConditions(const PolicyCondition &value)
PolicyStatement & WithAction(AcceptAction &&value)
PolicyStatement & WithConditions(Aws::Vector< PolicyCondition > &&value)
AWS_MAILMANAGER_API PolicyStatement(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyStatement & WithAction(const AcceptAction &value)
void SetAction(const AcceptAction &value)
const AcceptAction & GetAction() const
PolicyStatement & WithConditions(const Aws::Vector< PolicyCondition > &value)
AWS_MAILMANAGER_API PolicyStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyStatement & AddConditions(PolicyCondition &&value)
void SetConditions(const Aws::Vector< PolicyCondition > &value)
void SetConditions(Aws::Vector< PolicyCondition > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue