AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddPermissionRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/FunctionUrlAuthType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Lambda
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_LAMBDA_API AddPermissionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AddPermission"; }
36
37 AWS_LAMBDA_API Aws::String SerializePayload() const override;
38
39 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
55 inline const Aws::String& GetFunctionName() const { return m_functionName; }
56 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
57 template<typename FunctionNameT = Aws::String>
58 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
59 template<typename FunctionNameT = Aws::String>
60 AddPermissionRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
62
64
68 inline const Aws::String& GetStatementId() const { return m_statementId; }
69 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
70 template<typename StatementIdT = Aws::String>
71 void SetStatementId(StatementIdT&& value) { m_statementIdHasBeenSet = true; m_statementId = std::forward<StatementIdT>(value); }
72 template<typename StatementIdT = Aws::String>
73 AddPermissionRequest& WithStatementId(StatementIdT&& value) { SetStatementId(std::forward<StatementIdT>(value)); return *this;}
75
77
81 inline const Aws::String& GetAction() const { return m_action; }
82 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
83 template<typename ActionT = Aws::String>
84 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
85 template<typename ActionT = Aws::String>
86 AddPermissionRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
88
90
96 inline const Aws::String& GetPrincipal() const { return m_principal; }
97 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
98 template<typename PrincipalT = Aws::String>
99 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
100 template<typename PrincipalT = Aws::String>
101 AddPermissionRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
103
105
111 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
112 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
113 template<typename SourceArnT = Aws::String>
114 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
115 template<typename SourceArnT = Aws::String>
116 AddPermissionRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
118
120
126 inline const Aws::String& GetSourceAccount() const { return m_sourceAccount; }
127 inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; }
128 template<typename SourceAccountT = Aws::String>
129 void SetSourceAccount(SourceAccountT&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::forward<SourceAccountT>(value); }
130 template<typename SourceAccountT = Aws::String>
131 AddPermissionRequest& WithSourceAccount(SourceAccountT&& value) { SetSourceAccount(std::forward<SourceAccountT>(value)); return *this;}
133
135
138 inline const Aws::String& GetEventSourceToken() const { return m_eventSourceToken; }
139 inline bool EventSourceTokenHasBeenSet() const { return m_eventSourceTokenHasBeenSet; }
140 template<typename EventSourceTokenT = Aws::String>
141 void SetEventSourceToken(EventSourceTokenT&& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = std::forward<EventSourceTokenT>(value); }
142 template<typename EventSourceTokenT = Aws::String>
143 AddPermissionRequest& WithEventSourceToken(EventSourceTokenT&& value) { SetEventSourceToken(std::forward<EventSourceTokenT>(value)); return *this;}
145
147
151 inline const Aws::String& GetQualifier() const { return m_qualifier; }
152 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
153 template<typename QualifierT = Aws::String>
154 void SetQualifier(QualifierT&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::forward<QualifierT>(value); }
155 template<typename QualifierT = Aws::String>
156 AddPermissionRequest& WithQualifier(QualifierT&& value) { SetQualifier(std::forward<QualifierT>(value)); return *this;}
158
160
165 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
166 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
167 template<typename RevisionIdT = Aws::String>
168 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
169 template<typename RevisionIdT = Aws::String>
170 AddPermissionRequest& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
172
174
178 inline const Aws::String& GetPrincipalOrgID() const { return m_principalOrgID; }
179 inline bool PrincipalOrgIDHasBeenSet() const { return m_principalOrgIDHasBeenSet; }
180 template<typename PrincipalOrgIDT = Aws::String>
181 void SetPrincipalOrgID(PrincipalOrgIDT&& value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID = std::forward<PrincipalOrgIDT>(value); }
182 template<typename PrincipalOrgIDT = Aws::String>
183 AddPermissionRequest& WithPrincipalOrgID(PrincipalOrgIDT&& value) { SetPrincipalOrgID(std::forward<PrincipalOrgIDT>(value)); return *this;}
185
187
195 inline FunctionUrlAuthType GetFunctionUrlAuthType() const { return m_functionUrlAuthType; }
196 inline bool FunctionUrlAuthTypeHasBeenSet() const { return m_functionUrlAuthTypeHasBeenSet; }
197 inline void SetFunctionUrlAuthType(FunctionUrlAuthType value) { m_functionUrlAuthTypeHasBeenSet = true; m_functionUrlAuthType = value; }
200 private:
201
202 Aws::String m_functionName;
203 bool m_functionNameHasBeenSet = false;
204
205 Aws::String m_statementId;
206 bool m_statementIdHasBeenSet = false;
207
208 Aws::String m_action;
209 bool m_actionHasBeenSet = false;
210
211 Aws::String m_principal;
212 bool m_principalHasBeenSet = false;
213
214 Aws::String m_sourceArn;
215 bool m_sourceArnHasBeenSet = false;
216
217 Aws::String m_sourceAccount;
218 bool m_sourceAccountHasBeenSet = false;
219
220 Aws::String m_eventSourceToken;
221 bool m_eventSourceTokenHasBeenSet = false;
222
223 Aws::String m_qualifier;
224 bool m_qualifierHasBeenSet = false;
225
226 Aws::String m_revisionId;
227 bool m_revisionIdHasBeenSet = false;
228
229 Aws::String m_principalOrgID;
230 bool m_principalOrgIDHasBeenSet = false;
231
233 bool m_functionUrlAuthTypeHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace Lambda
238} // namespace Aws
AddPermissionRequest & WithFunctionName(FunctionNameT &&value)
void SetSourceAccount(SourceAccountT &&value)
AWS_LAMBDA_API AddPermissionRequest()=default
const Aws::String & GetEventSourceToken() const
FunctionUrlAuthType GetFunctionUrlAuthType() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetEventSourceToken(EventSourceTokenT &&value)
void SetFunctionUrlAuthType(FunctionUrlAuthType value)
AddPermissionRequest & WithStatementId(StatementIdT &&value)
AddPermissionRequest & WithQualifier(QualifierT &&value)
AddPermissionRequest & WithEventSourceToken(EventSourceTokenT &&value)
AddPermissionRequest & WithAction(ActionT &&value)
AddPermissionRequest & WithSourceArn(SourceArnT &&value)
void SetPrincipalOrgID(PrincipalOrgIDT &&value)
AddPermissionRequest & WithPrincipal(PrincipalT &&value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AddPermissionRequest & WithSourceAccount(SourceAccountT &&value)
AddPermissionRequest & WithRevisionId(RevisionIdT &&value)
AddPermissionRequest & WithFunctionUrlAuthType(FunctionUrlAuthType value)
AddPermissionRequest & WithPrincipalOrgID(PrincipalOrgIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String