AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddPolicyStatementRequest.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/entityresolution/EntityResolutionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/entityresolution/model/StatementEffect.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EntityResolution
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ENTITYRESOLUTION_API AddPolicyStatementRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AddPolicyStatement"; }
33
34 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template<typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
46 template<typename ArnT = Aws::String>
47 AddPolicyStatementRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
49
51
55 inline const Aws::String& GetStatementId() const { return m_statementId; }
56 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
57 template<typename StatementIdT = Aws::String>
58 void SetStatementId(StatementIdT&& value) { m_statementIdHasBeenSet = true; m_statementId = std::forward<StatementIdT>(value); }
59 template<typename StatementIdT = Aws::String>
60 AddPolicyStatementRequest& WithStatementId(StatementIdT&& value) { SetStatementId(std::forward<StatementIdT>(value)); return *this;}
62
64
72 inline StatementEffect GetEffect() const { return m_effect; }
73 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
74 inline void SetEffect(StatementEffect value) { m_effectHasBeenSet = true; m_effect = value; }
75 inline AddPolicyStatementRequest& WithEffect(StatementEffect value) { SetEffect(value); return *this;}
77
79
84 inline const Aws::Vector<Aws::String>& GetAction() const { return m_action; }
85 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
86 template<typename ActionT = Aws::Vector<Aws::String>>
87 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
88 template<typename ActionT = Aws::Vector<Aws::String>>
89 AddPolicyStatementRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
90 template<typename ActionT = Aws::String>
91 AddPolicyStatementRequest& AddAction(ActionT&& value) { m_actionHasBeenSet = true; m_action.emplace_back(std::forward<ActionT>(value)); return *this; }
93
95
99 inline const Aws::Vector<Aws::String>& GetPrincipal() const { return m_principal; }
100 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
101 template<typename PrincipalT = Aws::Vector<Aws::String>>
102 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
103 template<typename PrincipalT = Aws::Vector<Aws::String>>
104 AddPolicyStatementRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
105 template<typename PrincipalT = Aws::String>
106 AddPolicyStatementRequest& AddPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal.emplace_back(std::forward<PrincipalT>(value)); return *this; }
108
110
113 inline const Aws::String& GetCondition() const { return m_condition; }
114 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
115 template<typename ConditionT = Aws::String>
116 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet = true; m_condition = std::forward<ConditionT>(value); }
117 template<typename ConditionT = Aws::String>
118 AddPolicyStatementRequest& WithCondition(ConditionT&& value) { SetCondition(std::forward<ConditionT>(value)); return *this;}
120 private:
121
122 Aws::String m_arn;
123 bool m_arnHasBeenSet = false;
124
125 Aws::String m_statementId;
126 bool m_statementIdHasBeenSet = false;
127
129 bool m_effectHasBeenSet = false;
130
132 bool m_actionHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_principal;
135 bool m_principalHasBeenSet = false;
136
137 Aws::String m_condition;
138 bool m_conditionHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EntityResolution
143} // 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)
const Aws::Vector< Aws::String > & GetPrincipal() const
AWS_ENTITYRESOLUTION_API AddPolicyStatementRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector