AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
11#include <utility>
12
13namespace Aws {
14namespace Lambda {
15namespace Model {
16
20 public:
21 AWS_LAMBDA_API PublishVersionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PublishVersion"; }
28
29 AWS_LAMBDA_API Aws::String SerializePayload() const override;
30
32
42 inline const Aws::String& GetFunctionName() const { return m_functionName; }
43 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
44 template <typename FunctionNameT = Aws::String>
45 void SetFunctionName(FunctionNameT&& value) {
46 m_functionNameHasBeenSet = true;
47 m_functionName = std::forward<FunctionNameT>(value);
48 }
49 template <typename FunctionNameT = Aws::String>
50 PublishVersionRequest& WithFunctionName(FunctionNameT&& value) {
51 SetFunctionName(std::forward<FunctionNameT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetCodeSha256() const { return m_codeSha256; }
64 inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
65 template <typename CodeSha256T = Aws::String>
66 void SetCodeSha256(CodeSha256T&& value) {
67 m_codeSha256HasBeenSet = true;
68 m_codeSha256 = std::forward<CodeSha256T>(value);
69 }
70 template <typename CodeSha256T = Aws::String>
71 PublishVersionRequest& WithCodeSha256(CodeSha256T&& value) {
72 SetCodeSha256(std::forward<CodeSha256T>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
90 PublishVersionRequest& WithDescription(DescriptionT&& value) {
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
103 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
104 template <typename RevisionIdT = Aws::String>
105 void SetRevisionId(RevisionIdT&& value) {
106 m_revisionIdHasBeenSet = true;
107 m_revisionId = std::forward<RevisionIdT>(value);
108 }
109 template <typename RevisionIdT = Aws::String>
110 PublishVersionRequest& WithRevisionId(RevisionIdT&& value) {
111 SetRevisionId(std::forward<RevisionIdT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_functionName;
117 bool m_functionNameHasBeenSet = false;
118
119 Aws::String m_codeSha256;
120 bool m_codeSha256HasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::String m_revisionId;
126 bool m_revisionIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Lambda
131} // namespace Aws
virtual const char * GetServiceRequestName() const override
PublishVersionRequest & WithDescription(DescriptionT &&value)
PublishVersionRequest & WithFunctionName(FunctionNameT &&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