AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
AddLayerVersionPermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Lambda {
18namespace Model {
19
23 public:
24 AWS_LAMBDA_API AddLayerVersionPermissionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AddLayerVersionPermission"; }
31
32 AWS_LAMBDA_API Aws::String SerializePayload() const override;
33
34 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetLayerName() const { return m_layerName; }
41 inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
42 template <typename LayerNameT = Aws::String>
43 void SetLayerName(LayerNameT&& value) {
44 m_layerNameHasBeenSet = true;
45 m_layerName = std::forward<LayerNameT>(value);
46 }
47 template <typename LayerNameT = Aws::String>
49 SetLayerName(std::forward<LayerNameT>(value));
50 return *this;
51 }
53
55
58 inline long long GetVersionNumber() const { return m_versionNumber; }
59 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
60 inline void SetVersionNumber(long long value) {
61 m_versionNumberHasBeenSet = true;
62 m_versionNumber = value;
63 }
65 SetVersionNumber(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetStatementId() const { return m_statementId; }
76 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
77 template <typename StatementIdT = Aws::String>
78 void SetStatementId(StatementIdT&& value) {
79 m_statementIdHasBeenSet = true;
80 m_statementId = std::forward<StatementIdT>(value);
81 }
82 template <typename StatementIdT = Aws::String>
84 SetStatementId(std::forward<StatementIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetAction() const { return m_action; }
95 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
96 template <typename ActionT = Aws::String>
97 void SetAction(ActionT&& value) {
98 m_actionHasBeenSet = true;
99 m_action = std::forward<ActionT>(value);
100 }
101 template <typename ActionT = Aws::String>
103 SetAction(std::forward<ActionT>(value));
104 return *this;
105 }
107
109
116 inline const Aws::String& GetPrincipal() const { return m_principal; }
117 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
118 template <typename PrincipalT = Aws::String>
119 void SetPrincipal(PrincipalT&& value) {
120 m_principalHasBeenSet = true;
121 m_principal = std::forward<PrincipalT>(value);
122 }
123 template <typename PrincipalT = Aws::String>
125 SetPrincipal(std::forward<PrincipalT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
136 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
137 template <typename OrganizationIdT = Aws::String>
138 void SetOrganizationId(OrganizationIdT&& value) {
139 m_organizationIdHasBeenSet = true;
140 m_organizationId = std::forward<OrganizationIdT>(value);
141 }
142 template <typename OrganizationIdT = Aws::String>
144 SetOrganizationId(std::forward<OrganizationIdT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
155 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
156 template <typename RevisionIdT = Aws::String>
157 void SetRevisionId(RevisionIdT&& value) {
158 m_revisionIdHasBeenSet = true;
159 m_revisionId = std::forward<RevisionIdT>(value);
160 }
161 template <typename RevisionIdT = Aws::String>
163 SetRevisionId(std::forward<RevisionIdT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_layerName;
169
170 long long m_versionNumber{0};
171
172 Aws::String m_statementId;
173
174 Aws::String m_action;
175
176 Aws::String m_principal;
177
178 Aws::String m_organizationId;
179
180 Aws::String m_revisionId;
181 bool m_layerNameHasBeenSet = false;
182 bool m_versionNumberHasBeenSet = false;
183 bool m_statementIdHasBeenSet = false;
184 bool m_actionHasBeenSet = false;
185 bool m_principalHasBeenSet = false;
186 bool m_organizationIdHasBeenSet = false;
187 bool m_revisionIdHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace Lambda
192} // namespace Aws
AddLayerVersionPermissionRequest & WithStatementId(StatementIdT &&value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_LAMBDA_API Aws::String SerializePayload() const override
AddLayerVersionPermissionRequest & WithRevisionId(RevisionIdT &&value)
AddLayerVersionPermissionRequest & WithLayerName(LayerNameT &&value)
AddLayerVersionPermissionRequest & WithAction(ActionT &&value)
AddLayerVersionPermissionRequest & WithOrganizationId(OrganizationIdT &&value)
AddLayerVersionPermissionRequest & WithVersionNumber(long long value)
AddLayerVersionPermissionRequest & WithPrincipal(PrincipalT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String