AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishVersionRequest.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 Lambda
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_LAMBDA_API PublishVersionRequest();
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_LAMBDA_API Aws::String SerializePayload() const override;
33
34
36
46 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
47 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
48 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
49 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
50 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
51 inline PublishVersionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
52 inline PublishVersionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
53 inline PublishVersionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
55
57
63 inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
64 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
65 inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
66 inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::move(value); }
67 inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
68 inline PublishVersionRequest& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
69 inline PublishVersionRequest& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;}
70 inline PublishVersionRequest& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
72
74
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline PublishVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline PublishVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline PublishVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
94 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
95 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
96 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
97 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
98 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
99 inline PublishVersionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
100 inline PublishVersionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
101 inline PublishVersionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
103 private:
104
105 Aws::String m_functionName;
106 bool m_functionNameHasBeenSet = false;
107
108 Aws::String m_codeSha256;
109 bool m_codeSha256HasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::String m_revisionId;
115 bool m_revisionIdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Lambda
120} // namespace Aws
PublishVersionRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
PublishVersionRequest & WithFunctionName(const Aws::String &value)
PublishVersionRequest & WithRevisionId(Aws::String &&value)
void SetFunctionName(const Aws::String &value)
void SetRevisionId(const Aws::String &value)
PublishVersionRequest & WithFunctionName(Aws::String &&value)
PublishVersionRequest & WithRevisionId(const char *value)
PublishVersionRequest & WithCodeSha256(const char *value)
PublishVersionRequest & WithRevisionId(const Aws::String &value)
PublishVersionRequest & WithFunctionName(const char *value)
PublishVersionRequest & WithDescription(Aws::String &&value)
void SetCodeSha256(const Aws::String &value)
void SetDescription(const Aws::String &value)
PublishVersionRequest & WithCodeSha256(const Aws::String &value)
PublishVersionRequest & WithCodeSha256(Aws::String &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
PublishVersionRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String