AWS SDK for C++  1.9.20
AWS SDK for C++
PublishVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lambda
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "PublishVersion"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
45  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
46 
57  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
58 
69  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
70 
81  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
82 
93  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
94 
105  inline PublishVersionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
106 
117  inline PublishVersionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
118 
129  inline PublishVersionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
130 
131 
138  inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
139 
146  inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
147 
154  inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
155 
162  inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::move(value); }
163 
170  inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
171 
178  inline PublishVersionRequest& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
179 
186  inline PublishVersionRequest& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;}
187 
194  inline PublishVersionRequest& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
195 
196 
201  inline const Aws::String& GetDescription() const{ return m_description; }
202 
207  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
208 
213  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
214 
219  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
220 
225  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
226 
231  inline PublishVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
232 
237  inline PublishVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
238 
243  inline PublishVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
244 
245 
251  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
252 
258  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
259 
265  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
266 
272  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
273 
279  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
280 
286  inline PublishVersionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
287 
293  inline PublishVersionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
294 
300  inline PublishVersionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
301 
302  private:
303 
304  Aws::String m_functionName;
305  bool m_functionNameHasBeenSet;
306 
307  Aws::String m_codeSha256;
308  bool m_codeSha256HasBeenSet;
309 
310  Aws::String m_description;
311  bool m_descriptionHasBeenSet;
312 
313  Aws::String m_revisionId;
314  bool m_revisionIdHasBeenSet;
315  };
316 
317 } // namespace Model
318 } // namespace Lambda
319 } // namespace Aws
Aws::Lambda::Model::PublishVersionRequest::WithDescription
PublishVersionRequest & WithDescription(const Aws::String &value)
Definition: PublishVersionRequest.h:231
Aws::Lambda::Model::PublishVersionRequest::SetCodeSha256
void SetCodeSha256(Aws::String &&value)
Definition: PublishVersionRequest.h:162
Aws::Lambda::Model::PublishVersionRequest::WithRevisionId
PublishVersionRequest & WithRevisionId(const char *value)
Definition: PublishVersionRequest.h:300
Aws::Lambda::Model::PublishVersionRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: PublishVersionRequest.h:279
Aws::Lambda::Model::PublishVersionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PublishVersionRequest.h:219
Aws::Lambda::Model::PublishVersionRequest
Definition: PublishVersionRequest.h:22
Aws::Lambda::Model::PublishVersionRequest::WithCodeSha256
PublishVersionRequest & WithCodeSha256(const Aws::String &value)
Definition: PublishVersionRequest.h:178
Aws::Lambda::Model::PublishVersionRequest::WithFunctionName
PublishVersionRequest & WithFunctionName(const char *value)
Definition: PublishVersionRequest.h:129
Aws::Lambda::Model::PublishVersionRequest::CodeSha256HasBeenSet
bool CodeSha256HasBeenSet() const
Definition: PublishVersionRequest.h:146
Aws::Lambda::Model::PublishVersionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: PublishVersionRequest.h:213
Aws::Lambda::Model::PublishVersionRequest::WithRevisionId
PublishVersionRequest & WithRevisionId(const Aws::String &value)
Definition: PublishVersionRequest.h:286
Aws::Lambda::Model::PublishVersionRequest::SetCodeSha256
void SetCodeSha256(const Aws::String &value)
Definition: PublishVersionRequest.h:154
Aws::Lambda::Model::PublishVersionRequest::WithCodeSha256
PublishVersionRequest & WithCodeSha256(const char *value)
Definition: PublishVersionRequest.h:194
Aws::Lambda::Model::PublishVersionRequest::WithRevisionId
PublishVersionRequest & WithRevisionId(Aws::String &&value)
Definition: PublishVersionRequest.h:293
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::PublishVersionRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: PublishVersionRequest.h:251
Aws::Lambda::Model::PublishVersionRequest::WithDescription
PublishVersionRequest & WithDescription(const char *value)
Definition: PublishVersionRequest.h:243
Aws::Lambda::Model::PublishVersionRequest::GetCodeSha256
const Aws::String & GetCodeSha256() const
Definition: PublishVersionRequest.h:138
Aws::Lambda::Model::PublishVersionRequest::SetCodeSha256
void SetCodeSha256(const char *value)
Definition: PublishVersionRequest.h:170
Aws::Lambda::Model::PublishVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::PublishVersionRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: PublishVersionRequest.h:45
Aws::Lambda::Model::PublishVersionRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: PublishVersionRequest.h:57
Aws::Lambda::Model::PublishVersionRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: PublishVersionRequest.h:93
Aws::Lambda::Model::PublishVersionRequest::WithFunctionName
PublishVersionRequest & WithFunctionName(Aws::String &&value)
Definition: PublishVersionRequest.h:117
AWSString.h
Aws::Lambda::Model::PublishVersionRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: PublishVersionRequest.h:69
LambdaRequest.h
Aws::Lambda::Model::PublishVersionRequest::PublishVersionRequest
PublishVersionRequest()
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::PublishVersionRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: PublishVersionRequest.h:272
Aws::Lambda::Model::PublishVersionRequest::WithDescription
PublishVersionRequest & WithDescription(Aws::String &&value)
Definition: PublishVersionRequest.h:237
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::PublishVersionRequest::WithCodeSha256
PublishVersionRequest & WithCodeSha256(Aws::String &&value)
Definition: PublishVersionRequest.h:186
Aws::Lambda::Model::PublishVersionRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: PublishVersionRequest.h:258
Aws::Lambda::Model::PublishVersionRequest::WithFunctionName
PublishVersionRequest & WithFunctionName(const Aws::String &value)
Definition: PublishVersionRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::PublishVersionRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: PublishVersionRequest.h:81
Aws::Lambda::Model::PublishVersionRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: PublishVersionRequest.h:265
Aws::Lambda::Model::PublishVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PublishVersionRequest.h:30
Aws::Lambda::Model::PublishVersionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PublishVersionRequest.h:207
Aws::Lambda::Model::PublishVersionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PublishVersionRequest.h:201
Lambda_EXPORTS.h
Aws::Lambda::Model::PublishVersionRequest::SetDescription
void SetDescription(const char *value)
Definition: PublishVersionRequest.h:225