AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PublishVersionRequest.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#include <aws/lambda/model/FunctionVersionLatestPublished.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lambda {
16namespace Model {
17
21 public:
22 AWS_LAMBDA_API PublishVersionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PublishVersion"; }
29
30 AWS_LAMBDA_API Aws::String SerializePayload() const override;
31
33
43 inline const Aws::String& GetFunctionName() const { return m_functionName; }
44 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
45 template <typename FunctionNameT = Aws::String>
46 void SetFunctionName(FunctionNameT&& value) {
47 m_functionNameHasBeenSet = true;
48 m_functionName = std::forward<FunctionNameT>(value);
49 }
50 template <typename FunctionNameT = Aws::String>
51 PublishVersionRequest& WithFunctionName(FunctionNameT&& value) {
52 SetFunctionName(std::forward<FunctionNameT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
65 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
66 template <typename CodeSha256T = Aws::String>
67 void SetCodeSha256(CodeSha256T&& value) {
68 m_codeSha256HasBeenSet = true;
69 m_codeSha256 = std::forward<CodeSha256T>(value);
70 }
71 template <typename CodeSha256T = Aws::String>
72 PublishVersionRequest& WithCodeSha256(CodeSha256T&& value) {
73 SetCodeSha256(std::forward<CodeSha256T>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
91 PublishVersionRequest& WithDescription(DescriptionT&& value) {
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
104 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
105 template <typename RevisionIdT = Aws::String>
106 void SetRevisionId(RevisionIdT&& value) {
107 m_revisionIdHasBeenSet = true;
108 m_revisionId = std::forward<RevisionIdT>(value);
109 }
110 template <typename RevisionIdT = Aws::String>
111 PublishVersionRequest& WithRevisionId(RevisionIdT&& value) {
112 SetRevisionId(std::forward<RevisionIdT>(value));
113 return *this;
114 }
116
118
121 inline FunctionVersionLatestPublished GetPublishTo() const { return m_publishTo; }
122 inline bool PublishToHasBeenSet() const { return m_publishToHasBeenSet; }
124 m_publishToHasBeenSet = true;
125 m_publishTo = value;
126 }
128 SetPublishTo(value);
129 return *this;
130 }
132 private:
133 Aws::String m_functionName;
134
135 Aws::String m_codeSha256;
136
137 Aws::String m_description;
138
139 Aws::String m_revisionId;
140
142 bool m_functionNameHasBeenSet = false;
143 bool m_codeSha256HasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_revisionIdHasBeenSet = false;
146 bool m_publishToHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace Lambda
151} // namespace Aws
FunctionVersionLatestPublished GetPublishTo() const
virtual const char * GetServiceRequestName() const override
PublishVersionRequest & WithPublishTo(FunctionVersionLatestPublished value)
PublishVersionRequest & WithDescription(DescriptionT &&value)
PublishVersionRequest & WithFunctionName(FunctionNameT &&value)
void SetPublishTo(FunctionVersionLatestPublished value)
PublishVersionRequest & WithRevisionId(RevisionIdT &&value)
PublishVersionRequest & WithCodeSha256(CodeSha256T &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
AWS_LAMBDA_API PublishVersionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String