AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AddPolicyStatementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/entityresolution/EntityResolutionRequest.h>
10#include <aws/entityresolution/EntityResolution_EXPORTS.h>
11#include <aws/entityresolution/model/StatementEffect.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EntityResolution {
17namespace Model {
18
22 public:
23 AWS_ENTITYRESOLUTION_API AddPolicyStatementRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AddPolicyStatement"; }
30
31 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetArn() const { return m_arn; }
39 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetStatementId() const { return m_statementId; }
58 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
59 template <typename StatementIdT = Aws::String>
60 void SetStatementId(StatementIdT&& value) {
61 m_statementIdHasBeenSet = true;
62 m_statementId = std::forward<StatementIdT>(value);
63 }
64 template <typename StatementIdT = Aws::String>
66 SetStatementId(std::forward<StatementIdT>(value));
67 return *this;
68 }
70
72
80 inline StatementEffect GetEffect() const { return m_effect; }
81 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
82 inline void SetEffect(StatementEffect value) {
83 m_effectHasBeenSet = true;
84 m_effect = value;
85 }
87 SetEffect(value);
88 return *this;
89 }
91
93
98 inline const Aws::Vector<Aws::String>& GetAction() const { return m_action; }
99 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
100 template <typename ActionT = Aws::Vector<Aws::String>>
101 void SetAction(ActionT&& value) {
102 m_actionHasBeenSet = true;
103 m_action = std::forward<ActionT>(value);
104 }
105 template <typename ActionT = Aws::Vector<Aws::String>>
107 SetAction(std::forward<ActionT>(value));
108 return *this;
109 }
110 template <typename ActionT = Aws::String>
112 m_actionHasBeenSet = true;
113 m_action.emplace_back(std::forward<ActionT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Vector<Aws::String>& GetPrincipal() const { return m_principal; }
124 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
125 template <typename PrincipalT = Aws::Vector<Aws::String>>
126 void SetPrincipal(PrincipalT&& value) {
127 m_principalHasBeenSet = true;
128 m_principal = std::forward<PrincipalT>(value);
129 }
130 template <typename PrincipalT = Aws::Vector<Aws::String>>
132 SetPrincipal(std::forward<PrincipalT>(value));
133 return *this;
134 }
135 template <typename PrincipalT = Aws::String>
137 m_principalHasBeenSet = true;
138 m_principal.emplace_back(std::forward<PrincipalT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetCondition() const { return m_condition; }
148 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
149 template <typename ConditionT = Aws::String>
150 void SetCondition(ConditionT&& value) {
151 m_conditionHasBeenSet = true;
152 m_condition = std::forward<ConditionT>(value);
153 }
154 template <typename ConditionT = Aws::String>
156 SetCondition(std::forward<ConditionT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_arn;
162
163 Aws::String m_statementId;
164
166
168
169 Aws::Vector<Aws::String> m_principal;
170
171 Aws::String m_condition;
172 bool m_arnHasBeenSet = false;
173 bool m_statementIdHasBeenSet = false;
174 bool m_effectHasBeenSet = false;
175 bool m_actionHasBeenSet = false;
176 bool m_principalHasBeenSet = false;
177 bool m_conditionHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace EntityResolution
182} // namespace Aws
AddPolicyStatementRequest & WithCondition(ConditionT &&value)
AddPolicyStatementRequest & WithEffect(StatementEffect value)
AddPolicyStatementRequest & WithStatementId(StatementIdT &&value)
AddPolicyStatementRequest & AddPrincipal(PrincipalT &&value)
AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override
AddPolicyStatementRequest & WithAction(ActionT &&value)
AddPolicyStatementRequest & AddAction(ActionT &&value)
AddPolicyStatementRequest & WithPrincipal(PrincipalT &&value)
AWS_ENTITYRESOLUTION_API AddPolicyStatementRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector