AWS SDK for C++  1.9.19
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 
204  inline const Aws::String& GetPrincipal() const{ return m_principal; }
205 
209  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
210 
214  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
215 
219  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
220 
224  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
225 
229  inline AddLayerVersionPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
230 
234  inline AddLayerVersionPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
235 
239  inline AddLayerVersionPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
240 
241 
246  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
247 
252  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
253 
258  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
259 
264  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
265 
270  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
271 
276  inline AddLayerVersionPermissionRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
277 
282  inline AddLayerVersionPermissionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
283 
288  inline AddLayerVersionPermissionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
289 
290 
295  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
296 
301  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
302 
307  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
308 
313  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
314 
319  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
320 
325  inline AddLayerVersionPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
326 
331  inline AddLayerVersionPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
332 
337  inline AddLayerVersionPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
338 
339  private:
340 
341  Aws::String m_layerName;
342  bool m_layerNameHasBeenSet;
343 
344  long long m_versionNumber;
345  bool m_versionNumberHasBeenSet;
346 
347  Aws::String m_statementId;
348  bool m_statementIdHasBeenSet;
349 
350  Aws::String m_action;
351  bool m_actionHasBeenSet;
352 
353  Aws::String m_principal;
354  bool m_principalHasBeenSet;
355 
356  Aws::String m_organizationId;
357  bool m_organizationIdHasBeenSet;
358 
359  Aws::String m_revisionId;
360  bool m_revisionIdHasBeenSet;
361  };
362 
363 } // namespace Model
364 } // namespace Lambda
365 } // 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:288
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: AddLayerVersionPermissionRequest.h:224
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:239
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithRevisionId
AddLayerVersionPermissionRequest & WithRevisionId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:325
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:301
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:319
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:264
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:219
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:307
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:214
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:331
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:337
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:204
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: AddLayerVersionPermissionRequest.h:258
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:246
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:276
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:229
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: AddLayerVersionPermissionRequest.h:270
Aws::Lambda::Model::AddLayerVersionPermissionRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: AddLayerVersionPermissionRequest.h:252
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:234
Aws::Lambda::Model::AddLayerVersionPermissionRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:313
Aws::Lambda::Model::AddLayerVersionPermissionRequest::WithOrganizationId
AddLayerVersionPermissionRequest & WithOrganizationId(Aws::String &&value)
Definition: AddLayerVersionPermissionRequest.h:282
Aws::Lambda::Model::AddLayerVersionPermissionRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: AddLayerVersionPermissionRequest.h:295
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:209