6
6
#pragma once
7
7
#include < aws/entityresolution/EntityResolution_EXPORTS.h>
8
8
#include < aws/entityresolution/EntityResolutionRequest.h>
9
- #include < aws/core/utils/memory/stl/AWSVector.h>
10
9
#include < aws/core/utils/memory/stl/AWSString.h>
11
10
#include < aws/entityresolution/model/StatementEffect.h>
11
+ #include < aws/core/utils/memory/stl/AWSVector.h>
12
12
#include < utility>
13
13
14
14
namespace Aws
@@ -34,22 +34,6 @@ namespace Model
34
34
AWS_ENTITYRESOLUTION_API Aws::String SerializePayload () const override ;
35
35
36
36
37
- // /@{
38
- /* *
39
- * <p>The action that the principal can use on the resource. </p> <p>For example,
40
- * <code>entityresolution:GetIdMappingJob</code>,
41
- * <code>entityresolution:GetMatchingJob</code>.</p>
42
- */
43
- inline const Aws::Vector<Aws::String>& GetAction () const { return m_action; }
44
- inline bool ActionHasBeenSet () const { return m_actionHasBeenSet; }
45
- template <typename ActionT = Aws::Vector<Aws::String>>
46
- void SetAction (ActionT&& value) { m_actionHasBeenSet = true ; m_action = std::forward<ActionT>(value); }
47
- template <typename ActionT = Aws::Vector<Aws::String>>
48
- AddPolicyStatementRequest& WithAction (ActionT&& value) { SetAction (std::forward<ActionT>(value)); return *this ;}
49
- template <typename ActionT = Aws::String>
50
- AddPolicyStatementRequest& AddAction (ActionT&& value) { m_actionHasBeenSet = true ; m_action.emplace_back (std::forward<ActionT>(value)); return *this ; }
51
- // /@}
52
-
53
37
// /@{
54
38
/* *
55
39
* <p>The Amazon Resource Name (ARN) of the resource that will be accessed by the
@@ -65,14 +49,15 @@ namespace Model
65
49
66
50
// /@{
67
51
/* *
68
- * <p>A set of condition keys that you can use in key policies.</p>
52
+ * <p>A statement identifier that differentiates the statement from others in the
53
+ * same policy.</p>
69
54
*/
70
- inline const Aws::String& GetCondition () const { return m_condition ; }
71
- inline bool ConditionHasBeenSet () const { return m_conditionHasBeenSet ; }
72
- template <typename ConditionT = Aws::String>
73
- void SetCondition (ConditionT && value) { m_conditionHasBeenSet = true ; m_condition = std::forward<ConditionT >(value); }
74
- template <typename ConditionT = Aws::String>
75
- AddPolicyStatementRequest& WithCondition (ConditionT && value) { SetCondition (std::forward<ConditionT >(value)); return *this ;}
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 ;}
76
61
// /@}
77
62
78
63
// /@{
@@ -90,6 +75,22 @@ namespace Model
90
75
inline AddPolicyStatementRequest& WithEffect (StatementEffect value) { SetEffect (value); return *this ;}
91
76
// /@}
92
77
78
+ // /@{
79
+ /* *
80
+ * <p>The action that the principal can use on the resource. </p> <p>For example,
81
+ * <code>entityresolution:GetIdMappingJob</code>,
82
+ * <code>entityresolution:GetMatchingJob</code>.</p>
83
+ */
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 ; }
92
+ // /@}
93
+
93
94
// /@{
94
95
/* *
95
96
* <p>The Amazon Web Services service or Amazon Web Services account that can
@@ -107,35 +108,34 @@ namespace Model
107
108
108
109
// /@{
109
110
/* *
110
- * <p>A statement identifier that differentiates the statement from others in the
111
- * same policy.</p>
111
+ * <p>A set of condition keys that you can use in key policies.</p>
112
112
*/
113
- inline const Aws::String& GetStatementId () const { return m_statementId ; }
114
- inline bool StatementIdHasBeenSet () const { return m_statementIdHasBeenSet ; }
115
- template <typename StatementIdT = Aws::String>
116
- void SetStatementId (StatementIdT && value) { m_statementIdHasBeenSet = true ; m_statementId = std::forward<StatementIdT >(value); }
117
- template <typename StatementIdT = Aws::String>
118
- AddPolicyStatementRequest& WithStatementId (StatementIdT && value) { SetStatementId (std::forward<StatementIdT >(value)); return *this ;}
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 ;}
119
119
// /@}
120
120
private:
121
121
122
- Aws::Vector<Aws::String> m_action;
123
- bool m_actionHasBeenSet = false ;
124
-
125
122
Aws::String m_arn;
126
123
bool m_arnHasBeenSet = false ;
127
124
128
- Aws::String m_condition ;
129
- bool m_conditionHasBeenSet = false ;
125
+ Aws::String m_statementId ;
126
+ bool m_statementIdHasBeenSet = false ;
130
127
131
128
StatementEffect m_effect{StatementEffect::NOT_SET};
132
129
bool m_effectHasBeenSet = false ;
133
130
131
+ Aws::Vector<Aws::String> m_action;
132
+ bool m_actionHasBeenSet = false ;
133
+
134
134
Aws::Vector<Aws::String> m_principal;
135
135
bool m_principalHasBeenSet = false ;
136
136
137
- Aws::String m_statementId ;
138
- bool m_statementIdHasBeenSet = false ;
137
+ Aws::String m_condition ;
138
+ bool m_conditionHasBeenSet = false ;
139
139
};
140
140
141
141
} // namespace Model
0 commit comments