AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
CreateWebFunctionRevisionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda-web/LambdaWebRequest.h>
9#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
10#include <aws/lambda-web/model/BuildConfig.h>
11#include <aws/lambda-web/model/ServiceConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LambdaWeb {
17namespace Model {
18
25 public:
26 AWS_LAMBDAWEB_API CreateWebFunctionRevisionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateWebFunctionRevision"; }
33
34 AWS_LAMBDAWEB_API Aws::String SerializePayload() const override;
35
37
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>
51 SetFunctionName(std::forward<FunctionNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
80 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
81 template <typename KmsKeyArnT = Aws::String>
82 void SetKmsKeyArn(KmsKeyArnT&& value) {
83 m_kmsKeyArnHasBeenSet = true;
84 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
85 }
86 template <typename KmsKeyArnT = Aws::String>
88 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
89 return *this;
90 }
92
94
98 inline const BuildConfig& GetBuildConfig() const { return m_buildConfig; }
99 inline bool BuildConfigHasBeenSet() const { return m_buildConfigHasBeenSet; }
100 template <typename BuildConfigT = BuildConfig>
101 void SetBuildConfig(BuildConfigT&& value) {
102 m_buildConfigHasBeenSet = true;
103 m_buildConfig = std::forward<BuildConfigT>(value);
104 }
105 template <typename BuildConfigT = BuildConfig>
107 SetBuildConfig(std::forward<BuildConfigT>(value));
108 return *this;
109 }
111
113
117 inline const ServiceConfig& GetServiceConfig() const { return m_serviceConfig; }
118 inline bool ServiceConfigHasBeenSet() const { return m_serviceConfigHasBeenSet; }
119 template <typename ServiceConfigT = ServiceConfig>
120 void SetServiceConfig(ServiceConfigT&& value) {
121 m_serviceConfigHasBeenSet = true;
122 m_serviceConfig = std::forward<ServiceConfigT>(value);
123 }
124 template <typename ServiceConfigT = ServiceConfig>
126 SetServiceConfig(std::forward<ServiceConfigT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_functionName;
132
133 Aws::String m_description;
134
135 Aws::String m_kmsKeyArn;
136
137 BuildConfig m_buildConfig;
138
139 ServiceConfig m_serviceConfig;
140 bool m_functionNameHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_kmsKeyArnHasBeenSet = false;
143 bool m_buildConfigHasBeenSet = false;
144 bool m_serviceConfigHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace LambdaWeb
149} // namespace Aws
CreateWebFunctionRevisionRequest & WithServiceConfig(ServiceConfigT &&value)
CreateWebFunctionRevisionRequest & WithFunctionName(FunctionNameT &&value)
AWS_LAMBDAWEB_API CreateWebFunctionRevisionRequest()=default
CreateWebFunctionRevisionRequest & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_LAMBDAWEB_API Aws::String SerializePayload() const override
CreateWebFunctionRevisionRequest & WithBuildConfig(BuildConfigT &&value)
CreateWebFunctionRevisionRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String