AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddLayerVersionPermissionRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace Lambda
19{
20namespace 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_LAMBDA_API Aws::String SerializePayload() const override;
37
38 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
45 inline const Aws::String& GetLayerName() const{ return m_layerName; }
46 inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
47 inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
48 inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
49 inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
50 inline AddLayerVersionPermissionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
51 inline AddLayerVersionPermissionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
52 inline AddLayerVersionPermissionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
54
56
59 inline long long GetVersionNumber() const{ return m_versionNumber; }
60 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
61 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
62 inline AddLayerVersionPermissionRequest& WithVersionNumber(long long value) { SetVersionNumber(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 AddLayerVersionPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
76 inline AddLayerVersionPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
77 inline AddLayerVersionPermissionRequest& 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 AddLayerVersionPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
91 inline AddLayerVersionPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
92 inline AddLayerVersionPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
94
96
103 inline const Aws::String& GetPrincipal() const{ return m_principal; }
104 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
105 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
106 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
107 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
108 inline AddLayerVersionPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
109 inline AddLayerVersionPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
110 inline AddLayerVersionPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
112
114
118 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
119 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
120 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
121 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
122 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
124 inline AddLayerVersionPermissionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
125 inline AddLayerVersionPermissionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
127
129
133 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
134 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
135 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
136 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
137 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
138 inline AddLayerVersionPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
139 inline AddLayerVersionPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
140 inline AddLayerVersionPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
142 private:
143
144 Aws::String m_layerName;
145 bool m_layerNameHasBeenSet = false;
146
147 long long m_versionNumber;
148 bool m_versionNumberHasBeenSet = false;
149
150 Aws::String m_statementId;
151 bool m_statementIdHasBeenSet = false;
152
153 Aws::String m_action;
154 bool m_actionHasBeenSet = false;
155
156 Aws::String m_principal;
157 bool m_principalHasBeenSet = false;
158
159 Aws::String m_organizationId;
160 bool m_organizationIdHasBeenSet = false;
161
162 Aws::String m_revisionId;
163 bool m_revisionIdHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Lambda
168} // namespace Aws
AddLayerVersionPermissionRequest & WithLayerName(const char *value)
AddLayerVersionPermissionRequest & WithLayerName(Aws::String &&value)
AddLayerVersionPermissionRequest & WithRevisionId(const char *value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AddLayerVersionPermissionRequest & WithPrincipal(const Aws::String &value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
AddLayerVersionPermissionRequest & WithAction(const Aws::String &value)
AddLayerVersionPermissionRequest & WithRevisionId(Aws::String &&value)
AddLayerVersionPermissionRequest & WithStatementId(const Aws::String &value)
AddLayerVersionPermissionRequest & WithPrincipal(const char *value)
AddLayerVersionPermissionRequest & WithOrganizationId(const char *value)
AddLayerVersionPermissionRequest & WithLayerName(const Aws::String &value)
AddLayerVersionPermissionRequest & WithStatementId(Aws::String &&value)
AddLayerVersionPermissionRequest & WithOrganizationId(Aws::String &&value)
AddLayerVersionPermissionRequest & WithAction(Aws::String &&value)
AddLayerVersionPermissionRequest & WithPrincipal(Aws::String &&value)
AddLayerVersionPermissionRequest & WithOrganizationId(const Aws::String &value)
AddLayerVersionPermissionRequest & WithAction(const char *value)
AddLayerVersionPermissionRequest & WithStatementId(const char *value)
AddLayerVersionPermissionRequest & WithVersionNumber(long long value)
AddLayerVersionPermissionRequest & WithRevisionId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String