AWS SDK for C++  1.9.19
AWS SDK for C++
AddPermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Lambda
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "AddPermission"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
53  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
54 
67  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
68 
81  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
82 
95  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
96 
109  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
110 
123  inline AddPermissionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
124 
137  inline AddPermissionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
138 
151  inline AddPermissionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
152 
153 
158  inline const Aws::String& GetStatementId() const{ return m_statementId; }
159 
164  inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
165 
170  inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
171 
176  inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
177 
182  inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
183 
188  inline AddPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
189 
194  inline AddPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
195 
200  inline AddPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
201 
202 
207  inline const Aws::String& GetAction() const{ return m_action; }
208 
213  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
214 
219  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
220 
225  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
226 
231  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
232 
237  inline AddPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
238 
243  inline AddPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
244 
249  inline AddPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
250 
251 
257  inline const Aws::String& GetPrincipal() const{ return m_principal; }
258 
264  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
265 
271  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
272 
278  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
279 
285  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
286 
292  inline AddPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
293 
299  inline AddPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
300 
306  inline AddPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
307 
308 
313  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
314 
319  inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
320 
325  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
326 
331  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
332 
337  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
338 
343  inline AddPermissionRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
344 
349  inline AddPermissionRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
350 
355  inline AddPermissionRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
356 
357 
364  inline const Aws::String& GetSourceAccount() const{ return m_sourceAccount; }
365 
372  inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; }
373 
380  inline void SetSourceAccount(const Aws::String& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = value; }
381 
388  inline void SetSourceAccount(Aws::String&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::move(value); }
389 
396  inline void SetSourceAccount(const char* value) { m_sourceAccountHasBeenSet = true; m_sourceAccount.assign(value); }
397 
404  inline AddPermissionRequest& WithSourceAccount(const Aws::String& value) { SetSourceAccount(value); return *this;}
405 
412  inline AddPermissionRequest& WithSourceAccount(Aws::String&& value) { SetSourceAccount(std::move(value)); return *this;}
413 
420  inline AddPermissionRequest& WithSourceAccount(const char* value) { SetSourceAccount(value); return *this;}
421 
422 
427  inline const Aws::String& GetEventSourceToken() const{ return m_eventSourceToken; }
428 
433  inline bool EventSourceTokenHasBeenSet() const { return m_eventSourceTokenHasBeenSet; }
434 
439  inline void SetEventSourceToken(const Aws::String& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = value; }
440 
445  inline void SetEventSourceToken(Aws::String&& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = std::move(value); }
446 
451  inline void SetEventSourceToken(const char* value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken.assign(value); }
452 
457  inline AddPermissionRequest& WithEventSourceToken(const Aws::String& value) { SetEventSourceToken(value); return *this;}
458 
463  inline AddPermissionRequest& WithEventSourceToken(Aws::String&& value) { SetEventSourceToken(std::move(value)); return *this;}
464 
469  inline AddPermissionRequest& WithEventSourceToken(const char* value) { SetEventSourceToken(value); return *this;}
470 
471 
476  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
477 
482  inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
483 
488  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
489 
494  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
495 
500  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
501 
506  inline AddPermissionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
507 
512  inline AddPermissionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
513 
518  inline AddPermissionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
519 
520 
526  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
527 
533  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
534 
540  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
541 
547  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
548 
554  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
555 
561  inline AddPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
562 
568  inline AddPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
569 
575  inline AddPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
576 
577  private:
578 
579  Aws::String m_functionName;
580  bool m_functionNameHasBeenSet;
581 
582  Aws::String m_statementId;
583  bool m_statementIdHasBeenSet;
584 
585  Aws::String m_action;
586  bool m_actionHasBeenSet;
587 
588  Aws::String m_principal;
589  bool m_principalHasBeenSet;
590 
591  Aws::String m_sourceArn;
592  bool m_sourceArnHasBeenSet;
593 
594  Aws::String m_sourceAccount;
595  bool m_sourceAccountHasBeenSet;
596 
597  Aws::String m_eventSourceToken;
598  bool m_eventSourceTokenHasBeenSet;
599 
600  Aws::String m_qualifier;
601  bool m_qualifierHasBeenSet;
602 
603  Aws::String m_revisionId;
604  bool m_revisionIdHasBeenSet;
605  };
606 
607 } // namespace Model
608 } // namespace Lambda
609 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Lambda::Model::AddPermissionRequest::SetQualifier
void SetQualifier(const char *value)
Definition: AddPermissionRequest.h:500
Aws::Lambda::Model::AddPermissionRequest::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: AddPermissionRequest.h:257
Aws::Lambda::Model::AddPermissionRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: AddPermissionRequest.h:540
Aws::Lambda::Model::AddPermissionRequest::WithSourceAccount
AddPermissionRequest & WithSourceAccount(const char *value)
Definition: AddPermissionRequest.h:420
Aws::Lambda::Model::AddPermissionRequest::WithFunctionName
AddPermissionRequest & WithFunctionName(const char *value)
Definition: AddPermissionRequest.h:151
Aws::Lambda::Model::AddPermissionRequest::WithSourceAccount
AddPermissionRequest & WithSourceAccount(const Aws::String &value)
Definition: AddPermissionRequest.h:404
Aws::Lambda::Model::AddPermissionRequest::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: AddPermissionRequest.h:213
Aws::Lambda::Model::AddPermissionRequest::SetQualifier
void SetQualifier(const Aws::String &value)
Definition: AddPermissionRequest.h:488
Aws::Lambda::Model::AddPermissionRequest::WithFunctionName
AddPermissionRequest & WithFunctionName(Aws::String &&value)
Definition: AddPermissionRequest.h:137
Aws::Lambda::Model::AddPermissionRequest::WithEventSourceToken
AddPermissionRequest & WithEventSourceToken(Aws::String &&value)
Definition: AddPermissionRequest.h:463
Aws::Lambda::Model::AddPermissionRequest::SourceArnHasBeenSet
bool SourceArnHasBeenSet() const
Definition: AddPermissionRequest.h:319
Aws::Lambda::Model::AddPermissionRequest::WithStatementId
AddPermissionRequest & WithStatementId(Aws::String &&value)
Definition: AddPermissionRequest.h:194
Aws::Lambda::Model::AddPermissionRequest::SetSourceArn
void SetSourceArn(const char *value)
Definition: AddPermissionRequest.h:337
Aws::Lambda::Model::AddPermissionRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: AddPermissionRequest.h:53
Aws::Lambda::Model::AddPermissionRequest::SetStatementId
void SetStatementId(Aws::String &&value)
Definition: AddPermissionRequest.h:176
Aws::Lambda::Model::AddPermissionRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: AddPermissionRequest.h:109
Aws::Lambda::Model::AddPermissionRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: AddPermissionRequest.h:67
Aws::Lambda::Model::AddPermissionRequest::GetStatementId
const Aws::String & GetStatementId() const
Definition: AddPermissionRequest.h:158
Aws::Lambda::Model::AddPermissionRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: AddPermissionRequest.h:554
Aws::Lambda::Model::AddPermissionRequest::SetSourceAccount
void SetSourceAccount(Aws::String &&value)
Definition: AddPermissionRequest.h:388
Aws::Lambda::Model::AddPermissionRequest::SetAction
void SetAction(const Aws::String &value)
Definition: AddPermissionRequest.h:219
Aws::Lambda::Model::AddPermissionRequest::GetSourceAccount
const Aws::String & GetSourceAccount() const
Definition: AddPermissionRequest.h:364
Aws::Lambda::Model::AddPermissionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Lambda::Model::AddPermissionRequest::WithSourceArn
AddPermissionRequest & WithSourceArn(Aws::String &&value)
Definition: AddPermissionRequest.h:349
Aws::Lambda::Model::AddPermissionRequest::SetEventSourceToken
void SetEventSourceToken(const Aws::String &value)
Definition: AddPermissionRequest.h:439
Aws::Lambda::Model::AddPermissionRequest::GetSourceArn
const Aws::String & GetSourceArn() const
Definition: AddPermissionRequest.h:313
Aws::Lambda::Model::AddPermissionRequest
Definition: AddPermissionRequest.h:26
Aws::Lambda::Model::AddPermissionRequest::WithQualifier
AddPermissionRequest & WithQualifier(const Aws::String &value)
Definition: AddPermissionRequest.h:506
Aws::Lambda::Model::AddPermissionRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: AddPermissionRequest.h:526
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::AddPermissionRequest::SetAction
void SetAction(const char *value)
Definition: AddPermissionRequest.h:231
Aws::Lambda::Model::AddPermissionRequest::WithSourceArn
AddPermissionRequest & WithSourceArn(const Aws::String &value)
Definition: AddPermissionRequest.h:343
Aws::Lambda::Model::AddPermissionRequest::WithPrincipal
AddPermissionRequest & WithPrincipal(Aws::String &&value)
Definition: AddPermissionRequest.h:299
Aws::Lambda::Model::AddPermissionRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: AddPermissionRequest.h:547
Aws::Lambda::Model::AddPermissionRequest::QualifierHasBeenSet
bool QualifierHasBeenSet() const
Definition: AddPermissionRequest.h:482
Aws::Lambda::Model::AddPermissionRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: AddPermissionRequest.h:95
Aws::Lambda::Model::AddPermissionRequest::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: AddPermissionRequest.h:278
Aws::Lambda::Model::AddPermissionRequest::WithEventSourceToken
AddPermissionRequest & WithEventSourceToken(const char *value)
Definition: AddPermissionRequest.h:469
Aws::Lambda::Model::AddPermissionRequest::WithAction
AddPermissionRequest & WithAction(const char *value)
Definition: AddPermissionRequest.h:249
Aws::Lambda::Model::AddPermissionRequest::WithRevisionId
AddPermissionRequest & WithRevisionId(const char *value)
Definition: AddPermissionRequest.h:575
Aws::Lambda::Model::AddPermissionRequest::WithRevisionId
AddPermissionRequest & WithRevisionId(Aws::String &&value)
Definition: AddPermissionRequest.h:568
Aws::Lambda::Model::AddPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddPermissionRequest.h:34
Aws::Lambda::Model::AddPermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::AddPermissionRequest::WithAction
AddPermissionRequest & WithAction(const Aws::String &value)
Definition: AddPermissionRequest.h:237
Aws::Lambda::Model::AddPermissionRequest::WithRevisionId
AddPermissionRequest & WithRevisionId(const Aws::String &value)
Definition: AddPermissionRequest.h:561
AWSString.h
Aws::Lambda::Model::AddPermissionRequest::SetSourceArn
void SetSourceArn(Aws::String &&value)
Definition: AddPermissionRequest.h:331
Aws::Lambda::Model::AddPermissionRequest::SetEventSourceToken
void SetEventSourceToken(const char *value)
Definition: AddPermissionRequest.h:451
Aws::Lambda::Model::AddPermissionRequest::SetSourceAccount
void SetSourceAccount(const char *value)
Definition: AddPermissionRequest.h:396
Aws::Lambda::Model::AddPermissionRequest::WithQualifier
AddPermissionRequest & WithQualifier(const char *value)
Definition: AddPermissionRequest.h:518
LambdaRequest.h
Aws::Lambda::Model::AddPermissionRequest::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: AddPermissionRequest.h:264
Aws::Lambda::Model::AddPermissionRequest::WithSourceAccount
AddPermissionRequest & WithSourceAccount(Aws::String &&value)
Definition: AddPermissionRequest.h:412
Aws::Lambda::Model::AddPermissionRequest::WithQualifier
AddPermissionRequest & WithQualifier(Aws::String &&value)
Definition: AddPermissionRequest.h:512
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::AddPermissionRequest::AddPermissionRequest
AddPermissionRequest()
Aws::Lambda::Model::AddPermissionRequest::StatementIdHasBeenSet
bool StatementIdHasBeenSet() const
Definition: AddPermissionRequest.h:164
Aws::Lambda::Model::AddPermissionRequest::SourceAccountHasBeenSet
bool SourceAccountHasBeenSet() const
Definition: AddPermissionRequest.h:372
Aws::Lambda::Model::AddPermissionRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: AddPermissionRequest.h:533
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::AddPermissionRequest::GetEventSourceToken
const Aws::String & GetEventSourceToken() const
Definition: AddPermissionRequest.h:427
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::AddPermissionRequest::SetQualifier
void SetQualifier(Aws::String &&value)
Definition: AddPermissionRequest.h:494
Aws::Lambda::Model::AddPermissionRequest::WithPrincipal
AddPermissionRequest & WithPrincipal(const Aws::String &value)
Definition: AddPermissionRequest.h:292
Aws::Lambda::Model::AddPermissionRequest::WithSourceArn
AddPermissionRequest & WithSourceArn(const char *value)
Definition: AddPermissionRequest.h:355
Aws::Lambda::Model::AddPermissionRequest::WithEventSourceToken
AddPermissionRequest & WithEventSourceToken(const Aws::String &value)
Definition: AddPermissionRequest.h:457
Aws::Lambda::Model::AddPermissionRequest::SetAction
void SetAction(Aws::String &&value)
Definition: AddPermissionRequest.h:225
Aws::Lambda::Model::AddPermissionRequest::SetStatementId
void SetStatementId(const char *value)
Definition: AddPermissionRequest.h:182
Aws::Lambda::Model::AddPermissionRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: AddPermissionRequest.h:81
Aws::Lambda::Model::AddPermissionRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: AddPermissionRequest.h:285
Aws::Lambda::Model::AddPermissionRequest::WithStatementId
AddPermissionRequest & WithStatementId(const char *value)
Definition: AddPermissionRequest.h:200
Aws::Lambda::Model::AddPermissionRequest::EventSourceTokenHasBeenSet
bool EventSourceTokenHasBeenSet() const
Definition: AddPermissionRequest.h:433
Aws::Lambda::Model::AddPermissionRequest::SetEventSourceToken
void SetEventSourceToken(Aws::String &&value)
Definition: AddPermissionRequest.h:445
Aws::Lambda::Model::AddPermissionRequest::SetSourceArn
void SetSourceArn(const Aws::String &value)
Definition: AddPermissionRequest.h:325
Aws::Lambda::Model::AddPermissionRequest::SetSourceAccount
void SetSourceAccount(const Aws::String &value)
Definition: AddPermissionRequest.h:380
Aws::Lambda::Model::AddPermissionRequest::WithAction
AddPermissionRequest & WithAction(Aws::String &&value)
Definition: AddPermissionRequest.h:243
Aws::Lambda::Model::AddPermissionRequest::WithFunctionName
AddPermissionRequest & WithFunctionName(const Aws::String &value)
Definition: AddPermissionRequest.h:123
Aws::Lambda::Model::AddPermissionRequest::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: AddPermissionRequest.h:271
Lambda_EXPORTS.h
Aws::Lambda::Model::AddPermissionRequest::WithPrincipal
AddPermissionRequest & WithPrincipal(const char *value)
Definition: AddPermissionRequest.h:306
Aws::Lambda::Model::AddPermissionRequest::WithStatementId
AddPermissionRequest & WithStatementId(const Aws::String &value)
Definition: AddPermissionRequest.h:188
Aws::Lambda::Model::AddPermissionRequest::GetAction
const Aws::String & GetAction() const
Definition: AddPermissionRequest.h:207
Aws::Lambda::Model::AddPermissionRequest::SetStatementId
void SetStatementId(const Aws::String &value)
Definition: AddPermissionRequest.h:170
Aws::Lambda::Model::AddPermissionRequest::GetQualifier
const Aws::String & GetQualifier() const
Definition: AddPermissionRequest.h:476