AWS SDK for C++

AWS SDK for C++ Version 1.11.912

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
44 inline const Aws::String& GetFunctionName() const { return m_functionName; }
45 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
46 template <typename FunctionNameT = Aws::String>
47 void SetFunctionName(FunctionNameT&& value) {
48 m_functionNameHasBeenSet = true;
49 m_functionName = std::forward<FunctionNameT>(value);
50 }
51 template <typename FunctionNameT = Aws::String>
53 SetFunctionName(std::forward<FunctionNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
82 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
83 template <typename KmsKeyArnT = Aws::String>
84 void SetKmsKeyArn(KmsKeyArnT&& value) {
85 m_kmsKeyArnHasBeenSet = true;
86 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
87 }
88 template <typename KmsKeyArnT = Aws::String>
90 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
91 return *this;
92 }
94
96
100 inline const BuildConfig& GetBuildConfig() const { return m_buildConfig; }
101 inline bool BuildConfigHasBeenSet() const { return m_buildConfigHasBeenSet; }
102 template <typename BuildConfigT = BuildConfig>
103 void SetBuildConfig(BuildConfigT&& value) {
104 m_buildConfigHasBeenSet = true;
105 m_buildConfig = std::forward<BuildConfigT>(value);
106 }
107 template <typename BuildConfigT = BuildConfig>
109 SetBuildConfig(std::forward<BuildConfigT>(value));
110 return *this;
111 }
113
115
119 inline const ServiceConfig& GetServiceConfig() const { return m_serviceConfig; }
120 inline bool ServiceConfigHasBeenSet() const { return m_serviceConfigHasBeenSet; }
121 template <typename ServiceConfigT = ServiceConfig>
122 void SetServiceConfig(ServiceConfigT&& value) {
123 m_serviceConfigHasBeenSet = true;
124 m_serviceConfig = std::forward<ServiceConfigT>(value);
125 }
126 template <typename ServiceConfigT = ServiceConfig>
128 SetServiceConfig(std::forward<ServiceConfigT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_functionName;
134
135 Aws::String m_description;
136
137 Aws::String m_kmsKeyArn;
138
139 BuildConfig m_buildConfig;
140
141 ServiceConfig m_serviceConfig;
142 bool m_functionNameHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_kmsKeyArnHasBeenSet = false;
145 bool m_buildConfigHasBeenSet = false;
146 bool m_serviceConfigHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace LambdaWeb
151} // 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