AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
58 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
59 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
60 inline AddPermissionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
61 inline AddPermissionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
62 inline AddPermissionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
64
66
70 inline const Aws::String& GetStatementId() const{ return m_statementId; }
71 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
72 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
73 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
74 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
75 inline AddPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
76 inline AddPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
77 inline AddPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
79
81
85 inline const Aws::String& GetAction() const{ return m_action; }
86 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
87 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
88 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
89 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
90 inline AddPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
91 inline AddPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
92 inline AddPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
94
96
102 inline const Aws::String& GetPrincipal() const{ return m_principal; }
103 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
104 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
105 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
106 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
107 inline AddPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
108 inline AddPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
109 inline AddPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
111
113
119 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
120 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
121 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
122 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
123 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
124 inline AddPermissionRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
125 inline AddPermissionRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
126 inline AddPermissionRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
128
130
136 inline const Aws::String& GetSourceAccount() const{ return m_sourceAccount; }
137 inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; }
138 inline void SetSourceAccount(const Aws::String& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = value; }
139 inline void SetSourceAccount(Aws::String&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::move(value); }
140 inline void SetSourceAccount(const char* value) { m_sourceAccountHasBeenSet = true; m_sourceAccount.assign(value); }
141 inline AddPermissionRequest& WithSourceAccount(const Aws::String& value) { SetSourceAccount(value); return *this;}
142 inline AddPermissionRequest& WithSourceAccount(Aws::String&& value) { SetSourceAccount(std::move(value)); return *this;}
143 inline AddPermissionRequest& WithSourceAccount(const char* value) { SetSourceAccount(value); return *this;}
145
147
150 inline const Aws::String& GetEventSourceToken() const{ return m_eventSourceToken; }
151 inline bool EventSourceTokenHasBeenSet() const { return m_eventSourceTokenHasBeenSet; }
152 inline void SetEventSourceToken(const Aws::String& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = value; }
153 inline void SetEventSourceToken(Aws::String&& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = std::move(value); }
154 inline void SetEventSourceToken(const char* value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken.assign(value); }
155 inline AddPermissionRequest& WithEventSourceToken(const Aws::String& value) { SetEventSourceToken(value); return *this;}
156 inline AddPermissionRequest& WithEventSourceToken(Aws::String&& value) { SetEventSourceToken(std::move(value)); return *this;}
157 inline AddPermissionRequest& WithEventSourceToken(const char* value) { SetEventSourceToken(value); return *this;}
159
161
165 inline const Aws::String& GetQualifier() const{ return m_qualifier; }
166 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
167 inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
168 inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
169 inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
170 inline AddPermissionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
171 inline AddPermissionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
172 inline AddPermissionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
174
176
181 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
182 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
183 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
184 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
185 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
186 inline AddPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
187 inline AddPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
188 inline AddPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
190
192
196 inline const Aws::String& GetPrincipalOrgID() const{ return m_principalOrgID; }
197 inline bool PrincipalOrgIDHasBeenSet() const { return m_principalOrgIDHasBeenSet; }
198 inline void SetPrincipalOrgID(const Aws::String& value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID = value; }
199 inline void SetPrincipalOrgID(Aws::String&& value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID = std::move(value); }
200 inline void SetPrincipalOrgID(const char* value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID.assign(value); }
201 inline AddPermissionRequest& WithPrincipalOrgID(const Aws::String& value) { SetPrincipalOrgID(value); return *this;}
202 inline AddPermissionRequest& WithPrincipalOrgID(Aws::String&& value) { SetPrincipalOrgID(std::move(value)); return *this;}
203 inline AddPermissionRequest& WithPrincipalOrgID(const char* value) { SetPrincipalOrgID(value); return *this;}
205
207
215 inline const FunctionUrlAuthType& GetFunctionUrlAuthType() const{ return m_functionUrlAuthType; }
216 inline bool FunctionUrlAuthTypeHasBeenSet() const { return m_functionUrlAuthTypeHasBeenSet; }
217 inline void SetFunctionUrlAuthType(const FunctionUrlAuthType& value) { m_functionUrlAuthTypeHasBeenSet = true; m_functionUrlAuthType = value; }
218 inline void SetFunctionUrlAuthType(FunctionUrlAuthType&& value) { m_functionUrlAuthTypeHasBeenSet = true; m_functionUrlAuthType = std::move(value); }
222 private:
223
224 Aws::String m_functionName;
225 bool m_functionNameHasBeenSet = false;
226
227 Aws::String m_statementId;
228 bool m_statementIdHasBeenSet = false;
229
230 Aws::String m_action;
231 bool m_actionHasBeenSet = false;
232
233 Aws::String m_principal;
234 bool m_principalHasBeenSet = false;
235
236 Aws::String m_sourceArn;
237 bool m_sourceArnHasBeenSet = false;
238
239 Aws::String m_sourceAccount;
240 bool m_sourceAccountHasBeenSet = false;
241
242 Aws::String m_eventSourceToken;
243 bool m_eventSourceTokenHasBeenSet = false;
244
245 Aws::String m_qualifier;
246 bool m_qualifierHasBeenSet = false;
247
248 Aws::String m_revisionId;
249 bool m_revisionIdHasBeenSet = false;
250
251 Aws::String m_principalOrgID;
252 bool m_principalOrgIDHasBeenSet = false;
253
254 FunctionUrlAuthType m_functionUrlAuthType;
255 bool m_functionUrlAuthTypeHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace Lambda
260} // namespace Aws
AddPermissionRequest & WithPrincipal(const char *value)
AddPermissionRequest & WithQualifier(const Aws::String &value)
AddPermissionRequest & WithRevisionId(const Aws::String &value)
AddPermissionRequest & WithSourceAccount(const Aws::String &value)
AddPermissionRequest & WithQualifier(Aws::String &&value)
AddPermissionRequest & WithSourceArn(const char *value)
void SetSourceArn(const Aws::String &value)
AddPermissionRequest & WithStatementId(const Aws::String &value)
AddPermissionRequest & WithPrincipalOrgID(Aws::String &&value)
void SetFunctionName(const Aws::String &value)
AddPermissionRequest & WithEventSourceToken(const Aws::String &value)
AddPermissionRequest & WithRevisionId(Aws::String &&value)
AddPermissionRequest & WithFunctionUrlAuthType(FunctionUrlAuthType &&value)
void SetRevisionId(const Aws::String &value)
AddPermissionRequest & WithEventSourceToken(Aws::String &&value)
const FunctionUrlAuthType & GetFunctionUrlAuthType() const
AddPermissionRequest & WithPrincipal(Aws::String &&value)
AddPermissionRequest & WithQualifier(const char *value)
const Aws::String & GetEventSourceToken() const
AddPermissionRequest & WithPrincipal(const Aws::String &value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
void SetQualifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AddPermissionRequest & WithFunctionName(const Aws::String &value)
AddPermissionRequest & WithAction(const char *value)
void SetEventSourceToken(const Aws::String &value)
AddPermissionRequest & WithAction(const Aws::String &value)
void SetAction(const Aws::String &value)
AddPermissionRequest & WithStatementId(Aws::String &&value)
AddPermissionRequest & WithEventSourceToken(const char *value)
AddPermissionRequest & WithSourceAccount(Aws::String &&value)
AddPermissionRequest & WithPrincipalOrgID(const char *value)
AddPermissionRequest & WithFunctionName(const char *value)
void SetPrincipal(const Aws::String &value)
AddPermissionRequest & WithAction(Aws::String &&value)
void SetSourceAccount(const Aws::String &value)
void SetPrincipalOrgID(const Aws::String &value)
AddPermissionRequest & WithFunctionName(Aws::String &&value)
AddPermissionRequest & WithFunctionUrlAuthType(const FunctionUrlAuthType &value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AddPermissionRequest & WithStatementId(const char *value)
AddPermissionRequest & WithRevisionId(const char *value)
AddPermissionRequest & WithPrincipalOrgID(const Aws::String &value)
void SetFunctionUrlAuthType(const FunctionUrlAuthType &value)
AddPermissionRequest & WithSourceArn(const Aws::String &value)
AddPermissionRequest & WithSourceArn(Aws::String &&value)
AddPermissionRequest & WithSourceAccount(const char *value)
void SetStatementId(const Aws::String &value)
void SetFunctionUrlAuthType(FunctionUrlAuthType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String