AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
CreateWebFunctionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda-web/LambdaWebRequest.h>
10#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
11#include <aws/lambda-web/model/EndpointConfig.h>
12#include <aws/lambda-web/model/RevisionConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LambdaWeb {
18namespace Model {
19
26 public:
27 AWS_LAMBDAWEB_API CreateWebFunctionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateWebFunction"; }
34
35 AWS_LAMBDAWEB_API Aws::String SerializePayload() const override;
36
38
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
63 inline const RevisionConfig& GetRevisionConfig() const { return m_revisionConfig; }
64 inline bool RevisionConfigHasBeenSet() const { return m_revisionConfigHasBeenSet; }
65 template <typename RevisionConfigT = RevisionConfig>
66 void SetRevisionConfig(RevisionConfigT&& value) {
67 m_revisionConfigHasBeenSet = true;
68 m_revisionConfig = std::forward<RevisionConfigT>(value);
69 }
70 template <typename RevisionConfigT = RevisionConfig>
71 CreateWebFunctionRequest& WithRevisionConfig(RevisionConfigT&& value) {
72 SetRevisionConfig(std::forward<RevisionConfigT>(value));
73 return *this;
74 }
76
78
81 inline const EndpointConfig& GetEndpointConfig() const { return m_endpointConfig; }
82 inline bool EndpointConfigHasBeenSet() const { return m_endpointConfigHasBeenSet; }
83 template <typename EndpointConfigT = EndpointConfig>
84 void SetEndpointConfig(EndpointConfigT&& value) {
85 m_endpointConfigHasBeenSet = true;
86 m_endpointConfig = std::forward<EndpointConfigT>(value);
87 }
88 template <typename EndpointConfigT = EndpointConfig>
89 CreateWebFunctionRequest& WithEndpointConfig(EndpointConfigT&& value) {
90 SetEndpointConfig(std::forward<EndpointConfigT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateWebFunctionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_functionName;
120
121 RevisionConfig m_revisionConfig;
122
123 EndpointConfig m_endpointConfig;
124
126 bool m_functionNameHasBeenSet = false;
127 bool m_revisionConfigHasBeenSet = false;
128 bool m_endpointConfigHasBeenSet = false;
129 bool m_tagsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace LambdaWeb
134} // namespace Aws
AWS_LAMBDAWEB_API Aws::String SerializePayload() const override
AWS_LAMBDAWEB_API CreateWebFunctionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWebFunctionRequest & WithFunctionName(FunctionNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateWebFunctionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWebFunctionRequest & WithEndpointConfig(EndpointConfigT &&value)
CreateWebFunctionRequest & WithRevisionConfig(RevisionConfigT &&value)
CreateWebFunctionRequest & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String