AWS SDK for C++  1.9.133
AWS SDK for C++
AddLayerVersionPermissionRequest.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 "AddLayerVersionPermission"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetLayerName() const{ return m_layerName; }
45 
49  inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
50 
54  inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
55 
59  inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
60 
64  inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
65 
69  inline AddLayerVersionPermissionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
70 
74  inline AddLayerVersionPermissionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
75 
79  inline AddLayerVersionPermissionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
80 
81 
85  inline long long GetVersionNumber() const{ return m_versionNumber; }
86 
90  inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
91 
95  inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
96 
100  inline AddLayerVersionPermissionRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
101 
102 
107  inline const Aws::String& GetStatementId() const{ return m_statementId; }
108 
113  inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
114 
119  inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
120 
125  inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
126 
131  inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
132 
137  inline AddLayerVersionPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
138 
143  inline AddLayerVersionPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
144 
149  inline AddLayerVersionPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
150 
151 
156  inline const Aws::String& GetAction() const{ return m_action; }
157 
162  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
163 
168  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
169 
174  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
175 
180  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
181 
186  inline AddLayerVersionPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
187 
192  inline AddLayerVersionPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
193 
198  inline AddLayerVersionPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
199 
200 
208  inline const Aws::String& GetPrincipal() const{ return m_principal; }
209 
217  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
218 
226  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
227 
235  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
236 
244  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
245 
253  inline AddLayerVersionPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
254 
262  inline AddLayerVersionPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
263 
271  inline AddLayerVersionPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
272 
273 
278  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
279 
284  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
285 
290  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
291 
296  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
297 
302  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
303 
308  inline AddLayerVersionPermissionRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
309 
314  inline AddLayerVersionPermissionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
315 
320  inline AddLayerVersionPermissionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
321 
322 
327  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
328 
333  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
334 
339  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
340 
345  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
346 
351  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
352 
357  inline AddLayerVersionPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
358 
363  inline AddLayerVersionPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
364 
369  inline AddLayerVersionPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
370 
371  private:
372 
373  Aws::String m_layerName;
374  bool m_layerNameHasBeenSet;
375 
376  long long m_versionNumber;
377  bool m_versionNumberHasBeenSet;
378 
379  Aws::String m_statementId;
380  bool m_statementIdHasBeenSet;
381 
382  Aws::String m_action;
383  bool m_actionHasBeenSet;
384 
385  Aws::String m_principal;
386  bool m_principalHasBeenSet;
387 
388  Aws::String m_organizationId;
389  bool m_organizationIdHasBeenSet;
390 
391  Aws::String m_revisionId;
392  bool m_revisionIdHasBeenSet;
393  };
394 
395 } // namespace Model
396 } // namespace Lambda
397 } // namespace Aws
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetLayerName
void SetLayerName(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:54
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithStatementId
AddLayerVersionPermissionRequest & WithStatementId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:137
Aws::Http::URI
Definition: URI.h:32
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddLayerVersionPermissionRequest.h:34
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithOrganizationId
AddLayerVersionPermissionRequest & WithOrganizationId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:320
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: AddLayerVersionPermissionRequest.h:244
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithStatementId
AddLayerVersionPermissionRequest & WithStatementId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:143
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithPrincipal
AddLayerVersionPermissionRequest & WithPrincipal(const char *value)
Definition: AddLayerVersionPermissionRequest.h:271
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithRevisionId
AddLayerVersionPermissionRequest & WithRevisionId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:357
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithAction
AddLayerVersionPermissionRequest & WithAction(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:192
Aws::Lambda::Model::AddLayerVersionPermissionRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:333
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:351
Aws::Lambda::Model::AddLayerVersionPermissionRequest::StatementIdHasBeenSet
bool StatementIdHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:113
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:296
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithLayerName
AddLayerVersionPermissionRequest & WithLayerName(const char *value)
Definition: AddLayerVersionPermissionRequest.h:79
Aws::Lambda::Model::AddLayerVersionPermissionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:235
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithLayerName
AddLayerVersionPermissionRequest & WithLayerName(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:74
Aws::Lambda::Model::AddLayerVersionPermissionRequest::VersionNumberHasBeenSet
bool VersionNumberHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:90
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetAction
void SetAction(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:174
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithStatementId
AddLayerVersionPermissionRequest & WithStatementId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:149
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:339
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetAction
const Aws::String & GetAction() const
Definition: AddLayerVersionPermissionRequest.h:156
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:226
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetStatementId
const Aws::String & GetStatementId() const
Definition: AddLayerVersionPermissionRequest.h:107
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetVersionNumber
void SetVersionNumber(long long value)
Definition: AddLayerVersionPermissionRequest.h:95
Aws::Lambda::Model::AddLayerVersionPermissionRequest
Definition: AddLayerVersionPermissionRequest.h:26
Aws::Lambda::Model::AddLayerVersionPermissionRequest::LayerNameHasBeenSet
bool LayerNameHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:49
Aws::Lambda::Model::AddLayerVersionPermissionRequest::AddLayerVersionPermissionRequest
AddLayerVersionPermissionRequest()
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithRevisionId
AddLayerVersionPermissionRequest & WithRevisionId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:363
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithAction
AddLayerVersionPermissionRequest & WithAction(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:186
AWSString.h
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithRevisionId
AddLayerVersionPermissionRequest & WithRevisionId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:369
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetVersionNumber
long long GetVersionNumber() const
Definition: AddLayerVersionPermissionRequest.h:85
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: AddLayerVersionPermissionRequest.h:208
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:290
LambdaRequest.h
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetStatementId
void SetStatementId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:131
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetStatementId
void SetStatementId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:125
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetAction
void SetAction(const char *value)
Definition: AddLayerVersionPermissionRequest.h:180
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: AddLayerVersionPermissionRequest.h:278
Aws::Lambda::Model::AddLayerVersionPermissionRequest::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:162
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetAction
void SetAction(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:168
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithOrganizationId
AddLayerVersionPermissionRequest & WithOrganizationId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:308
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithPrincipal
AddLayerVersionPermissionRequest & WithPrincipal(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:253
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:302
Aws::Lambda::Model::AddLayerVersionPermissionRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:284
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetLayerName
void SetLayerName(const char *value)
Definition: AddLayerVersionPermissionRequest.h:64
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithPrincipal
AddLayerVersionPermissionRequest & WithPrincipal(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:262
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:345
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithOrganizationId
AddLayerVersionPermissionRequest & WithOrganizationId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:314
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: AddLayerVersionPermissionRequest.h:327
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithLayerName
AddLayerVersionPermissionRequest & WithLayerName(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:69
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetLayerName
const Aws::String & GetLayerName() const
Definition: AddLayerVersionPermissionRequest.h:44
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetStatementId
void SetStatementId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:119
Lambda_EXPORTS.h
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithAction
AddLayerVersionPermissionRequest & WithAction(const char *value)
Definition: AddLayerVersionPermissionRequest.h:198
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithVersionNumber
AddLayerVersionPermissionRequest & WithVersionNumber(long long value)
Definition: AddLayerVersionPermissionRequest.h:100
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetLayerName
void SetLayerName(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:59
Aws::Lambda::Model::AddLayerVersionPermissionRequest::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:217