AWS SDK for C++  1.9.129
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 
315  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
316 
323  inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
324 
331  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
332 
339  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
340 
347  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
348 
355  inline AddPermissionRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
356 
363  inline AddPermissionRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
364 
371  inline AddPermissionRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
372 
373 
380  inline const Aws::String& GetSourceAccount() const{ return m_sourceAccount; }
381 
388  inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; }
389 
396  inline void SetSourceAccount(const Aws::String& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = value; }
397 
404  inline void SetSourceAccount(Aws::String&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::move(value); }
405 
412  inline void SetSourceAccount(const char* value) { m_sourceAccountHasBeenSet = true; m_sourceAccount.assign(value); }
413 
420  inline AddPermissionRequest& WithSourceAccount(const Aws::String& value) { SetSourceAccount(value); return *this;}
421 
428  inline AddPermissionRequest& WithSourceAccount(Aws::String&& value) { SetSourceAccount(std::move(value)); return *this;}
429 
436  inline AddPermissionRequest& WithSourceAccount(const char* value) { SetSourceAccount(value); return *this;}
437 
438 
443  inline const Aws::String& GetEventSourceToken() const{ return m_eventSourceToken; }
444 
449  inline bool EventSourceTokenHasBeenSet() const { return m_eventSourceTokenHasBeenSet; }
450 
455  inline void SetEventSourceToken(const Aws::String& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = value; }
456 
461  inline void SetEventSourceToken(Aws::String&& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = std::move(value); }
462 
467  inline void SetEventSourceToken(const char* value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken.assign(value); }
468 
473  inline AddPermissionRequest& WithEventSourceToken(const Aws::String& value) { SetEventSourceToken(value); return *this;}
474 
479  inline AddPermissionRequest& WithEventSourceToken(Aws::String&& value) { SetEventSourceToken(std::move(value)); return *this;}
480 
485  inline AddPermissionRequest& WithEventSourceToken(const char* value) { SetEventSourceToken(value); return *this;}
486 
487 
492  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
493 
498  inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
499 
504  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
505 
510  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
511 
516  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
517 
522  inline AddPermissionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
523 
528  inline AddPermissionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
529 
534  inline AddPermissionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
535 
536 
542  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
543 
549  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
550 
556  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
557 
563  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
564 
570  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
571 
577  inline AddPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
578 
584  inline AddPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
585 
591  inline AddPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
592 
593  private:
594 
595  Aws::String m_functionName;
596  bool m_functionNameHasBeenSet;
597 
598  Aws::String m_statementId;
599  bool m_statementIdHasBeenSet;
600 
601  Aws::String m_action;
602  bool m_actionHasBeenSet;
603 
604  Aws::String m_principal;
605  bool m_principalHasBeenSet;
606 
607  Aws::String m_sourceArn;
608  bool m_sourceArnHasBeenSet;
609 
610  Aws::String m_sourceAccount;
611  bool m_sourceAccountHasBeenSet;
612 
613  Aws::String m_eventSourceToken;
614  bool m_eventSourceTokenHasBeenSet;
615 
616  Aws::String m_qualifier;
617  bool m_qualifierHasBeenSet;
618 
619  Aws::String m_revisionId;
620  bool m_revisionIdHasBeenSet;
621  };
622 
623 } // namespace Model
624 } // namespace Lambda
625 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Lambda::Model::AddPermissionRequest::SetQualifier
void SetQualifier(const char *value)
Definition: AddPermissionRequest.h:516
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:556
Aws::Lambda::Model::AddPermissionRequest::WithSourceAccount
AddPermissionRequest & WithSourceAccount(const char *value)
Definition: AddPermissionRequest.h:436
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:420
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:504
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:479
Aws::Lambda::Model::AddPermissionRequest::SourceArnHasBeenSet
bool SourceArnHasBeenSet() const
Definition: AddPermissionRequest.h:323
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:347
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:570
Aws::Lambda::Model::AddPermissionRequest::SetSourceAccount
void SetSourceAccount(Aws::String &&value)
Definition: AddPermissionRequest.h:404
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:380
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:363
Aws::Lambda::Model::AddPermissionRequest::SetEventSourceToken
void SetEventSourceToken(const Aws::String &value)
Definition: AddPermissionRequest.h:455
Aws::Lambda::Model::AddPermissionRequest::GetSourceArn
const Aws::String & GetSourceArn() const
Definition: AddPermissionRequest.h:315
Aws::Lambda::Model::AddPermissionRequest
Definition: AddPermissionRequest.h:26
Aws::Lambda::Model::AddPermissionRequest::WithQualifier
AddPermissionRequest & WithQualifier(const Aws::String &value)
Definition: AddPermissionRequest.h:522
Aws::Lambda::Model::AddPermissionRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: AddPermissionRequest.h:542
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:355
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:563
Aws::Lambda::Model::AddPermissionRequest::QualifierHasBeenSet
bool QualifierHasBeenSet() const
Definition: AddPermissionRequest.h:498
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:485
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:591
Aws::Lambda::Model::AddPermissionRequest::WithRevisionId
AddPermissionRequest & WithRevisionId(Aws::String &&value)
Definition: AddPermissionRequest.h:584
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:577
AWSString.h
Aws::Lambda::Model::AddPermissionRequest::SetSourceArn
void SetSourceArn(Aws::String &&value)
Definition: AddPermissionRequest.h:339
Aws::Lambda::Model::AddPermissionRequest::SetEventSourceToken
void SetEventSourceToken(const char *value)
Definition: AddPermissionRequest.h:467
Aws::Lambda::Model::AddPermissionRequest::SetSourceAccount
void SetSourceAccount(const char *value)
Definition: AddPermissionRequest.h:412
Aws::Lambda::Model::AddPermissionRequest::WithQualifier
AddPermissionRequest & WithQualifier(const char *value)
Definition: AddPermissionRequest.h:534
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:428
Aws::Lambda::Model::AddPermissionRequest::WithQualifier
AddPermissionRequest & WithQualifier(Aws::String &&value)
Definition: AddPermissionRequest.h:528
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:388
Aws::Lambda::Model::AddPermissionRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: AddPermissionRequest.h:549
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:443
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:510
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:371
Aws::Lambda::Model::AddPermissionRequest::WithEventSourceToken
AddPermissionRequest & WithEventSourceToken(const Aws::String &value)
Definition: AddPermissionRequest.h:473
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:449
Aws::Lambda::Model::AddPermissionRequest::SetEventSourceToken
void SetEventSourceToken(Aws::String &&value)
Definition: AddPermissionRequest.h:461
Aws::Lambda::Model::AddPermissionRequest::SetSourceArn
void SetSourceArn(const Aws::String &value)
Definition: AddPermissionRequest.h:331
Aws::Lambda::Model::AddPermissionRequest::SetSourceAccount
void SetSourceAccount(const Aws::String &value)
Definition: AddPermissionRequest.h:396
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:492